]> git.parisson.com Git - telecaster-server.git/commitdiff
try catch zoom absolute
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 8 Apr 2024 12:51:46 +0000 (14:51 +0200)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 8 Apr 2024 12:51:46 +0000 (14:51 +0200)
bin/streaming/tc_video_simple_webm_stream-gst1.sh

index 7c7bc846544e6617f499625d32f7e4b39f4ed6e1..d7982549e929fb6b856e707982ee15c21f362a99 100755 (executable)
@@ -33,8 +33,11 @@ source /etc/telecaster/telecaster.conf
 # V4L2 setup
 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_absolute=1
-v4l2-ctl -d $V4L2_ID -c focus_automatic_continuous=0
+{
+       v4l2-ctl -d $V4L2_ID -c focus_absolute=1 &&
+} || {
+       v4l2-ctl -d $V4L2_ID -c focus_automatic_continuous=0
+}
 v4l2-ctl -d $V4L2_ID -c sharpness=$V4L2_SHARPNESS
 
 # GST launch