LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Extracting video frames to image files. (https://www.linuxquestions.org/questions/linux-general-1/extracting-video-frames-to-image-files-492437/)

Gutya 10-14-2006 05:38 PM

Extracting video frames to image files.
 
How can I extract all the frames in an AVI to seperate image files?

I need to do this as I have a short clip I need to turn into a GIF, I need the induvidual frames as images so that I can animate them.

Thanks in advance.

David the H. 10-15-2006 04:16 AM

Transcode should be able to do it. Something like:

Code:

transcode -i inputvid.avi -y im,null -F gif -w 50 -o ./image
the -w is for image quality. It works for .png, but the man page doesn't make it clear if it works for .gif or not.

I just tested it on a short .mpg I have, and it seems to work, giving a series of 'image00001.gif images in the working directory. It's uncommonly slow though. It only encodes about 0.3 frames a second on my system.

I don't doubt mplayer could do it as well, but I'm not familiar with the commands for it.


All times are GMT -5. The time now is 12:51 PM.