From 5d8848eb96247fd8364c6ae8d94da680267468b4 Mon Sep 17 00:00:00 2001 From: douzeb Date: Wed, 1 Mar 2023 14:54:15 +0100 Subject: [PATCH] W.I.P. --- stream_v4l_device.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/stream_v4l_device.sh b/stream_v4l_device.sh index 5b2babd..9dc2379 100755 --- a/stream_v4l_device.sh +++ b/stream_v4l_device.sh @@ -5,6 +5,7 @@ RESOLUTION=1280x720 VBITRATE=2048 ABITRATE=128 V4LDEVICE=0 +FPS=12 if [[ $# -lt 3 ]] ; then echo "Not enough arguments supplied" >&2 @@ -12,11 +13,11 @@ if [[ $# -lt 3 ]] ; then echo "first parameter the rtmp port as the second and the streaming key as the third" >&2 echo " " >&2 echo "syntax: " >&2 - echo " $(basename $0) " >&2 + echo " $(basename $0) " >&2 echo " " >&2 echo "other parameters are optional and will default to the " >&2 echo "values in the following example :" >&2 - echo " `basename $0` tube.example.com 1935 69ac2d29-eba4-4d5f-a3a6-6047e6768ffb $DURATION $RESOLUTION $VBITRATE $ABITRATE $V4LDEVICE" >&2 + echo " `basename $0` tube.example.com 1935 69ac2d29-eba4-4d5f-a3a6-6047e6768ffb $DURATION $RESOLUTION $VBITRATE $ABITRATE $V4LDEVICE $FPS" >&2 exit 1 fi @@ -49,6 +50,11 @@ then V4LDEVICE="$8" fi +if [[ ! -z "$9" ]] +then + FPS="$9" +fi + FILENAME=live-v4l-${1}-cam${V4LDEVICE}-${RESOLUTION}p-${DURATION}s-${VBITRATE}kbps-${ABITRATE}kbps-${2}.mkv echo " "