summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hoogestraat <lars@hoogi.eu>2020-06-20 23:46:31 +0200
committerLars Hoogestraat <lars@hoogi.eu>2020-06-20 23:46:31 +0200
commit2b7cd98f62e56a2ab076a9c6ecd97211028d6a84 (patch)
tree34241076681c99d618667dc83c3216e210698196
parent633722220ba451d265b69b329ad477b7d0c7e45b (diff)
added systemd serviceHEADmaster
-rw-r--r--ffmpeg_nistkasten.service10
-rwxr-xr-xffmpeg_nistkasten.sh1
2 files changed, 11 insertions, 0 deletions
diff --git a/ffmpeg_nistkasten.service b/ffmpeg_nistkasten.service
new file mode 100644
index 0000000..ae638fe
--- /dev/null
+++ b/ffmpeg_nistkasten.service
@@ -0,0 +1,10 @@
+[Unit]
+After=networking.service
+
+[Service]
+Type=simple
+Restart=always
+ExecStart=/opt/nistkasten/ffmpeg_nistkasten.sh
+
+[Install]
+WantedBy=default.target
diff --git a/ffmpeg_nistkasten.sh b/ffmpeg_nistkasten.sh
index 6103062..1a9c7be 100755
--- a/ffmpeg_nistkasten.sh
+++ b/ffmpeg_nistkasten.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+
OMX_PARAMS="-s 1280x720 -preset fast -b:v 1024k"
/usr/bin/ffmpeg \