From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 2 10:22:35 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 A2D8C16A41F for ; Mon, 2 Jan 2006 10:22:35 +0000 (GMT) (envelope-from steve@sohara.org) Received: from sohara.org (sohara.org [192.220.64.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7B9E43D48 for ; Mon, 2 Jan 2006 10:22:34 +0000 (GMT) (envelope-from steve@sohara.org) Received: (qmail 59480 invoked by uid 16563); 2 Jan 2006 10:22:32 -0000 Received: from unknown (HELO df1.marelmo.com) ([194.165.183.221]) (envelope-sender ) by 192.220.64.179 (qmail-ldap-1.03) with SMTP for ; 2 Jan 2006 10:22:32 -0000 Date: Mon, 2 Jan 2006 10:19:21 +0000 From: Steve O'Hara-Smith To: freebsd-multimedia@freebsd.org Message-Id: <20060102101921.0016de6b.steve@sohara.org> In-Reply-To: <200601020346.03581.frank@barda.agala.net> References: <200512240440.46994.frank@barda.agala.net> <200512291339.21897.frank@barda.agala.net> <20051230042404.GE27236@puff.jakemsr.gom> <200601020346.03581.frank@barda.agala.net> X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.9; i386-pc-dragonfly1) X-Face: %]+HVL}K`P8>+8ZcY-WGHP6j@&mxMo9JH6_WdgIgUGH)JX/usO0%jy7T~IVgqjumD^OBqX, Kv^-GM6mlw(fI^$"QRKyZ$?xx/ Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 10:22:35 -0000 On Mon, 2 Jan 2006 03:46:02 +0100 "Frank J. Beckmann" wrote: > hat tells me > that the mixér 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. 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 -------------- Index: files/grab_bsdbktr.c =================================================================== 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 = AUDIO_UNMUTE; + if (ioctl(*video_fd, BT848_SAUDIO, &c) < 0) { + perror ("BT848_SAUDIO"); + return -1; + } *video_buf = (u_int8_t *) mmap((void *) 0, width*height*2, PROT_READ, MAP_SHARED, *video_fd, (off_t) 0); if (*video_buf == MAP_FAILED) { --------------------- Cut Here and your monitor will explode -------------- -- C:>WIN | Directable Mirror Arrays The computer obeys and wins. | A better way to focus the sun You lose and Bill collects. | licences available see | http://www.sohara.org/