Saving a video into a sequence of images
I wanted to create a GIF out of a part of a video sequence. But how could one extract a sequence of images from a video? After some googling FFMPEG turned out to be the savior. Here’s a sample command for taking a series of snapshots out of a video using ffmpeg:
ffmpeg -ss 23 -i kids.mp4 -f image2 -vframes 50 a%2d.jpg
23 is the position in the video to start extracting images (in seconds). kids.mp4 is the input video file. image2 says that the output would be in JPEG format. 50 is the number of frames to capture. a%2d.jpg is the format of the output file, i.e. in this case the files would be saved as a01.jpg, a02.jpg, etc.
The next step would be to convert the sequence of images to a GIF, which can be easily done using GIMP.

Hey, that’s pretty neat.
I’ve always wanted to know how to do it.
Himal Kotelawala
November 3, 2010 at 9:53 pm
[...] Fuente | Thameera’s [...]
Guardar un video como una secuencia de imágenes « Ubuntu Life
November 8, 2010 at 1:17 am
Eh? Not a windows app? -__-
Narada Thomas
November 14, 2010 at 7:27 am
FFMPEG is cross-platform
thameera
November 14, 2010 at 7:31 am