Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2008 20:05:47 +0000 (UTC)
From:      D Hill <d.hill@yournetplus.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Converting AVI and MPEG Into Still Images
Message-ID:  <alpine.BSF.1.10.0805132001410.86074@duane.dbq.yournetplus.com>
In-Reply-To: <20080513193332.GA89972@demeter.hydra>
References:  <alpine.BSF.1.10.0805131829410.84635@duane.dbq.yournetplus.com> <20080513191212.GB89794@demeter.hydra> <alpine.BSF.1.10.0805131921050.85197@duane.dbq.yournetplus.com> <20080513193332.GA89972@demeter.hydra>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 13 May 2008 at 13:33 -0600, perrin@apotheon.com confabulated:

> On Tue, May 13, 2008 at 07:22:17PM +0000, D Hill wrote:
>> On Tue, 13 May 2008 at 13:12 -0600, perrin@apotheon.com confabulated:
>>
>>> On Tue, May 13, 2008 at 06:31:53PM +0000, D Hill wrote:
>>>>
>>>> Is there anything in the ports tree I can use to convert AVI and/or MPEG
>>>> videos into individual frames as jpg or a different still graphic format?
>>>
>>> MPlayer should be able to do that.  By the way, AVI is a container
>>> format, not a codec, and most AVIs use MPEG (in my experience) for video
>>> codec.
>>
>> Thanks for the info. I had not realized MPlayer does that. Josh Tolbert
>> also made the same suggestion. I shall pursue figuring out how it's done.
>
> There are at least two frame capture options for MPlayer that can be
> activated during playback -- I've gotten "screenshots" from video in the
> past in this manner, using the option that grabs many frame captures over
> a short period of time so that I could pick from among several to get the
> best image.  There may be other ways to do the same, or something
> similar.
>
> If I remember correctly, using the -vf option when you start MPlayer
> allows you to grab screenshots with the s (for single) or S (for constant
> frame capture) keyboard commands while it's running.  I don't know what
> the GMPlayer interface offers for the same functionality -- never use the
> thing.

Thanks for the tip. I did some Google searching and am actually doing it 
right from a terminal now:

   For the entire AVI:
   mplayer -vo jpeg -nosound my_avi.avi

   Starting from a specific spot:
   mplayer -vo jpeg -ss 00:15:00 -nosound my_avi.avi

   Starting from a specific spot for a number of frames:
   mplayer -frames 150 -vo jpeg -ss 00:15:00 -nosound my_avi.avi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.10.0805132001410.86074>