Date: Wed, 23 Aug 2000 07:44:36 -0500 (CDT) From: Mike Meyer <mwm@mired.org> To: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Cc: "Jason J. Horton" <jason@intercom.com>, multimedia@FreeBSD.ORG Subject: Re: fxtv and video capture Message-ID: <14755.50996.515946.110558@guru.mired.org> In-Reply-To: <20000818120015.A16438@curry.mchp.siemens.de> References: <Pine.BSF.4.21.0008162357510.18789-100000@kaon.intercom.com> <20000818120015.A16438@curry.mchp.siemens.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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,
<mike
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14755.50996.515946.110558>
