-
Notifications
You must be signed in to change notification settings - Fork 10.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
Support for v4l2loopback #2233
Support for v4l2loopback #2233
Conversation
In response to #2232 (comment) Thank you for having rebased it on
Yes, it works fine 👍
Yes, you did well. I wanted to add some abstractions for a long time (everything is too hardcoded/intricated currently), so now is a good time to refactor. Therefore, I worked on a branch to prepare several changes to implement v4l2 properly: Here is a summary of the changes:
So now, to avoid decoding a packet twice, the v4l2 component should implement
Would you want to implement v4l2 on that branch, please? If so, please don't hesitate if you have any question. 😉 Regards |
I'd love to work on this but I will have time only during weekends so don't expect anything too soon. |
Thank you 😉
Could I work on it, then? I would like to rebase your commit on my refactored Of course, your authorship will be preserved (I'll just probably add |
Sure, go ahead. If you need anything let me know.
|
so with this we can have scrcpy work as a webcam the correct way ? that's what I was waiting for, awesome guys ! |
On Linux, yes. |
oh man damn :( this won't work on windows ? |
No. "v4l" literally means "Video For Linux". |
damn, I guess I have to wait till someone tackle this thing on windows then :( since you started it on Linux I'm sure someone will fiddle with a windows alternative ^^ |
Merged into |
@martinellimarco Hello will u also be able to implement this for OBS-Virtual-Cam |
I've closed the old pull request #2232, I did a mess on that one. I'm referencing it only for the conversation.
This is the updated code rebased on the correct dev branch.
It defaults
--lock-video-orientation
to0
when--v4l2sink
is used and this solve the problem with rotation.I've enabled ASAN and solved the use-after-free problem.