From owner-freebsd-multimedia@FreeBSD.ORG Mon Feb 7 03:28:44 2005 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4548416A4CE for ; Mon, 7 Feb 2005 03:28:44 +0000 (GMT) Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA3B943D1F for ; Mon, 7 Feb 2005 03:28:43 +0000 (GMT) (envelope-from paul@haggis.it.ca) Received: from haggis.it.ca (paul@localhost [127.0.0.1]) by haggis.it.ca (8.12.11/8.12.11) with ESMTP id j173Sfsx041119 for ; Sun, 6 Feb 2005 22:28:42 -0500 (EST) (envelope-from paul@haggis.it.ca) Received: (from paul@localhost) by haggis.it.ca (8.12.11/8.12.6/Submit) id j173Sf1M041118 for freebsd-multimedia@freebsd.org; Sun, 6 Feb 2005 22:28:41 -0500 (EST) (envelope-from paul) Date: Sun, 6 Feb 2005 22:28:41 -0500 From: Paul Chvostek To: freebsd-multimedia@freebsd.org Message-ID: <20050207032841.GA33816@it.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: ffmpeg at half speed ... sort of. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 03:28:44 -0000 This is weird. When I encode with ffmpeg, the resultant file appears to play back at about half the expected framerate, with the wrong bitrate. I encode with ffmpeg: encode$ ffmpeg -y -an -vd /dev/bktr0 -s 160-120 -tvstd ntsc \ -vcodec mpeg4 -b 50 -f avi -t 15 -r 29.97 test.avi And the resultant file appears to be right: encode$ file test.avi test.avi: RIFF (little-endian) data, AVI, 160 x 120, ~30 fps, video: DivX 4 And mplayer says: play$ mplayer test.avi 2>/dev/null | grep VIDEO VIDEO: [DIVX] 160x120 24bpp 29.970 fps 127.9 kbps (15.6 kbyte/s) Note the 127.9 kbps. That's at odds with ffmpeg's "-b 50". And the actual video that gets displayed seems to run in slow motion. Yet after playing a 15 second clip, mplayer shows: V: 15.0 450 1% 3% 0.0% 0 0 0% indicating 30fps. The video plays back in real time when I force the framerate to the ratio of 127.9 kbps to the 50 I specified: encode$ mplayer -fps 77 test.avi But that doesn't give me 15 seconds of video. Specs for the encoder and player are: encode$ uname -sr FreeBSD 5.3-STABLE encode$ dmesg | grep bktr0: bktr0: mem 0xee3fe000-0xee3fefff irq 21 at device 10.0 on pci1 bktr0: [GIANT-LOCKED] bktr0: Warning - card vendor 0x0000 (model 0x0000) unknown. bktr0: Detected a DPL34193 at 0x84 bktr0: Intel Smart Video III/VideoLogic Captivator PCI, dpl3518a dolby. play$ mplayer --version MPlayer 1.0pre5try2-3.4.2 (C) 2000-2004 MPlayer Team ... The card is an AVerMedia unit with no tuner or audio, despite what it claims. Mplayer doesn't have problems with anything else. Anybody know what the heck is going on here? Thanks. :) -- Paul Chvostek