From owner-freebsd-multimedia Wed Aug 23 6:28:38 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id 4CC8437B42C for ; Wed, 23 Aug 2000 06:28:35 -0700 (PDT) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer david.siemens.de) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.10.1/8.10.1) with ESMTP id e7NDSUU27051; Wed, 23 Aug 2000 15:28:30 +0200 (MET DST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail2.siemens.de (8.10.1/8.10.1) with ESMTP id e7NDST125871; Wed, 23 Aug 2000 15:28:29 +0200 (MET DST) Received: (from localhost) by curry.mchp.siemens.de (8.10.2/8.10.2) id e7NDSTM10718; Date: Wed, 23 Aug 2000 15:28:29 +0200 From: Andre Albsmeier To: Mike Meyer Cc: Andre Albsmeier , "Jason J. Horton" , multimedia@FreeBSD.ORG Subject: Re: fxtv and video capture Message-ID: <20000823152829.A33979@curry.mchp.siemens.de> References: <20000818120015.A16438@curry.mchp.siemens.de> <14755.50996.515946.110558@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <14755.50996.515946.110558@guru.mired.org>; from mwm@mired.org on Wed, Aug 23, 2000 at 07:44:36AM -0500 X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 23-Aug-2000 at 07:44:36 -0500, Mike Meyer wrote: > Andre Albsmeier writes: > > On Thu, 17-Aug-2000 at 00:06:05 -0400, Jason J. Horton wrote: > > > I am still having trouble getting fxtv to capture TV and > > > convert it to MPEG audio and video. I set it to MPEG ready, > > > capture a chunk of TV, then run the shell script that gets > > > generated. The video part goes just fine, but converting the > > > audio fails. Here is an example: > > > > > > ======FRAMES READ: 2426 > > > ::STATUS:: 0 > > > ::EXEC:: rm /usr/local/video/pbs.param > > > ::STATUS:: 0 > > > ::EXEC:: sox -t raw -s -w -c 2 -r 44100 /usr/local/video/pbs.AUDraw -t aiff /usr/local/video/pbs.aiff && mpeg_musicin -l 2 -p 1 /usr/local/video/pbs.aiff /usr/local/video/pbs.mp2 && rm /usr/local/video/pbs.aiff > > > >>> Using Audio IFF sound file headers > > > Sound data is not PCM in "/usr/local/video/pbs.aiff". > > > ::STATUS:: 1 > > > > > > Command Failed: > > > sox -t raw -s -w -c 2 -r 44100 /usr/local/video/pbs.AUDraw -t aiff /usr/local/video/pbs.aiff && mpeg_musicin -l 2 -p 1 /usr/local/video/pbs.aiff /usr/local/video/pbs.mp2 && rm /usr/local/video/pbs.aiff > > > Conversion Aborted. > > > > > > Anyone have any ideas? Is there a better program tha sox for the > > > conversion? > > > > sox is okay. Look at > > Sox did what it was told to do. The problem is that mpeg_musicin is a > finicky consumer of aiff files. I change the intermediate format to > WAV and it works fine: Interesting. I had no problems with AIFF as soon as the format was correct. > > The following patch applied to /usr/X11R6/lib/X11/fxtv/fxtv_cnvt.sh > fixes it: > > # Do we need an intermediate file? > if [ $mpeg_enc = YES ]; then > - out_soxfn="$out_fnbase.aiff" > - out_soxfmt="AIFF" > + out_soxfn="$out_fnbase.wav" > + out_soxfmt="WAV" > else > out_soxfn="$GAout_fn" > out_soxfmt="$out_fmt" > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=20693 > > > > maybe that helps... At least it should get you into the right > > direction... > > Well, that's not why it's failing for me. I'm not using the SB AWE32; > I can record 16-bit, 44,100 Khz stereo, and get the same results. > > While I'm at it - has anyone managed to use the new pcm drivers to do > serious audio work? Or should I give up and use Windows for this? > > Thanx, >