Skip to content

Instantly share code, notes, and snippets.

@saconni
saconni / stream.bat
Last active June 12, 2018 02:32
Stream SMPTE color bars and no audio to youtube
ffmpeg ^
-re -f lavfi -i testsrc=size=768x432:rate=30 -deinterlace ^
-f lavfi -i anullsrc ^
-vcodec libx264 -pix_fmt yuv420p -preset veryfast -r 30 -g 60 -b:v "1000k" ^
-acodec libmp3lame -ar 44100 -b:a 128k ^
-f flv "rtmp://a.rtmp.youtube.com/live2/%YOUTUBE_KEY%"