Skip to content
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

"v4l" driver for Privacy block needs more documentation or a new function to update webcam devices #2006

Closed
tkapias opened this issue Feb 20, 2024 · 2 comments · Fixed by #2009

Comments

@tkapias
Copy link

tkapias commented Feb 20, 2024

Issue

I use the new Privacy block, which is a really nice addition, but at first I got an error from the v4l driver saying that the path /dev/v4l/by-id did not exist.

I found out that it's because I don't use a usb webcam, but virtual devices created with v4l2loopback connecting to android devices or a software.
By default, there is no udev rules to create a symlink in /dev/v4l/by-id for virtual devices and so the driver will not find them.

Solution

But I followed this issue from v4l2loopback to create a custom one, and then it works fine.

I suggest to add this information in the documentation.

On another hand, I didn't have issues to discover those webcams with most other software, so I think that reading /dev/v4l/by-id is not the most common technique for listing devices. Perhaps another method should be written for update_devices() function in v4l.rs.

Extra

As I use Scrcpy to connect my main webcam, I opened an issue with them for documentation.

@bim9262
Copy link
Collaborator

bim9262 commented Feb 21, 2024

Perhaps it would be better to just scan for /dev/video*... I'll have to play around with that.

@bim9262
Copy link
Collaborator

bim9262 commented Mar 2, 2024

@tkapias can you test out the linked pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants