WIP: Integrate with RobotStreamer #5

Closed
Kenwood wants to merge 25 commits from rs-integration into master
1 changed files with 9 additions and 0 deletions
Showing only changes of commit aa490819f0 - Show all commits

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