Update 2025-01-03 14:38 OpenBSD/amd64-t14
This commit is contained in:
7
.bin/cam
7
.bin/cam
@@ -15,12 +15,13 @@ do
|
||||
30) _fps="-framerate 30" ;;
|
||||
60) _fps="-framerate 60" ;;
|
||||
raw) _format="-input_format yuyv422" ;;
|
||||
nv12) _format="-input_format nv12" ;;
|
||||
fullhd) _res="-video_size 1920x1080" ;;
|
||||
hd) _res="-video_size 1280x720" ;;
|
||||
sd) _res="-video_size 640x360" ;;
|
||||
max) _res="max" ;;
|
||||
[0-9]*x[0-9]*) _res="-video_size $arg" ;;
|
||||
[0-9]) _dev="$arg" ;;
|
||||
[0-9]) _dev="/dev/video$arg" ;;
|
||||
*) _unknown="$_unknown $arg" ;;
|
||||
esac
|
||||
shift;
|
||||
@@ -38,7 +39,9 @@ then
|
||||
| grep mjpeg \
|
||||
| xargs \
|
||||
| cut -d":" -f4 \
|
||||
| cut -d " " -f2 \
|
||||
| tr ' ' '\n' \
|
||||
| sort -n \
|
||||
| tail -1
|
||||
)"
|
||||
_format="-input_format mjpeg"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user