I have a video sequence, let's say an avi file. I want to transform it into a sequence of .jpg images, named 1.jpg, 2.jpg, .... n.jpg (for n frames in the avi file). How can I accomplish this?

ffmpeg -i Video.avi %d.jpg

(via http://ubuntuforums.org/showthread.php?t=1141293)


In my case, I liked this version, which only captures frames that are >5% different from previous frames:

ffmpeg -i my_video.mp4 -vf select="gt(scene\,0.05)" -vsync 0 -an my_subfolder/my_slides-%05d.jpg

I used this command to convert a video recording (of a basic text Powerpoint slideshow) into simple images of each slide.

See ffmpeg documentation here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.