From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 30 16:56:06 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 8714216A41F for ; Fri, 30 Dec 2005 16:56:06 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id C226543D7D for ; Fri, 30 Dec 2005 16:55:55 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR003.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0ISB00BK1LP6GD60@VL-MO-MR003.ip.videotron.ca> for freebsd-multimedia@freebsd.org; Fri, 30 Dec 2005 11:55:54 -0500 (EST) Date: Fri, 30 Dec 2005 11:55:49 -0500 From: Nicolas Blais In-reply-to: <20051230114354.GA13494@puff.jakemsr.gom> To: freebsd-multimedia@freebsd.org Message-id: <200512301155.54309.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart16317907.hjAg3TDK0L; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: <200512240440.46994.frank@barda.agala.net> <20051230105729.1df83d74.steve@sohara.org> <20051230114354.GA13494@puff.jakemsr.gom> User-Agent: KMail/1.8.3 Cc: Subject: Re: ffmpeg doesn't record sound from WinTV. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 16:56:06 -0000 --nextPart16317907.hjAg3TDK0L Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On December 30, 2005 06:43 am, Jacob Meuser wrote: > On Fri, Dec 30, 2005 at 10:57:29AM +0000, Steve O'Hara-Smith wrote: > > On Thu, 29 Dec 2005 20:24:04 -0800 > > > > Jacob Meuser wrote: > > > On Thu, Dec 29, 2005 at 01:39:21PM +0100, Frank J. Beckmann wrote: > > > > Moin, > > > > > > > > ffmpeg records sound from outher devices. So I guess that it doesn't > > > > tell the > > > > > > =20 > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > > > > TV card to send the audio stream to it's line out. ffmpeg has the > > > > only really > > > > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > > > no, bktr(4) always does that. it is only possible to select the > > > inputs. all outputs are enabled when the tuner is unmuted (which > > > happens by default when the tuner is open()'d). > > > > Yes that should be the case - but ffmpeg will emit an error message > > if opening the tuner fails and that error message is not present. > > > > > do you hear audio when you run the above ffmpeg command? if so, then > > > the problem is solely with the audio grabbing, not bktr. make sure > > > your mixer is set right. > > > > The mixer settings originally posted look correct to me (assuming > > the plug really is in line and not line1 or something silly like that). > > yup, missed that. > > only other things I can think of, are a) make sure the soundcard supports > recording of 48kHz 16-bit stereo (again, would probably see an error > message if not) and b) check that ac3 encoding actually works in that > version of ffmpeg (and that whatever is playing it back supports ac3 > decoding). otherwise, maybe try changing audio parameters. > > still, though, if you hear sound when you run the ffmpeg command, the > problem is not in bktr, but audio. bktr just sends audio to the > soundcard. you don't record audio from bktr, but from the soundcard. Does it record the video? If I do this: ffmpeg -target ntsc-dvd -vd /dev/bktr -ad /dev/dsp -ac 2 fft.mpeg I get a dvd-size blue screen with no sound. But If I do this: transcode -i /dev/bktr0 -x bktr=3Dnorm=3Dntsc:vsource=3Dtuner:asource=3Dtun= er,oss -g=20 640x480 -y ffmpeg -F mpeg4 -p /dev/dsp -o out =20 It works. Nice audio, nice video. Mixer: Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 75:75 Mixer igain is currently set to 0:0 Mixer ogain is currently set to 50:50 Mixer line1 is currently set to 75:75 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Recording source: line (Notice that rec =3D 75:75) Without that, even selecting the right input no= =20 audio will be recorded. Nicolas. =2D-=20 =46reeBSD 7.0-CURRENT #7: Mon Dec 26 12:43:20 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc --nextPart16317907.hjAg3TDK0L Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDtWaa4wTBlvcsbJURAssUAJ9V3JAXC79rgZsgbcLEggXs7vF3tgCgq9GG 2ceX2SkdJZ7dpmfGt8KqHx4= =NEY3 -----END PGP SIGNATURE----- --nextPart16317907.hjAg3TDK0L--