initial commit

This commit is contained in:
2024-04-19 14:19:18 +03:00
commit 869a18fe9f
6 changed files with 198 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Retranslation of the RTMP stream '%I'
After=mediamtx.service
[Service]
Type=simple
NotifyAccess=all
WatchdogSec=30
Restart=always
ExecStart=/usr/local/bin/h264-retranslate %i
SuccessExitStatus=255
[Install]
WantedBy=multi-user.target
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=MediaMTX
Requires=docker.service
After=docker.service
[Service]
TimeoutStartSec=0
Restart=on-failure
ExecStartPre=-/usr/bin/docker exec %n stop
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull bluenviron/mediamtx:latest
ExecStart=/usr/bin/docker run --rm --name %n --network=host \
-e TZ=Europe/Moscow \
-v /etc/mediamtx.yml:/mediamtx.yml \
-v /var/lib/mediamtx:/var/lib/mediamtx \
bluenviron/mediamtx:latest
[Install]
WantedBy=multi-user.target