diff options
Diffstat (limited to 'playbook/restream-youtube.sh')
-rw-r--r-- | playbook/restream-youtube.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/playbook/restream-youtube.sh b/playbook/restream-youtube.sh index 7609305e..c1fee46c 100644 --- a/playbook/restream-youtube.sh +++ b/playbook/restream-youtube.sh @@ -1 +1,2 @@ - while true; do ffmpeg -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/$1; done + KEY=$1 + while true; do ffmpeg -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 |