summaryrefslogtreecommitdiffstats
path: root/2021/playbook/restream-youtube.sh
diff options
context:
space:
mode:
Diffstat (limited to '2021/playbook/restream-youtube.sh')
-rw-r--r--2021/playbook/restream-youtube.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/2021/playbook/restream-youtube.sh b/2021/playbook/restream-youtube.sh
new file mode 100644
index 00000000..1cc2994b
--- /dev/null
+++ b/2021/playbook/restream-youtube.sh
@@ -0,0 +1,2 @@
+ KEY=$1
+ while true; do ffmpeg -loglevel 8 -f webm -reconnect_at_eof 1 -reconnect_streamed 1 -re -i http://localhost:8000/main.webm -f webm -c:a copy -c:v copy rtmp://a.rtmp.youtube.com/live2/$KEY; done