From 5e0b90b27a09c2af8ffe323b97b5c2e937a25d9d Mon Sep 17 00:00:00 2001 From: douzeb Date: Wed, 1 Mar 2023 23:56:30 +0100 Subject: [PATCH] Tested version --- stream_v4l_device.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/stream_v4l_device.sh b/stream_v4l_device.sh index accfb32..3e2a4da 100755 --- a/stream_v4l_device.sh +++ b/stream_v4l_device.sh @@ -63,21 +63,12 @@ echo Will stream to $URL echo and save a copy of the data file : echo $FILENAME -#-x264opts nal-hrd=cbr:force-cfr=1:vbv-bufsize=${BUFFERSIZE}:bitrate=${VBITRATE}:vbv-maxrate=${VBITRATE} \ -#-shortest \ -#-s ${RESOLUTION} \ -#-loop 1 \ -#-r 25 \ -#-ac 2 \ -#-re \ -#-f lavfi \ -#-i aevalsrc="(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360-2.5/2)*t)+0.1*sin(2*PI*(360-2.5/2)*t)|(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360+2.5/2)*t)+0.1*sin(2*PI*(360+2.5/2)*t):sample_rate=48000" \ -#-t ${DURATION} \ +# A la ligne 76, utiliser cette ligne pour avoir un son de test généré par ffmpeg : +# -f lavfi -i aevalsrc="(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360-2.5/2)*t)+0.1*sin(2*PI*(360-2.5/2)*t)|(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360+2.5/2)*t)+0.1*sin(2*PI*(360+2.5/2)*t):sample_rate=48000" \ -#-f lavfi -i aevalsrc="(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360-2.5/2)*t)+0.1*sin(2*PI*(360-2.5/2)*t)|(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360+2.5/2)*t)+0.1*sin(2*PI*(360+2.5/2)*t):sample_rate=48000" \ +# A la ligne 76, utiliser cette ligne pour avoir le son de la caméra : #-f alsa -ac 2 -i hw:CARD=CAMERA,DEV=${V4LDEVICE} \ - ffmpeg \ -loglevel level \ -y \