From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 30 04:24:08 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 8A39016A41F for ; Fri, 30 Dec 2005 04:24:08 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: from mail231.csoft.net (resin.csoft.net [63.111.22.86]) by mx1.FreeBSD.org (Postfix) with SMTP id 1BB7243D60 for ; Fri, 30 Dec 2005 04:24:06 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: (qmail 29313 invoked from network); 30 Dec 2005 04:26:18 -0000 Received: from unknown (HELO puff.jakemsr.gom) (63.111.27.87) by mail231.csoft.net with SMTP; 30 Dec 2005 04:26:18 -0000 Received: (from jakemsr@jakemsr.com) by puff.jakemsr.gom (mini_sendmail/1.3.5 16nov2003); Thu, 29 Dec 2005 20:24:04 PST (sender jakemsr@puff.jakemsr.gom) Date: Thu, 29 Dec 2005 20:24:04 -0800 From: Jacob Meuser To: freebsd-multimedia@freebsd.org Message-ID: <20051230042404.GE27236@puff.jakemsr.gom> Mail-Followup-To: freebsd-multimedia@freebsd.org References: <200512240440.46994.frank@barda.agala.net> <20051229100252.2f29a8f2.steve@sohara.org> <200512291339.21897.frank@barda.agala.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512291339.21897.frank@barda.agala.net> User-Agent: Mutt/1.4.2i 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 04:24:08 -0000 On Thu, Dec 29, 2005 at 01:39:21PM +0100, Frank J. Beckmann wrote: > Moin, > > am Donnerstag, 29. Dezember 2005 11:02 schrieb Steve O'Hara-Smith: > > On Sat, 24 Dec 2005 04:40:45 +0100 > > > > "Frank J. Beckmann" wrote: > > > Hi, > > > > > > I can't record sound from my Hauppage WinTV with ffmpeg. The audio out of > > > the tvcard is connected to the line in of the soundcard. I can record > > > sound with moTV (XawTV) but not with ffmpeg. ffmpeg records sound if I > > > choose another input device like the cd in. It looks like ffmpeg is > > > forgetting to the the tvcard to send it's sound to the audio card. ffmpeg > > > tells me that it records the sound, but all it gets is silence. > > > > > > ffmpeg -target dvd -vd /dev/bktr -ac 2 -tvstd PAL /var/tmp/fft.mpeg > > > > Post the early output of this command please. > > ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard > built on Dec 26 2005 21:29:11, gcc: 3.4.4 [FreeBSD] 20050518 > Assuming PAL for target. > File '/var/tmp/fft.mpeg' already exists. Overwrite ? [y/N] y > Input #0, video4linux, from '': > Duration: N/A, bitrate: N/A > Stream #0.0: Video: rawvideo, yuv422, 720x576, 25.00 fps > Input #1, audio_device, from '': > Duration: N/A, bitrate: N/A > Stream #1.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s > Output #0, vob, to '/var/tmp/fft.mpeg': > Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, q=2-31, 6000 kb/s > Stream #0.1: Audio: ac3, 48000 Hz, stereo, 448 kb/s > Stream mapping: > Stream #0.0 -> #0.0 > Stream #1.0 -> #0.1 > Press [q] to stop encoding > > I also tried: > > ffmpeg -target dvd -ad /dev/dsp -vd /dev/bktr -ac 2 -tvstd > PAL /var/tmp/fft.mpeg /dev/dsp is the default anyway. > ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard > built on Dec 26 2005 21:29:11, gcc: 3.4.4 [FreeBSD] 20050518 > Assuming PAL for target. > File '/var/tmp/fft.mpeg' already exists. Overwrite ? [y/N] y > Input #0, video4linux, from '': > Duration: N/A, bitrate: N/A > Stream #0.0: Video: rawvideo, yuv422, 720x576, 25.00 fps > Input #1, audio_device, from '': > Duration: N/A, bitrate: N/A > Stream #1.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s > Output #0, vob, to '/var/tmp/fft.mpeg': > Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, q=2-31, 6000 kb/s > Stream #0.1: Audio: ac3, 48000 Hz, stereo, 448 kb/s > Stream mapping: > Stream #0.0 -> #0.0 > Stream #1.0 -> #0.1 > Press [q] to stop encoding > > But that didn't help. > > moTV, XawTV and fxtv are able to record sound, ffmpeg and nupplevideo are not. > ffmpeg records sound from outher devices. So I guess that it doesn't tell the ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 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). 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. ffmpeg doesn't set the mixer, while the programs that work for you all do set the mixer, IIRC. > acceptable video recording quality of the programs that I tested. yes, it is the best encoder, IMO. -- > > PS. sorry for the delayed reply Xmas, kids and all that. > > Don't mind. I'm on vacation till next year. :-) > -- > Tsch?ss > Frank > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" >