]> git.parisson.com Git - telecaster-server.git/commitdiff
hard double atmwq
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Wed, 31 Jan 2024 21:58:53 +0000 (22:58 +0100)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Wed, 31 Jan 2024 21:58:53 +0000 (22:58 +0100)
bin/streaming/tc_start.sh
bin/streaming/tc_video_simple_webm_stream-gst1.sh

index 391f48e79c7ce1654219bcccc73403f515d720d0..8bd936d70cdb56d11ff22edf7213a1d9eb8c96a4 100755 (executable)
@@ -20,7 +20,7 @@ $TELECASTER_SERVER/bin/streaming/tc_audio_mp3_icecast-gst1.sh &
 
 sleep 1
 
-$TELECASTER_SERVER/bin/streaming/tc_video_simple_webm_stream-gst1.sh &
+$TELECASTER_SERVER/bin/streaming/tc_video_simple_webm_stream-gst1-double.sh &
 
 sleep 3
 
index 50cf7a4fd444066e52d2add6a1967e5f90774f8b..108fb787954866208745e37760570be9722cf7f8 100755 (executable)
@@ -6,18 +6,16 @@ set -e
 
 source /etc/telecaster/telecaster.conf
 
-ID=$1
-
 # V4L2 setup
 if [ ! -z "${V4L2_ZOOM-}" ]; then
-v4l2-ctl -d $ID -c power_line_frequency=1
-v4l2-ctl -d $ID -c zoom_absolute=$V4L2_ZOOM
-v4l2-ctl -d $ID -c focus_auto=0
-v4l2-ctl -d $ID -c focus_absolute=1
-v4l2-ctl -d $ID -c sharpness=$V4L2_SHARPNESS
+v4l2-ctl -d $V4L2_ID -c power_line_frequency=1
+v4l2-ctl -d $V4L2_ID -c zoom_absolute=$V4L2_ZOOM
+v4l2-ctl -d $V4L2_ID -c focus_auto=0
+v4l2-ctl -d $V4L2_ID -c focus_absolute=1
+v4l2-ctl -d $V4L2_ID -c sharpness=$V4L2_SHARPNESS
 fi
 
-gst-launch-1.0 v4l2src device=/dev/video$ID ! $V4L2_FORMAT, width=$VIDEO_WIDTH, height=$VIDEO_HEIGHT, framerate=$VIDEO_FRAMERATE/1  \
+gst-launch-1.0 v4l2src device=/dev/video$V4L2_ID ! $V4L2_FORMAT, width=$VIDEO_WIDTH, height=$VIDEO_HEIGHT, framerate=$VIDEO_FRAMERATE/1  \
        ! queue ! $V4L2_DEC \
        ! queue ! videoflip method=$VIDEO_FLIP \
        ! queue ! videoconvert \
@@ -33,7 +31,7 @@ gst-launch-1.0 v4l2src device=/dev/video$ID ! $V4L2_FORMAT, width=$VIDEO_WIDTH,
        ! queue ! opusenc bitrate=$AUDIO_OPUS_BITRATE \
        ! queue ! muxout. \
        webmmux streamable=true name=muxout \
-       ! queue ! shout2send ip=127.0.0.1 port=8000 password=source2parisson mount=telecaster_live_$ID.webm
+       ! queue ! shout2send ip=127.0.0.1 port=8000 password=source2parisson mount=telecaster_live_$V4L2_ID.webm
        > /dev/null
 
 done