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 camera indexing isn't necessarily accurate #171

Open
ajaypillay opened this issue May 17, 2024 · 1 comment
Open

v4l camera indexing isn't necessarily accurate #171

ajaypillay opened this issue May 17, 2024 · 1 comment
Labels
P3 Low Priority (Useful Features) V4L2 Related to Video4Linux2 (linux)
Milestone

Comments

@ajaypillay
Copy link

ajaypillay commented May 17, 2024

For my webcam, this is what v4l2-ctl --list-devices shows:

Integrated Camera: Integrated C (usb-0000:00:14.0-4):
	/dev/video1
	/dev/video2
	/dev/video3
	/dev/video4
	/dev/media0
	/dev/media1

Currently, nokhwa_bindings_linux::query() shows multiple cameras (since the way the indexing is done is by parsing the /sys/class/... path) when in fact there's only 1 actual camera stream that can be accessed. The correct index is located in the file /sys/class/videoX/index. All of them indicate the correct index as 1. Index 0 is being used by Droidcam. As these aren't accessible streams to my knowledge, it might be worth condensing that.

@l1npengtul
Copy link
Owner

Considering this for 0.11, will need more testing

@l1npengtul l1npengtul added this to the 0.11 milestone Oct 12, 2024
@l1npengtul l1npengtul added P3 Low Priority (Useful Features) V4L2 Related to Video4Linux2 (linux) labels Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Low Priority (Useful Features) V4L2 Related to Video4Linux2 (linux)
Projects
None yet
Development

No branches or pull requests

2 participants