Skip to content

Instantly share code, notes, and snippets.

@kirkins
Created August 1, 2017 15:17
Show Gist options
  • Save kirkins/5d69c491e933fe13242dcd7fdeea6667 to your computer and use it in GitHub Desktop.
Save kirkins/5d69c491e933fe13242dcd7fdeea6667 to your computer and use it in GitHub Desktop.
ffmpeg notes
# output to a video file
ffmpeg -re -f video4linux2 -i /dev/video0 out.mp4
# output format flash to local live stream
# this requires RTMP server to be running
ffmpeg -re -f video4linux2 -i /dev/video0 -f flv rtmp://localhost/live/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment