From owner-freebsd-questions@FreeBSD.ORG Tue May 13 20:05:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1167D1065670 for ; Tue, 13 May 2008 20:05:48 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id DBC388FC15 for ; Tue, 13 May 2008 20:05:47 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: by duane.dbq.yournetplus.com (Postfix, from userid 1001) id 48B2F27E429; Tue, 13 May 2008 20:05:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id 4098327E41F for ; Tue, 13 May 2008 20:05:47 +0000 (UTC) Date: Tue, 13 May 2008 20:05:47 +0000 (UTC) From: D Hill X-X-Sender: d.hill@duane.dbq.yournetplus.com To: freebsd-questions@freebsd.org In-Reply-To: <20080513193332.GA89972@demeter.hydra> Message-ID: References: <20080513191212.GB89794@demeter.hydra> <20080513193332.GA89972@demeter.hydra> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: Converting AVI and MPEG Into Still Images X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2008 20:05:48 -0000 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