[MEncoder-users] Extract a JPG from a video

The Wanderer inverseparadox at comcast.net
Thu Feb 15 13:10:20 CET 2007


totob at libero.it wrote:

> Hello, I cannot find anywhere the syntax to extract a JPG image from
> a certain fram of a video (avi or flv). How can i do that?

This is not done with MEncoder, but with MPlayer:

mplayer -vo jpeg -frames 1 -ss <offset which gets you to the appropriate
point in the video>

Note that if the frame you want is not at a point which can be gotten to
directly using -ss, you will have to pass a larger value to '-frames'
and dump a number of additional unwanted frames as JPEGs as well.
Frame-precise seeking is not possible with most containers/codecs (short
of advanced brute-force mechanisms which have not been implemented in
MPLayer), so this is something which you'll just have to live with.

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.



More information about the MEncoder-users mailing list