We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea41d32 commit 776ece9Copy full SHA for 776ece9
1 file changed
scripts/files/camera-streamer/list-usb-cameras
@@ -1,6 +1,15 @@
1
#!/bin/bash
2
3
+ALL=$1
4
+
5
echo "Available USB camera devices:"
6
for path in /dev/v4l/by-id/usb-*-video-index0; do
- echo " $path"
7
+ if [[ "$ALL" == "--all" ]]; then
8
+ echo
9
+ echo "=== $path ==="
10
11
+ v4l2-ctl --device "$path" --all --list-formats --list-formats-ext
12
+ else
13
+ echo " $path"
14
+ fi
15
done
0 commit comments