Skip to content

Instantly share code, notes, and snippets.

@alpocr
Created April 21, 2015 04:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save alpocr/52a0a6932406937d6b5f to your computer and use it in GitHub Desktop.
sudo ffmpeg -f v4l2 -i /dev/video0 -f alsa -i hw:1 -flags +global_header -ar 44100 -ab 16k -s 1280x720 -vcodec h264 -pix_fmt yuv420p -g 25 -vb 32k -profile:v baseline -r 30 -f flv "rtmp://a.rtmp.youtube.com/live2/STREAM-NAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment