-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin for v4l2loopback devices #280
base: master
Are you sure you want to change the base?
Conversation
This plugin allows you to grab frames from a v4l2loopback device. Theoretically it should work with other v4l2 compatible devices but no guarantees are made.
I have a feeling I am not clearing the buffer properly because some frames I get a "flash". |
This happens when using an older kernel 3.10.14
Throw away the first frame every time we enter the loop
Hey, thanks for this, What exactly is this doing differently to input_uvc which requires it being a whole seperate plugin? |
The real answer is I am not quite sure. Now that I wrote this plugin I think I can go back to input_uvc and double check. All I know is that it didn't really work for me for v4l2loopback. |
Just to be clear - are you saying input_uvc never worked for you with v4l2loopback or you never go this plugin working? I can see it looks like you drop to using a single buffer from the usual 4 and have added in a hack to try and deal with v4l2loopback/v4l2loopback#191 which I'm not really sure how that it supposed to work. I'm not sure how a single buffer would work either, surely you'd get tearing or lost frames? |
|
Here is an issue with images at the bottom of what I experienced: |
And then I put in that ugly hack to make it read slower and it seemed to make some of the issues go away. |
OK thanks for the info, I will wait for the outcome of discussions with the v4l2loopback maintainers before deciding what to do with this |
This plugin allows you to grab frames from a v4l2loopback device.
Theoretically it should work with other v4l2 compatible devices but no guarantees are made.
I am opening this PR up early for comments and to get some eyes on it. Some stuff is hard coded for now.