Skip to content

Commit 4f60293

Browse files
authored
service: create camera-streamer-raspi-v1.3-5MP.service (#116)
* Create camera-streamer-raspi-v1.3-5MP.service * now syntax with double dashes for options
1 parent 3fe5d21 commit 4f60293

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
;
2+
; Official Raspberry Pi Camera Board v1.3 (5MP, 1080p)
3+
;
4+
[Unit]
5+
Description=camera-streamer web camera for Pi Camera v1 5MP on Raspberry PI
6+
After=network.target
7+
ConditionPathExists=/sys/bus/i2c/drivers/ov5647/10-0036/video4linux
8+
9+
[Service]
10+
ExecStart=/usr/bin/camera-streamer \
11+
--camera-type=libcamera \
12+
--camera-format=YUV420 \
13+
--camera-width=2592 --camera-height=1944 \
14+
--camera-fps=30 \
15+
; use two memory buffers to optimise usage
16+
--camera-nbufs=2 \
17+
; the snapshot is 1920x1080
18+
--camera-snapshot.height=1080 \
19+
; the video/webrtc is 1296x972
20+
--camera-video.height=972 \
21+
; the stream is 640x480
22+
--camera-stream.height=480 \
23+
; bump brightness slightly
24+
--camera-options=brightness=0.1 \
25+
--http-listen=0.0.0.0 \
26+
--http-port=8080 \
27+
--rtsp-port
28+
29+
DynamicUser=yes
30+
SupplementaryGroups=video i2c
31+
Restart=always
32+
RestartSec=10
33+
Nice=10
34+
IOSchedulingClass=idle
35+
IOSchedulingPriority=7
36+
CPUWeight=20
37+
AllowedCPUs=1-2
38+
MemoryMax=250M
39+
40+
[Install]
41+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)