From owner-freebsd-multimedia Wed Aug 23 5:44:44 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from guru.mired.org (zoom1-146.telepath.com [216.14.1.146]) by hub.freebsd.org (Postfix) with SMTP id 341DA37B423 for ; Wed, 23 Aug 2000 05:44:39 -0700 (PDT) Received: (qmail 92790 invoked by uid 100); 23 Aug 2000 12:44:36 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14755.50996.515946.110558@guru.mired.org> Date: Wed, 23 Aug 2000 07:44:36 -0500 (CDT) To: Andre Albsmeier Cc: "Jason J. Horton" , multimedia@FreeBSD.ORG Subject: Re: fxtv and video capture In-Reply-To: <20000818120015.A16438@curry.mchp.siemens.de> References: <20000818120015.A16438@curry.mchp.siemens.de> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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: 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,