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

index d7982549e929fb6b856e707982ee15c21f362a99..1f77bfebe9febf1c12a04fcd24e91012397c0728 100755 (executable)
@@ -33,11 +33,7 @@ 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