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 @@ -10,15 +10,15 @@ EnvironmentFile=/boot/camera-streamer/libcamera.conf
1010ExecCondition =/bin/sh -c "/usr/bin/libcamera-hello --list-cameras | grep -o '/base/soc/[^)]*'"
1111ExecCondition =/bin/sh -c "! ss -ltn src :$PORT | grep -q LISTEN"
1212ExecStart =/bin/sh -c "exec /usr/bin/camera-streamer \
13- -http-port=${PORT} \
14- -camera-type=libcamera \
15- -camera-path=$(/usr/bin/libcamera-hello --list-cameras | grep -o '/base/soc/[^)]*' | head -n1) \
16- -camera-format=YUYV \
17- -camera-width=${WIDTH} -camera-height=${HEIGHT} \
18- -camera-video.height=${VIDEO_HEIGHT} \
19- -camera-snapshot.height=${SNAPSHOT_HEIGHT} \
20- -camera-fps=${FRAMERATE} \
21- -camera-nbufs=2 \
13+ -- http-port=${PORT} \
14+ -- camera-type=libcamera \
15+ -- camera-path=$(/usr/bin/libcamera-hello --list-cameras | grep -o '/base/soc/[^)]*' | head -n1) \
16+ -- camera-format=YUYV \
17+ -- camera-width=${WIDTH} - -camera-height=${HEIGHT} \
18+ -- camera-video.height=${VIDEO_HEIGHT} \
19+ -- camera-snapshot.height=${SNAPSHOT_HEIGHT} \
20+ -- camera-fps=${FRAMERATE} \
21+ -- camera-nbufs=${NBUFS:-2} \
2222 ${OPTIONS}"
2323
2424DynamicUser =yes
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ EnvironmentFile=/boot/camera-streamer/usb-%i.conf
1313ExecCondition =/bin/sh -c "[ -e $DEVICE ]"
1414ExecCondition =/bin/sh -c "! ss -ltn src :$PORT | grep -q LISTEN"
1515ExecStart =/bin/sh -c "exec /usr/bin/camera-streamer \
16- -http-port=${PORT} \
17- -camera-type=v4l2 \
18- -camera-path=$(ls -b $DEVICE | head -n1) \
19- -camera-format=${FORMAT} \
20- -camera-width=${WIDTH} -camera-height=${HEIGHT} \
21- -camera-fps=${FRAMERATE} \
22- -camera-nbufs=2 \
16+ -- http-port=${PORT} \
17+ -- camera-type=v4l2 \
18+ -- camera-path=$(ls -b $DEVICE | head -n1) \
19+ -- camera-format=${FORMAT} \
20+ -- camera-width=${WIDTH} -camera-height=${HEIGHT} \
21+ -- camera-fps=${FRAMERATE} \
22+ -- camera-nbufs=${NBUFS:-2} \
2323 ${OPTIONS}"
2424
2525DynamicUser =yes
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ SNAPSHOT_HEIGHT=1080
1919FRAMERATE=15
2020
2121# Additional options. By default enables continuous auto focus (if possible).
22- OPTIONS='-camera-options="AfMode=2" -camera-options="AfRange=2"'
22+ OPTIONS='-- camera-options="AfMode=2" - -camera-options="AfRange=2"'
You can’t perform that action at this time.
0 commit comments