Skip to content

Instantly share code, notes, and snippets.

@imVinayPandya
Forked from dstoc/stream.sh
Created January 11, 2017 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imVinayPandya/060df598c0d99cdc58bcbfe79c6b136c to your computer and use it in GitHub Desktop.
Save imVinayPandya/060df598c0d99cdc58bcbfe79c6b136c to your computer and use it in GitHub Desktop.
Streaming h264 rtsp to youtube
ffmpeg -i rtsp://${SOURCE} -vcodec copy -f flv\
-acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k\
rtmp://a.rtmp.youtube.com/live2/${KEY}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment