Skip to content

Instantly share code, notes, and snippets.

@candycode
Created April 6, 2014 12:00
Show Gist options
  • Save candycode/10005011 to your computer and use it in GitHub Desktop.
Save candycode/10005011 to your computer and use it in GitHub Desktop.
extract frames from video
# ffmpeg -i file.mp4 -y -ss 5 -an -sameq -f image2 -r 1/5 filename%03d.jpg
-y
Overwrite output files
-ss position
Seek to given time position in seconds. "hh:mm:ss[.xxx]" syntax is also supported
-an
Disable audio recording
-sameq
Use same video quality as source
-f fmt
Force format
-r fps
Set frame rate (Hz value, fraction or abbreviation), (default = 25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment