extract single frame out of .mpg movie
Posted: 2009-02-15T17:27:39-07:00
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
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