Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Use v4l2 ioctls directly #10

Open
DemiMarie opened this issue Apr 30, 2021 · 6 comments
Open

Use v4l2 ioctls directly #10

DemiMarie opened this issue Apr 30, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@DemiMarie
Copy link
Collaborator

v4l2-ctl’s output format appears to be meant for human use, rather than programmatic use. A better approach would be to use the v4l2 ioctls directly.

@ElliotKillick
Copy link
Owner

I totally agree and knew this when I was working with v4l2-ctl, however, at the time I was really just looking for a quick solution without getting into C ioctls.

PRs are welcome!

@ElliotKillick ElliotKillick added the enhancement New feature or request label May 1, 2021
@ElliotKillick
Copy link
Owner

Actually, I decided I'm going to implement this now instead of having to do something in Python only to replace it with a better solution.

I already have working C code for getting the webcam formats, now I just need to get the dimensions and FPS of each then implement a function to get the best format.

@DemiMarie
Copy link
Collaborator Author

Actually, I decided I'm going to implement this now instead of having to do something in Python only to replace it with a better solution.

👍

I already have working C code for getting the webcam formats, now I just need to get the dimensions and FPS of each then implement a function to get the best format.

Is the plan to then construct an appropriate GStreamer pipeline accordingly?

@ElliotKillick
Copy link
Owner

ElliotKillick commented May 2, 2021

Is the plan to then construct an appropriate GStreamer pipeline accordingly?

Yes, I'm currently working on this C program.

@DemiMarie
Copy link
Collaborator Author

DemiMarie commented May 3, 2021

Is the plan to then construct an appropriate GStreamer pipeline accordingly?

Yes, I'm currently working on this C program.

Does this mean that qvc.Webcam will be written entirely in C, including the UI? Or do you plan on using Python too? Both are fine; I just want to know what the plans are.

@ElliotKillick
Copy link
Owner

Currently the plan for the C program is to implement the webcam best format setter program as well as something to call to replace instances of v4l2-ctl in the Python scripts. No plans to replace the Python scripts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants