Last active
February 3, 2022 06:40
-
-
Save savvot/9e4316dc68f6111f7b1f to your computer and use it in GitHub Desktop.
Extract only keyframes (I-frames) from video to images with console ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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