extracting single frames from movies

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
aberkl
Posts: 45
Joined: 2009-06-29T03:53:05-07:00
Authentication code: 8675309
Location: Germany/Munich

extracting single frames from movies

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: extracting single frames from movies

Post 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
snibgo's IM pages: im.snibgo.com
aberkl
Posts: 45
Joined: 2009-06-29T03:53:05-07:00
Authentication code: 8675309
Location: Germany/Munich

Re: extracting single frames from movies

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: extracting single frames from movies

Post 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\".
snibgo's IM pages: im.snibgo.com
aberkl
Posts: 45
Joined: 2009-06-29T03:53:05-07:00
Authentication code: 8675309
Location: Germany/Munich

Re: extracting single frames from movies

Post by aberkl »

Hi snibgo,

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

Best, Andreas
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: extracting single frames from movies

Post by snibgo »

I've responded there.
snibgo's IM pages: im.snibgo.com
Post Reply