services: update predefined services and add generic one
This commit is contained in:
parent
e67a19587f
commit
d80d039f3c
@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=camera-streamer web camera
|
||||
Description=camera-streamer web camera for ArduCAM 16MP on Raspberry PI
|
||||
After=network.target
|
||||
ConditionPathExists=/sys/bus/i2c/drivers/imx519/10-001a/video4linux
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=camera-streamer web camera
|
||||
Description=camera-streamer web camera for ArduCAM 16MP on Raspberry PI
|
||||
After=network.target
|
||||
ConditionPathExists=/sys/bus/i2c/drivers/arducam_64mp/10-001a/video4linux
|
||||
|
||||
|
30
service/camera-streamer-generic-usb-cam.service
Normal file
30
service/camera-streamer-generic-usb-cam.service
Normal file
@ -0,0 +1,30 @@
|
||||
[Unit]
|
||||
Description=camera-streamer web camera for USB camera on Generic platform
|
||||
After=network.target
|
||||
ConditionPathExistsGlob=/dev/v4l/by-id/usb-*-video-index0
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/camera-streamer \
|
||||
-camera-path=/dev/video0 \
|
||||
-camera-format=JPEG \
|
||||
-camera-width=1920 -camera-height=1080 \
|
||||
-camera-fps=30 \
|
||||
; use two memory buffers to optimise usage
|
||||
-camera-nbufs=3 \
|
||||
; disable video streaming (WebRTC, RTSP, H264)
|
||||
; on non-supported platforms
|
||||
-camera-video.disabled
|
||||
|
||||
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
|
@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=camera-streamer web camera
|
||||
Description=camera-streamer web camera for USB camera on Raspberry PI
|
||||
After=network.target
|
||||
ConditionPathExistsGlob=/dev/v4l/by-id/usb-*-video-index0
|
||||
|
||||
@ -10,7 +10,7 @@ ExecStart=/usr/local/bin/camera-streamer \
|
||||
-camera-width=1920 -camera-height=1080 \
|
||||
-camera-fps=30 \
|
||||
; use two memory buffers to optimise usage
|
||||
-camera-nbufs=2 \
|
||||
-camera-nbufs=3 \
|
||||
; the high-res is 1920x1080
|
||||
-camera-snapshot.height=1080 \
|
||||
; the video/webrtc is 1280x720
|
@ -3,7 +3,7 @@
|
||||
; https://www.raspberrypi.com/products/camera-module-v2/
|
||||
;
|
||||
[Unit]
|
||||
Description=camera-streamer web camera
|
||||
Description=camera-streamer web camera for Pi Camera v2.1 8MP on Raspberry PI
|
||||
After=network.target
|
||||
ConditionPathExists=/sys/bus/i2c/drivers/imx219/10-0010/video4linux
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
; https://www.raspberrypi.com/products/camera-module-3/
|
||||
;
|
||||
[Unit]
|
||||
Description=camera-streamer web camera
|
||||
Description=camera-streamer web camera for Pi Camera Module 3 12MP on Raspberry PI
|
||||
After=network.target
|
||||
ConditionPathExists=/sys/bus/i2c/drivers/imx708/10-001a/video4linux
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user