From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 2 18:39:44 2006 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 1081516A41F for ; Mon, 2 Jan 2006 18:39:44 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (Ibc3f.i.pppool.de [85.73.188.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09AE143D48 for ; Mon, 2 Jan 2006 18:39:41 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (barda [192.168.20.1]) by barda.agala.net (Postfix) with ESMTP id C9A34119CE2 for ; Mon, 2 Jan 2006 19:39:39 +0100 (CET) Received: from babylon.agala.net (babylon.agala.net [192.168.223.42]) by mail.agala.net (Postfix) with ESMTP id 94484119CD9 for ; Mon, 2 Jan 2006 19:39:39 +0100 (CET) From: "Frank J. Beckmann" Organization: agala naga doron To: freebsd-multimedia@freebsd.org Date: Mon, 2 Jan 2006 19:39:37 +0100 User-Agent: KMail/1.8.3 References: <200512240440.46994.frank@barda.agala.net> <200601020346.03581.frank@barda.agala.net> <20060102101921.0016de6b.steve@sohara.org> In-Reply-To: <20060102101921.0016de6b.steve@sohara.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200601021939.38720.frank@barda.agala.net> X-Scanned-By: emfilter 1.0 @ 192.168.20.1 X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon Jan 2 19:39:40 2006 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 262,43b9736c341001002414677 X-DSPAM-Factors: 27, Organization*naga+doron, 0.00010, Message-Id*agala+net, 0.00010, Content-Type*text+plain, 0.00010, Content-Disposition*inline, 0.00010, Content-Type*plain, 0.00010, From*Beckmann+frank, 0.00010, From*agala, 0.00010, Message-Id*frank, 0.00010, From*net, 0.00010, Message-Id*frank+barda, 0.00010, Disposition-Notification-To*agala+net, 0.00010, Disposition-Notification-To*agala, 0.00010, Organization*agala, 0.00010, To*freebsd, 0.00010, To*freebsd, 0.00010, Disposition-Notification-To*Frank+Beckmann, 0.00010, Disposition-Notification-To*Frank, 0.00010, From*frank+barda, 0.00010, Disposition-Notification-To*frank, 0.00010, Disposition-Notification-To*barda, 0.00010, Received*freebsd.org, 0.00010, From*Frank+Beckmann, 0.00010, To*freebsd+org, 0.00010, Disposition-Notification-To*Beckmann+frank, 0.00010, To*multimedia, 0.00010 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: Mon, 02 Jan 2006 18:39:44 -0000 Moin, am Montag, 2. Januar 2006 11:19 schrieb Steve O'Hara-Smith: > On Mon, 2 Jan 2006 03:46:02 +0100 > > "Frank J. Beckmann" wrote: > > hat tells me > > that the mix=C3=A9r settings are ok but the tv card does not send sound= then I > > use ffmpeg (or nuppelvideo). > > ffmpeg and nuppelvideo both use the same code to talk to the bktr > device, it relies on the sound being activated by opening the tuner device > which usually does the job. I see something possible in the xawtv code - > could you try two things (in this order) please. > > First try rebooting and using ffmpeg *without* first running > xawtv (or motv) - you can tune the signal by setting the environment > variable BKTR_FREQUENCY to a frequency in megahertz. I have a suspicion > that xawtv is leaving the sound muted, every bktr card I have seen powers > up with the sound unmuted - this will test my suspicion. That did it. ffmpeg records sound when I didn't start moTV before. I used m= oTV=20 to set the channel. > Second try applying this patch in /usr/ports/multimedia/ffmpeg > and then rebuilding and reinstalling ffmpeg. Let me know how you get > on - if it works I will try and get the patch committed and pushed up > to ffmpeg (grab_bsdbktr.c is now in ffmpeg CVS). > > --------------------- Cut Here and your monitor will explode ------------= =2D- > Index: files/grab_bsdbktr.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /ncvs/ports/multimedia/ffmpeg/files/grab_bsdbktr.c,v > retrieving revision 1.9 > diff -u -r1.9 grab_bsdbktr.c > --- files/grab_bsdbktr.c 6 Jun 2005 02:05:01 -0000 1.9 > +++ files/grab_bsdbktr.c 2 Jan 2006 10:15:50 -0000 > @@ -171,6 +171,11 @@ > perror ("METEORSINPUT"); > return -1; > } > + c =3D AUDIO_UNMUTE; > + if (ioctl(*video_fd, BT848_SAUDIO, &c) < 0) { > + perror ("BT848_SAUDIO"); > + return -1; > + } > *video_buf =3D (u_int8_t *) mmap((void *) 0, width*height*2, > PROT_READ, MAP_SHARED, *video_fd, (off_t) 0); > if (*video_buf =3D=3D MAP_FAILED) { > --------------------- Cut Here and your monitor will explode ------------= =2D- That patch doesn't work: ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bell= ard built on Jan 2 2006 17:23:10, gcc: 3.4.4 [FreeBSD] 20050518 Assuming PAL for target. BT848_SAUDIO: Inappropriate ioctl for device 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=3D2-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 SLEPT NO signals - 30448 microseconds late Segmentation fault (core dumped) =2D-=20 Tsch=C3=BCss =46rank