Now you can Subscribe / Follow my video channel >>

Here is my script. Just use FFMPEG to create a live stream on youtube:
Static video:
ffmpeg -re -i "(input-file)" -acodec libmp3lame -ar 44100 -b:a 128k
-pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 2048k -vb 400k
-maxrate 800k -deinterlace -vcodec libx264 -preset medium -g 30 -r 30
-f flv "rtmp://a.rtmp.youtube.com/live2/(Stream name/key)"

From camera:

ffmpeg -re -i input-file -rtsp_transport tcp -i
rtsp://password@(streamaddress with local IP) -acodec libmp3lame
-ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 426x240
-bufsize 2048k -vb 400k -maxrate 800k -deinterlace -vcodec libx264
-preset medium -g 30 -r 30
-f flv "rtmp://a.rtmp.youtube.com/live2/(Stream name/key)"

Stream a HD ( 720p/ 1080p ) live video:
ffmpeg -re -i input-file -deinterlace -vcodec libx264 -pix_fmt yuv420p -preset medium -r 30 -g 60 -b:v 2500k -acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k -f flv "rtmp://a.rtmp.youtube.com/live2/streamname/streamid"

Hope it help your business! Don’t forget to add me on Google+. Thank you