Page 1 of 1

extract single frame out of .mpg movie

Posted: 2009-02-15T17:27:39-07:00
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

Re: extract single frame out of .mpg movie

Posted: 2009-02-15T17:42:26-07:00
by magick
We'll need to get a patch in the ImageMagick distribution to support a fixed number of frames.

Re: extract single frame out of .mpg movie

Posted: 2009-02-15T20:10:00-07:00
by wchang615
I see. Thanks for your quick reply.

--Wo