Update 2024-12-23 12:49 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-23 12:49:42 +01:00
parent 1ecd621a69
commit 0701e19f1e
6 changed files with 3 additions and 203 deletions

View File

@@ -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