diff options
author | Sacha Chua <sacha@sachachua.com> | 2021-11-18 20:31:36 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2021-11-18 20:31:36 -0500 |
commit | a1fdc0a844ea50634b264948a014109f5502f0a3 (patch) | |
tree | 62951125ffd44d8f35f05122350122b46ef4df38 /playbook | |
parent | 2c8aede5592773587bf21d269f946cb7c551b3f1 (diff) | |
download | emacsconf-wiki-a1fdc0a844ea50634b264948a014109f5502f0a3.tar.xz emacsconf-wiki-a1fdc0a844ea50634b264948a014109f5502f0a3.zip |
Add more details, update status for pattern
Diffstat (limited to 'playbook')
-rw-r--r-- | playbook/restream-lowres.sh | 3 | ||||
-rw-r--r-- | playbook/restream-youtube.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/playbook/restream-lowres.sh b/playbook/restream-lowres.sh index 6312b9eb..3ee7c20d 100644 --- a/playbook/restream-lowres.sh +++ b/playbook/restream-lowres.sh @@ -1 +1,2 @@ - while true; do ffmpeg -f webm -reconnect_at_eof 1 -reconnect_streamed 1 -re -i http://localhost:8000/main.webm -vf scale=854:480 -f webm -c:a copy -b:v 500k -maxrate 1M -bufsize 1M -content_type video/webm -c:v libvpx icecast://ec2020main480pmu:${1}:8000/main-480p.webm; done + PASS=$1 + while true; do ffmpeg -f webm -reconnect_at_eof 1 -reconnect_streamed 1 -re -i http://localhost:8000/main.webm -vf scale=854:480 -f webm -c:a copy -b:v 500k -maxrate 1M -bufsize 1M -content_type video/webm -c:v libvpx icecast://ec2020main480pmu:$PASS:8000/main-480p.webm; done 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 |