-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathcamera-streamer-arducam-64MP.service
44 lines (40 loc) · 1.09 KB
/
camera-streamer-arducam-64MP.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[Unit]
Description=camera-streamer web camera for ArduCAM 16MP on Raspberry PI
After=network.target
ConditionPathExists=/sys/bus/i2c/drivers/arducam_64mp/10-001a/video4linux
[Service]
; 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 \
; use two memory buffers to optimise usage
-camera-nbufs=2 \
; the snapshot is 1438x1080
-camera-snapshot.height=1080 \
; the video/webrtc is 958x720
-camera-video.height=720 \
; the stream is 639x480
-camera-stream.height=480 \
; bump brightness slightly
-camera-options=brightness=0.1 \
; disable auto-focus
-camera-auto_focus=0 \
--http-listen=0.0.0.0 \
--http-port=8080 \
-rtsp-port
DynamicUser=yes
SupplementaryGroups=video i2c
Restart=always
RestartSec=10
Nice=10
IOSchedulingClass=idle
IOSchedulingPriority=7
CPUWeight=20
AllowedCPUs=1-2
MemoryMax=250M
[Install]
WantedBy=multi-user.target