Page 1 of 1

extracting single frames from movies

Posted: 2010-05-23T06:18:03-07:00
by aberkl
Hi all,
I am looking for a command to extract single frames from a movie (say AVI, MOV, MPG).

I started trying the example from http://www.imagemagick.org/Usage/video/#gif which resulted in the following error message:

Code: Select all

convert -quiet -delay 1 plane.avi plane.gif
convert: no decode delegate for this image format `plane.avi' @ error/constitute.c/ReadImage/533.
convert: missing an image filename `plane.gif' @ error/convert.c/ConvertImageCommand/2940.
Seems I am pretty lost right from the beginning... My version info

Code: Select all

Version: ImageMagick 6.6.0-5 2010-03-07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
What am I doing wrong?

Needless to say I would finally like to extract a single or a range of frames to PNG, JPEG or DPX...

Thanks and enjoy the weekend!
Andreas

Re: extracting single frames from movies

Posted: 2010-05-23T08:20:18-07:00
by snibgo
no decode delegate for this image format `plane.avi'
The missing delegate is ffmpeg. When that is installed, this for example should work:
convert plane.avi[23-25] plane_%03d.png

Re: extracting single frames from movies

Posted: 2010-05-23T10:48:27-07:00
by aberkl
Hi snibgo,

thanks for your reply!

A bit odd: I thought that the windows binaries come with ffmpeg "onboard", and that´s actually the impression you get when you google "imagemagick ffmpeg windows" - it points straight to http://www.imagemagick.org/ and i.e. to http://backroom.bostonproductions.com/? ... omment-251

But it looks ffmpeg has been removed (not too long ago since it´s still in Google´s database?)...

Will try to install ffmpeg manually. And thanks again for your help!

Best, Andreas

Re: extracting single frames from movies

Posted: 2010-05-23T12:58:51-07:00
by snibgo
Ah, as you were missing ffmpeg, I assumed you must be on Unix. As you say, IM on Windows usually (used to?) come with ffmpeg. Installing IM on Windows should set a registry entry or something to point to ffmpeg. (I don't know the details.)

When I last installed IM, it put ffmpeg.exe in the same directory as convert.exe, which was "c:\program files (x86)\imageMagick-6.6.1-Q8\".

Re: extracting single frames from movies

Posted: 2010-05-24T00:10:11-07:00
by aberkl
Hi snibgo,

FYI: viewtopic.php?f=3&t=16268

Best, Andreas

Re: extracting single frames from movies

Posted: 2010-05-24T01:36:08-07:00
by snibgo
I've responded there.