[MPlayer-users] Screenshot from specific frame number

Lobster lobo at lobs.sytes.net
Tue Mar 6 20:28:35 CET 2012


On 7/03/2012 8:15 a.m., Marlon Smith wrote:
> Does anyone else have any thoughts on this?  I'd really appreciate it.
>
> Marlon
>
> On Mon, 2012-03-05 at 01:31 +0200, Onur Küçük wrote:
>
>> On Sun, 04 Mar 2012 15:26:49 -0800
>> Marlon Smith<marlon.smith10 at gmail.com>  wrote:
>>
>>> Hi everyone,
>>>
>>> I have a raw h.264 video file, and I'd like to take a screenshot of
>>> one of the frames.  I know the video is encoded at 30fps.  Normally,
>>> I can use the -ss option to seek to the time location I want, but
>>> since this is a raw h.264 file that doesn't seem to be an option.
>>>
>>> Can anyone think of a way for me to seek to a specific frame, and
>>> take a screenshot of that frame?  That way I can still take a
>>> screenshot at the time I want.

You could try using the framestep vf,
i.e `mplayer -nosound -benchmark -vf framestep=2800 -frames 1 -vo png 
input.h264`

be aware, every frame until the frame you want will be decoded,
meaning if it is a long way into the file it may take a while.
I have not tested this myself so cant confirm it will work.



More information about the MPlayer-users mailing list