LaVOZs

The World’s Largest Online Community for Developers

'; FFMPEG- Convert video to images - LavOzs.Com

how can i convert a video to images using ffmpeg? Example am having a video with total duration 60 seconds. I want images between different set of duration like between 2-6 seconds, then between 15-24 seconds and so on. Is that possible using ffmpeg?

You can use the select filter for a set of custom ranges:

ffmpeg -i in.mp4 -vf select='between(t,2,6)+between(t,15,24)' -vsync 0 out%d.png

Official ffmpeg documentation on this: Create a thumbnail image every X seconds of the video

Output one image every second:

ffmpeg -i input.mp4 -vf fps=1 out%d.png

Output one image every minute:

ffmpeg -i test.mp4 -vf fps=1/60 thumb%04d.png

Output one image every 10 minutes:

ffmpeg -i test.mp4 -vf fps=1/600 thumb%04d.png
Related
Rotating videos with FFmpeg
FFmpeg on Android
FFMPEG - Can you overlay part of a video with a couple of images?
Cutting the videos based on start and end time using ffmpeg
How to create a video from images with FFmpeg?
Creating a video from a single image for a specific duration in ffmpeg
ffmpeg and php to get an image out of a video and convert video to ogg
ffmpeg: Convert gif to video