camera-streamer/service/camera-streamer-raspi-v2-8MP.service
2114L3 598dd6b922
service: change examples to avoid using deprecated argument syntax (#127)
* Update camera-streamer-arducam-64MP.service

deprecated argument syntax

* Update camera-streamer-arducam-16MP.service

deprecated argument syntax

* Update camera-streamer-generic-usb-cam.service

deprecated argument syntax

* Update camera-streamer-raspi-usb-cam.service

deprecated argument syntax

* Update camera-streamer-raspi-v2-8MP.service

deprecated argument syntax

* Update camera-streamer-raspi-v3-12MP.service

deprecated argument syntax
2025-06-08 18:45:04 +02:00

44 lines
1.1 KiB
Desktop File

;
; Official Raspberry Pi v2.1 8MP camera based on the Sony IMX219 chip
; https://www.raspberrypi.com/products/camera-module-v2/
;
[Unit]
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
[Service]
ExecStart=/usr/local/bin/camera-streamer \
--camera-path=/base/soc/i2c0mux/i2c@1/imx219@10 \
--camera-type=libcamera \
--camera-format=YUYV \
--camera-width=3280 --camera-height=2464 \
--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 \
--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