tools: improve dump_cameras.sh
This commit is contained in:
parent
bbb1b32e08
commit
22fc4d9bcd
@ -1,11 +1,24 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -x
|
exec 2>&1
|
||||||
|
|
||||||
v4l2-ctl --list-devices
|
( set -x ; echo "$(cat /sys/firmware/devicetree/base/model | tr -d '\0')" )
|
||||||
|
|
||||||
|
( set -x ; uname -a )
|
||||||
|
|
||||||
|
( set -x ; v4l2-ctl --list-devices )
|
||||||
|
|
||||||
for device in /dev/video*; do
|
for device in /dev/video*; do
|
||||||
v4l2-ctl -d "$device" -L
|
echo "===================================="
|
||||||
v4l2-ctl -d "$device" --list-formats-out
|
echo "DEVICE: $device"
|
||||||
v4l2-ctl -d "$device" --list-formats-ext
|
echo "===================================="
|
||||||
|
(
|
||||||
|
set -x
|
||||||
|
v4l2-ctl -d "$device" --info \
|
||||||
|
--list-formats-ext --list-fields \
|
||||||
|
--list-formats-out --list-fields-out
|
||||||
|
) | while IFS= read -r LINE; do
|
||||||
|
printf "%s | %s\n" "$device" "$LINE"
|
||||||
|
done
|
||||||
|
echo
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user