Gregory Hosler wrote:

> 
> My initial results seems to be failures, and I am not sure why.

Bummer

> 
> I used cdparanoia to rip the audio track(s) into a wav file, and then
> I just do
> 
>         8hz-mp3 {wav path/filename} {mp3 filename}
> 
It seems to me I had this same problem back when...

Can you play the ripped wav file? If you are using OSSfree, try catting
the wav file to /dev/dsp... (eg.."cat file.wav > /dev/dsp"). If the .wav
file won't play, obviously the mp3 won't.

If you can't play the wav, It may be that your cdrom drive can't record
cdda info using cdparanoia.

I use cdda2wav myself. I find the newer versions much more reliable than
cdparanoia, and it seems to support more cd drives. If you are using
RedHat, you can find a package at ftp://ftp.redhat.com/pub/contrib/i386 
or around there...

> it takes awhile but evenutally yields a file of approx the expected size,
> however when I play this file w/ a mp3 player (presently using mxaudio from
> www.xaudio.org), I get the proper time length displayed, but only silence.
> I tried running the wav file thru sox -x to flip the bytes before encoding,
> and the results are still the same. silence.

I take it that you have played MP3 files with mxaudio before this?

> p.s. I was able to get a 33% reduction in the encoding time by changing
> the stdout frame update logic to display once per percentage change, as
> opposed to once per frame.

Very cool. I always wondered about how much time is used up by the frame
counter. I've also wondered if increasing the size of the read buffer
(or maybe adding a type of extended FIFO buffer) would improve times. I
use a script that ties std out of cdda2wav to stdin of 8hz-mp3 to encode
directly from the cdrom. I have also noticed that it is a bit slower,
but not because of my cdrom speed (can rip a 4:00 song in :30 seconds).

Anyway, hope this helps.

jf




++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ John Fulmer                   |                                    +
+ Linux, security,              |  you from doing stupid things,     +
+ and paranoia....Ahhh...       |  because that would also stop you  +
+                               |  from doing clever things."        +
+ [EMAIL PROTECTED]          |                                    +
+                               |                     -- Larry Wall  +
+   "The opinions contained above may not reflect those of anyone.." +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to