camera-streamer/service/camera-streamer-generic-usb-cam.service
Kamil Trzciński 8d0c04ccd5
http: add --http-listen=<ip4>, and listen by default on 127.0.0.1 (#81)
Co-authored-by: AndrolGenhald <AndrolGenhald@gmail.com>
2023-07-01 16:38:36 +02:00

33 lines
758 B
Desktop File

[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 \
--http-listen=0.0.0.0 \
--http-port=8080 \
; 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