File tree Expand file tree Collapse file tree
scripts/files/camera-streamer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ StartLimitBurst=10
77[Service]
88EnvironmentFile =/boot/camera-streamer/libcamera.conf
99ExecCondition =/bin/sh -c "/usr/bin/libcamera-hello --list-cameras | grep -o '/base/soc/[^)]*'"
10- ExecStart =/bin/sh -c "/usr/local/bin/camera-streamer \
10+ ExecStart =/bin/sh -c "exec /usr/local/bin/camera-streamer \
1111 -http-port=${PORT} \
1212 -camera-type=libcamera \
13- -camera-path=$(/usr/bin/libcamera-hello --list-cameras | grep -o '/base/soc/[^)]*') \
13+ -camera-path=$(/usr/bin/libcamera-hello --list-cameras | grep -o '/base/soc/[^)]*' | head -n1 ) \
1414 -camera-format=YUYV \
1515 -camera-width=${WIDTH} -camera-height=${HEIGHT} \
1616 -camera-fps=${FRAMERATE} \
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ StartLimitBurst=10
99[Service]
1010EnvironmentFile =/boot/camera-streamer/%i.conf
1111ExecCondition =/bin/sh -c "[ -e $DEVICE ]"
12- ExecStart =/bin/sh -c "/usr/local/bin/camera-streamer \
12+ ExecStart =/bin/sh -c "exec /usr/local/bin/camera-streamer \
1313 -http-port=${PORT} \
1414 -camera-path=" ${DEVICE}" \
1515 -camera-type=v4l2 \
You can’t perform that action at this time.
0 commit comments