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.
For my webcam, this is what
v4l2-ctl --list-devices
shows: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 as1
. Index0
is being used by Droidcam. As these aren't accessible streams to my knowledge, it might be worth condensing that.