mirror of
https://github.com/andreili/camera-streamer.git
synced 2025-08-23 11:24:07 +02:00
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
This commit is contained in:
parent
3fe5d2106f
commit
4f60293876
41
service/camera-streamer-raspi-v13-5MP.service
Normal file
41
service/camera-streamer-raspi-v13-5MP.service
Normal file
@ -0,0 +1,41 @@
|
||||
;
|
||||
; Official Raspberry Pi Camera Board v1.3 (5MP, 1080p)
|
||||
;
|
||||
[Unit]
|
||||
Description=camera-streamer web camera for Pi Camera v1 5MP on Raspberry PI
|
||||
After=network.target
|
||||
ConditionPathExists=/sys/bus/i2c/drivers/ov5647/10-0036/video4linux
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/camera-streamer \
|
||||
--camera-type=libcamera \
|
||||
--camera-format=YUV420 \
|
||||
--camera-width=2592 --camera-height=1944 \
|
||||
--camera-fps=30 \
|
||||
; use two memory buffers to optimise usage
|
||||
--camera-nbufs=2 \
|
||||
; the snapshot is 1920x1080
|
||||
--camera-snapshot.height=1080 \
|
||||
; the video/webrtc is 1296x972
|
||||
--camera-video.height=972 \
|
||||
; the stream is 640x480
|
||||
--camera-stream.height=480 \
|
||||
; bump brightness slightly
|
||||
--camera-options=brightness=0.1 \
|
||||
--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
|
Loading…
x
Reference in New Issue
Block a user