From: Guillaume Pellerin Date: Wed, 31 Jan 2024 21:19:49 +0000 (+0100) Subject: add condition for multiple cam X-Git-Tag: 3.0~39 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6d28761f99638a4b5edcb1df7a1503a4064fe6a2;p=telecaster-server.git add condition for multiple cam --- diff --git a/bin/streaming/tc_video_simple_webm_stream-gst1.sh b/bin/streaming/tc_video_simple_webm_stream-gst1.sh index dc2b139..691ef00 100755 --- a/bin/streaming/tc_video_simple_webm_stream-gst1.sh +++ b/bin/streaming/tc_video_simple_webm_stream-gst1.sh @@ -16,6 +16,11 @@ v4l2-ctl -d $ID -c sharpness=$V4L2_SHARPNESS fi # GST launch +if [ -z "${V4L2_ID_1-}" ]; then + V4L2_IDS=(V4L2_ID, $V4L2_ID_1) +else + V4L2_IDS=(V4L2_ID) +fi for ID in ${V4L2_ID[@]}; do diff --git a/etc/telecaster/telecaster.conf b/etc/telecaster/telecaster.conf index b742476..d5ce0b5 100755 --- a/etc/telecaster/telecaster.conf +++ b/etc/telecaster/telecaster.conf @@ -14,6 +14,8 @@ PORT="1" V4L2_ID=(0) V4L2_ZOOM=140 V4L2_SHARPNESS=144 +V4L2_FORMAT=image/jpeg +V4L2_DEC=jpegdec # C920 #VIDEO_WIDTH=864