views:

42

answers:

3

What program on Linux would allow you to convert all the frames in an AVI into a series of JPEG files?

A: 

one word: mencoder

Javier
+1  A: 

Use ffmpeg.

ffmpeg -i infile.avi -f image2 image-%03d.jpg

Check out this answer on stackoverflow, as pointed out by Chris S.

I also found this article entitled "Creating Animated Screenshots on Linux" which details the process of using mencoder to capture sequential screenshots. (The end of the article discusses taking those screenshots and encoding them into another format, but you can disregard that part.)

Oren
I've used the above line for the same purpose and it seemed to work except not quite. When recording my video, I recorded at a rate of 1000fps and the video turned out to be 2min29sec long. If my math is correct, that should amount to a total of 149,000 frames for the entire video. However, when I ran 'ffmpeg -i myfile.avi -f image2 image-%05d.bmp", I only obtained 4472 files. How can I get the original 149k frames?
Myx
I also tried to convert the frame rate of my original AVI to 1000fps by doing 'ffmpeg -i myfile.avi -r 1000 otherfile.avi' but this didn't seem to fix my concern.
Myx
A: 

MPlayer/MEncoder could be of help. I have used it to convert movie files into formats that occupied lesser space. But not for extracting jpegs yet.

vpit3833