Initialer Commit

This commit is contained in:
2026-03-17 08:56:28 +01:00
parent d709f852d7
commit caa9d31df6
3 changed files with 48 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
[Unit]
Description=FFmpeg RTSP Re-encoder
After=mediamtx.service
Requires=mediamtx.service
[Service]
User=sandro
# Die while-Schleife sorgt für zusätzliche Stabilität direkt im Service
ExecStart=/bin/bash -c 'while true; do \
ffmpeg -hide_banner -loglevel error -rtsp_transport tcp \
-analyzeduration 100M -probesize 100M \
-i rtsp://192.168.189.102:554/live/1_0 \
-c:v copy -c:a aac -b:a 128k -ar 44100 \
-f rtsp -rtsp_transport tcp rtsp://localhost:8554/live/1_0; \
sleep 5; done'
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target