From owner-freebsd-multimedia Sun Oct 27 14:51:18 2002 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 70CF837B401 for ; Sun, 27 Oct 2002 14:51:16 -0800 (PST) Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0B7E43E75 for ; Sun, 27 Oct 2002 14:51:15 -0800 (PST) (envelope-from g.w.k@web.de) Received: from [217.232.189.13] (helo=pD9E8BD0D.dip.t-dialin.net) by smtp.web.de with asmtp (WEB.DE(Exim) 4.75 #2) id 185wFU-0002Kk-00; Sun, 27 Oct 2002 23:51:12 +0100 Subject: Re: FreeBSD 4.7R: no sound when recording with ffmpeg? From: "Georg-W. Koltermann" To: Steve O'Hara-Smith Cc: freebsd-multimedia@freebsd.org In-Reply-To: <20021027071908.1ac2e5d1.steve@sohara.org> References: <1035673653.3373.8.camel@bat.localnet> <20021027071908.1ac2e5d1.steve@sohara.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 27 Oct 2002 23:51:57 +0100 Message-Id: <1035759136.1944.97.camel@bat.localnet> Mime-Version: 1.0 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 2002-10-27 at 07:19, Steve O'Hara-Smith wrote: > On 27 Oct 2002 01:07:22 +0200 > "Georg-W. Koltermann" wrote: > > [...] > GWK> Since I upgraded to 4.7R, I don't capture sound any more. > > Urk! > > GWK> Ffmpeg does record sound (if I turn up the recording volume, I get > GWK> audible static), it just doesn't seem to activate the audio output of > GWK> the tuner any more. > > Strange, this is achieved by simply opening /dev/tuner0 (it > still works for me on 4.7-STABLE about two weeks old). The only other > thing it depends on is proper mixer settings (record level and device > are classic gotchas). Is /dev/tuner0 still there and writeable to > whichever user runs ffmpeg ? Thanks Steve, that was it. /dev/tuner0 was 0444, which oddly didn't cause any error message from ffmpeg, but it didn't activate the sound. Now after a chown $USER and chmod 644 sound works. > GWK> Mencoder does not have this problem, it still records audio. But > GWK> with Mencoder I can only grab 6 to 7 fps :-( > > Double urk! Mencoder and ffmpeg do this in exactly the same > way. Hmm, the mplayer/mencoder from ports didn't want to grab at all when I tried it in 4.6-R. It said something about no matching colorspace. I applied the patch of pb@ludd.luth.se (http://www.freebsd.org/cgi/getmsg.cgi?fetch=8374+0+/usr/local/www/db/text/2002/freebsd-multimedia/20021006.freebsd-multimedia). Now that you say it should work I searched the mail archives again and found that a frame rate of 16 was hardcoded in that patch. Yikes! When I remove that hardcoding I get 19-20 fps mpeg4 at full PAL resolution. This is with a Pentium 4A 2 GHz. With ffmpeg, encoding as mjpeg and no audio compression, I can capture full resolution with just occasional jerkyness. All this is with your recent one-line bktr patch for sync generation. -- Regards, Georg. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message