From owner-freebsd-multimedia Wed Jun 23 16:38:37 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from pluto.ipass.net (pluto.ipass.net [198.79.53.5]) by hub.freebsd.org (Postfix) with ESMTP id A74EC14D52 for ; Wed, 23 Jun 1999 16:38:23 -0700 (PDT) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-3-33.dialup.rdu.ipass.net [209.170.134.33]) by pluto.ipass.net (8.9.3/8.9.3) with ESMTP id TAA10215; Wed, 23 Jun 1999 19:38:14 -0400 (EDT) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id TAA02224; Wed, 23 Jun 1999 19:39:59 -0400 (EDT) (envelope-from rhh) Date: Wed, 23 Jun 1999 19:39:59 -0400 From: Randall Hopper To: Kevin Day Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv -> mpeg Message-ID: <19990623193959.A1438@ipass.net> References: <19990620090207.A1125@ipass.net> <199906230526.AAA16220@home.dragondata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <199906230526.AAA16220@home.dragondata.com>; from Kevin Day on Wed, Jun 23, 1999 at 12:26:22AM -0500 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Kevin Day: |> But to nail it down, capture a clip with "MPEG Ready" as a Target (instead |> of MPEG). |> Run the script and save off the output. | |Here's what I get.. | ... |::EXEC:: sox ... && mpeg_musicin ... |SmpFrqIndex: 0 is not a legal sample rate |>>> Using Audio IFF sound file headers |in "/root/myfile.aiff". Yep. I just captured a clip, installed the FreeBSD mpeg_audio package, and got the same error. ::EXEC:: sox ... mpeg_musicin -l 2 -p 1 t.raw.aiff t.raw.mp2 && rm t.raw.aiff SmpFrqIndex: 0 is not a legal sample rate in "t.raw.aiff". However if I use the mpeg_musicin exec I compiled on my machine straight from the mpeg_audio package, it works just fine. This is the problem I was thinking of. There is/has been something screwy about the FreeBSD mpeg_audio port for years. It won't swallow an AIFF file output by sox. Adding a simple -x to sox isn't sufficient to marry them together either. Just grab mpeg_audio and build yourself an executable, and you should be fine. See Appendix A in the fxtv README file for a HOW-TO: /usr/X11R6/lib/X11/fxtv/README |> Another thing to try: see what sox thinks of your AIFF file directly. |>Grab: |> sox -t aiff /root/whatever/myfile.aiff -t raw -s -w -r 44100 - | \ |> dsp-play -r 44100 -b 16 -c 2 | |I'm not able to reach that site now, but i'll try again in a little bit. :) Don't worry about it. It's mpeg_audio that's tripping you up. |Also, I'm not sure if I mentioned this the first time or not, but Windows |and QuickTime are able to read the aiff file just fine. Interesting. So likely the SOX-generated AIFF file is in fact valid, and mpeg_musicin is just limited in what AIFF formats it'll accept. Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message