Update 2024-12-23 12:49 OpenBSD/amd64-t14
This commit is contained in:
11
.bin/cam
11
.bin/cam
@@ -2,6 +2,7 @@
|
||||
|
||||
# defaults
|
||||
_format="-input_format mjpeg"
|
||||
_dev="/dev/video0"
|
||||
|
||||
# loop through arguments
|
||||
for arg in $@
|
||||
@@ -29,14 +30,6 @@ then
|
||||
echo "unknown parameter(s): $_unknown"
|
||||
fi
|
||||
|
||||
# set device
|
||||
if [ -z "$_dev" ]
|
||||
then
|
||||
_dev="/dev/video0"
|
||||
else
|
||||
_dev="/dev/video$_dev"
|
||||
fi
|
||||
|
||||
# set resolution
|
||||
if [ x"$_res" == x"max" ]
|
||||
then
|
||||
@@ -97,5 +90,7 @@ then
|
||||
echo " 30 - set framerate to 30 fps"
|
||||
echo " 60 - set framerate to 60 fps"
|
||||
echo " <device> - set video device number (defaults is 0)"
|
||||
echo
|
||||
echo " Note: ffplay may not start or fall back to internal defaults when options (or combinations thereof) are not supported by the camera."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user