Skip to content

Instantly share code, notes, and snippets.

@illucent
Forked from savvot/ffmpeg-extract-keyframes.sh
Created January 23, 2019 10:36
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 illucent/1dd5a74b0585f927111575b97e1bd3d7 to your computer and use it in GitHub Desktop.
Save illucent/1dd5a74b0585f927111575b97e1bd3d7 to your computer and use it in GitHub Desktop.
Extract only keyframes (I-frames) from video to images with console ffmpeg
ffmpeg -ss <start_time> -i video.mp4 -t <duration> -q:v 2 -vf select="eq(pict_type\,PICT_TYPE_I)" -vsync 0 frame%03d.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment