formatting

This commit is contained in:
cpu
2024-02-06 22:10:20 +01:00
parent ef5c38395d
commit 09d04489cf

View File

@@ -186,7 +186,7 @@ For the 'bookworm' version of Raspberry OS usig rpicam-vid with the silent audio
### Setup a systemd service for a non-stop streaming
Adapt VIDEO_BITRATE="3500000" to your max network upload speed
```
sudo tee /etc/systemd/system/webcam-streamer.service <<EOF
sudo nano /etc/systemd/system/webcam-streamer.service
[Unit]
Description=Webcam Streamer service
Requires=network-online.target
@@ -209,12 +209,12 @@ ExecStartPre=-/usr/bin/env sh -c 'v4l2-ctl -d ${VIDEO_DEVICE} -c video_bitrate=$
ExecStart=/bin/bash -c 'ffmpeg -loglevel error \
-f v4l2 \
-input_format ${VIDEO_CODEC} \
-input_format ${VIDEO_CODEC} \
-video_size ${VIDEO_RESOLUTION} \
-framerate ${VIDEO_FRAMERATE} \
-i ${VIDEO_DEVICE} \
-c copy \
-f flv \
-f flv \
-tune zerolatency \
${PEERTUBE_LIVE}'
@@ -225,7 +225,6 @@ SyslogIdentifier=webcam-streamer
[Install]
WantedBy=multi-user.target
EOF
```
Reload systemd manager configuration
`sudo systemctl daemon-reload`