[MPlayer-users] Screenshot from specific frame number

Marlon Smith marlon.smith10 at gmail.com
Mon Mar 5 00:44:02 CET 2012


Hi Onur, thanks for the quick reply.  I've been doing this to get a
screenshot from an avi video file:

mplayer input_file.avi -nosound -ss 00:00:10 -vo png -frames 1

and it does exactly what I want.  It just doesn't work for raw h.264
files since I can't seek to a time location.  In the example above, I'd
love to just replace the 00:00:10 with frame #300, but mplayer doesn't
seem to give me that option.

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.
> 
>  Using -vo with an image format may help, that way you can take images
> and select which one you want from them. See man page and 
> 
>  mplayer -vo help
> 
> -- 
>  Onur Küçük                                      Knowledge speaks,
>  <onur.--.-.delipenguen.net>                     but wisdom listens
> 
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users




More information about the MPlayer-users mailing list