Fix defaults

This commit is contained in:
Kamil Trzcinski
2022-07-07 12:26:34 +02:00
parent 2be35c8793
commit e9ffcc7c3b
4 changed files with 33 additions and 19 deletions

View File

@ -3,21 +3,27 @@ Description=camera-streamer web camera
After=network.target
[Service]
ExecStartPre=-/usr/bin/v4l2-ctl -d /dev/v4l-subdev1 -c focus_absolute=2200 # set fixed-focus
; set fixed-focus
ExecStartPre=-/usr/bin/v4l2-ctl -d /dev/v4l-subdev1 -c focus_absolute=2200
ExecStart=/usr/local/bin/camera-streamer \
-camera-path=/base/soc/i2c0mux/i2c@1/arducam_64mp@1a \
-camera-type=libcamera \
-camera-format=YUYV \
-camera-width=2328 -camera-height=1748 \
-camera-fps=30 \
-camera-nbufs=2 \ # use two memory buffers to optimise usage
-camera-high_res_factor=1.5 \ # the high-res is 1552x1165
-camera-low_res_factor=3.0 \ # the low-res is 776x582
-camera-options=brightness=0.1 \ # bump brightness slightly
-camera-auto-focus=0 # disable auto-focus
; use two memory buffers to optimise usage
-camera-nbufs=2 \
; the high-res is 1552x1165
-camera-high_res_factor=1.5 \
; the low-res is 776x582
-camera-low_res_factor=3.0 \
; bump brightness slightly
-camera-options=brightness=0.1 \
; disable auto-focus
-camera-auto_focus=0
User=nobody
Group=nogroup
DynamicUser=yes
SupplementaryGroups=video i2c
Restart=always
RestartSec=10