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
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=MediaMTX RTSP Server
After=network.target
[Service]
User=sandro
WorkingDirectory=/home/sandro/m3u
ExecStart=/home/sandro/m3u/mediamtx
Restart=always
RestartSec=5
ExecStopPost=/usr/bin/python3 /home/sandro/m3u/loesche_epg.py
[Install]
WantedBy=multi-user.target
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Sky XML Generator
Wants=network.target
After=network.target
[Service]
Restart=always
Type=simple
User=sandro
WorkingDirectory=/home/sandro/m3u
ExecStart=/usr/bin/python3 /home/sandro/m3u/epg_create.py
[Install]
WantedBy=multi-user.target
+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