Imported from old

This commit is contained in:
Kenwood 2021-11-29 08:32:46 -05:00
parent 48c532a81c
commit aa490819f0
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
cmd="ffmpeg -re -thread_queue_size 512 -rtsp_transport tcp -i ${source_url} \
-acodec libmp3lame -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 \
-i /dev/zero -vcodec libx264 -preset medium -s 1280x720 -g 6 -r 3 \
-f flv rtmp://a.rtmp.youtube.com/live2/${youtube_stream_key}"
until $cmd ; do
echo "restarting ffmpeg command..."
sleep 2
done