Advertisement
Guest User

ffmpeg Command Commented

a guest
Apr 10th, 2020
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. python3 script.py | # run python script and pipe it's stdout to ffmpeg
  2. ffmpeg # ffmpeg binary path
  3. -f rawvideo # input container is rawvideo
  4. -vcodec rawvideo # input codec is rawvideo
  5. -s 640x360 # size of input frame
  6. -pix_fmt rgba # input pixel format
  7. -r 30 # framerate
  8. -i - # input is coming from stdin through pipe
  9. -f lavfi # dummy audio
  10. -i anullsrc # dummy audio
  11. -c:v libx264 # encode output as h264
  12. -b:v 1M # bitrate for output 1Mbit
  13. -f flv # output container flv
  14. rtmp://x.rtmp.youtube.com/live2/LIVE_STREAM_KEY \ # YouTube RTMP address followed by key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement