The UK Babe Channels Forum

Full Version: How to extract JPEGs automatically from AVI files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd like to be able to use a Windows program that will let me load up an AVI file and extract every frame automatically as a series of JPEGs. Not sure if this is possible. Can anyone help or advise please?

Thanks
(19-12-2010 15:31 )anorak49 Wrote: [ -> ]I'd like to be able to use a Windows program that will let me load up an AVI file and extract every frame automatically as a series of JPEGs. Not sure if this is possible. Can anyone help or advise please?

Thanks

see http://www.dotcomunderground.com/blogs/2...ree-tools/
Thanks Watcher but while that actually solves another problem I was thinking of, what I was looking for this time around was something that did every frame and saved that into separate consecutively named files.

Thanks
(19-12-2010 16:30 )anorak49 Wrote: [ -> ]Thanks Watcher but while that actually solves another problem I was thinking of, what I was looking for this time around was something that did every frame and saved that into separate consecutively named files.

Thanks

In linux it would be fairly easy with a shell script using the ffmpeg command line program with the correct parameters.

ffmpeg is also available for Windows, but I do not know how you could make it take more than one screenshot.
A control loop is needed to pass values to the program to sequentially set the time of the screenshot and rename each one.
eg typing this would just produce a single screenshot, 400x300 pixels at 20 seconds from start.
ffmpeg -ss 20 -i VideoFilename.avi -s 400x300 -vcodec mjpeg -vframes 1 -an -f rawvideo screenshot.jpg
I'm more curious as to why you'd ever want to do this Huh
Even a short clip is going to generate quite an amount of images so unless you then need to use every single still for something it'd probably be quicker to use proper editing software to view the frames and capture manually from there
You could try Free Video to JPG Converter but I can't attest to it's quality or stability
Rightly or wrongly I figured it would be easier just to set the thing running unattended to do the extraction process and all I'd need to do is scan the extracted files to make a decision on what to use or not. The alternative (traditional) route is to view each frame and spend time extracting manually. Maybe I'm seeing a problem where there isn't one.

Thanks for the heads up regarding the converter, will give it a whirl.
Reference URL's