extract single frame out of .mpg movie

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
wchang615

extract single frame out of .mpg movie

Post by wchang615 »

Dear All,

When using the MagickCore to convert a mpeg movie to .jpg, the process kicks off the ffmpeg and decode every single frames which is very nice. Question: how can I just extract one single frame? I could do it using command-line as:

ffmpeg -r 29.97 -ss 00:00:01.262 -an -i input.mpg -vframes 1 -qscale 1 -s 320x240 -f mjpeg -y test.jpg

Can I encode the above parameters using MagickCore?

Thanks in advanced for any help.

--Wo
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: extract single frame out of .mpg movie

Post by magick »

We'll need to get a patch in the ImageMagick distribution to support a fixed number of frames.
wchang615

Re: extract single frame out of .mpg movie

Post by wchang615 »

I see. Thanks for your quick reply.

--Wo
Post Reply