Fix defaults
This commit is contained in:
@ -56,6 +56,7 @@ camera_options_t camera_options = {
|
|||||||
.high_res_factor = 1.0,
|
.high_res_factor = 1.0,
|
||||||
.low_res_factor = 0.0,
|
.low_res_factor = 0.0,
|
||||||
.auto_reconnect = 0,
|
.auto_reconnect = 0,
|
||||||
|
.auto_focus = true,
|
||||||
.options = "",
|
.options = "",
|
||||||
.h264 = {
|
.h264 = {
|
||||||
.options =
|
.options =
|
||||||
|
@ -9,13 +9,18 @@ ExecStart=/usr/local/bin/camera-streamer \
|
|||||||
-camera-format=YUYV \
|
-camera-format=YUYV \
|
||||||
-camera-width=2328 -camera-height=1748 \
|
-camera-width=2328 -camera-height=1748 \
|
||||||
-camera-fps=30 \
|
-camera-fps=30 \
|
||||||
-camera-nbufs=2 \ # use two memory buffers to optimise usage
|
; use two memory buffers to optimise usage
|
||||||
-camera-high_res_factor=1.5 \ # the high-res is 1552x1165
|
-camera-nbufs=2 \
|
||||||
-camera-low_res_factor=3.0 \ # the low-res is 776x582
|
; the high-res is 1552x1165
|
||||||
-camera-options=brightness=0.1 # bump brightness slightly
|
-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
|
DynamicUser=yes
|
||||||
Group=nogroup
|
|
||||||
SupplementaryGroups=video i2c
|
SupplementaryGroups=video i2c
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
@ -3,21 +3,27 @@ Description=camera-streamer web camera
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[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 \
|
ExecStart=/usr/local/bin/camera-streamer \
|
||||||
-camera-path=/base/soc/i2c0mux/i2c@1/arducam_64mp@1a \
|
-camera-path=/base/soc/i2c0mux/i2c@1/arducam_64mp@1a \
|
||||||
-camera-type=libcamera \
|
-camera-type=libcamera \
|
||||||
-camera-format=YUYV \
|
-camera-format=YUYV \
|
||||||
-camera-width=2328 -camera-height=1748 \
|
-camera-width=2328 -camera-height=1748 \
|
||||||
-camera-fps=30 \
|
-camera-fps=30 \
|
||||||
-camera-nbufs=2 \ # use two memory buffers to optimise usage
|
; use two memory buffers to optimise usage
|
||||||
-camera-high_res_factor=1.5 \ # the high-res is 1552x1165
|
-camera-nbufs=2 \
|
||||||
-camera-low_res_factor=3.0 \ # the low-res is 776x582
|
; the high-res is 1552x1165
|
||||||
-camera-options=brightness=0.1 \ # bump brightness slightly
|
-camera-high_res_factor=1.5 \
|
||||||
-camera-auto-focus=0 # disable auto-focus
|
; 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
|
DynamicUser=yes
|
||||||
Group=nogroup
|
|
||||||
SupplementaryGroups=video i2c
|
SupplementaryGroups=video i2c
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
@ -8,12 +8,14 @@ ExecStart=/usr/local/bin/camera-streamer \
|
|||||||
-camera-format=JPEG \
|
-camera-format=JPEG \
|
||||||
-camera-width=1920 -camera-height=1080 \
|
-camera-width=1920 -camera-height=1080 \
|
||||||
-camera-fps=30 \
|
-camera-fps=30 \
|
||||||
-camera-nbufs=2 \ # use two memory buffers to optimise usage
|
; use two memory buffers to optimise usage
|
||||||
-camera-high_res_factor=1.0 \ # the high-res is 1920x1080
|
-camera-nbufs=2 \
|
||||||
-camera-low_res_factor=2.0 # the low-res is 960x540
|
; the high-res is 1920x1080
|
||||||
|
-camera-high_res_factor=1.0 \
|
||||||
|
; the low-res is 960x540
|
||||||
|
-camera-low_res_factor=2.0
|
||||||
|
|
||||||
User=nobody
|
DynamicUser=yes
|
||||||
Group=nogroup
|
|
||||||
SupplementaryGroups=video i2c
|
SupplementaryGroups=video i2c
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
Reference in New Issue
Block a user