Update 2024-12-23 14:32 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-23 14:32:10 +01:00
parent 19fc60ef8b
commit ae5183fa58
3 changed files with 62 additions and 25 deletions

View File

@@ -9,20 +9,21 @@ for arg in $@
do
# set values based of arguments found
case $arg in
s|start) shift; _start=1 ;;
k|kill|stop) shift; _stop=1 ;;
l|list) shift; _list=1 ;;
30) shift; _fps="-framerate 30" ;;
60) shift; _fps="-framerate 60" ;;
raw) shift; _format="-input_format yuyv422" ;;
fullhd) shift; _res="-video_size 1920x1080" ;;
hd) shift; _res="-video_size 1280x720" ;;
sd) shift; _res="-video_size 640x360" ;;
max) shift; _res="max" ;;
[0-9]*x[0-9]*) shift; _res="-video_size $arg" ;;
[0-9]) shift; _dev="$arg" ;;
*) shift; _unknown="$_unknown $arg" ;;
s|start) _start=1 ;;
k|kill|stop) _stop=1 ;;
l|list) _list=1 ;;
30) _fps="-framerate 30" ;;
60) _fps="-framerate 60" ;;
raw) _format="-input_format yuyv422" ;;
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" ;;
*) _unknown="$_unknown $arg" ;;
esac
shift;
done
if [ ! -z "$_unknown" ]