Skip to content

Instantly share code, notes, and snippets.

@msis
Last active February 4, 2018 22:57
Show Gist options
  • Save msis/b653fa0ca72f879c240558f3f14c8f72 to your computer and use it in GitHub Desktop.
Save msis/b653fa0ca72f879c240558f3f14c8f72 to your computer and use it in GitHub Desktop.
[Notes on ffmpeg] #ffmpeg #h264 #fps #mp4

Extract frames from video source

ffmpeg -i myvideo.mp4 -vf fps=4 frm%06d.jpg

Change frame rate of h264 video source

ffmpeg -y -i source.mp4 -r 25 -c:v libx264 -b:v 3M -strict -2 -movflags faststart destination.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment