problems converting MP3s to WAVs

Tim Wunder tim
Tue May 24 15:41:33 PDT 2005


On 5/24/2005 3:07 PM, I believe that Net Llama! wrote:
> I've got a bunch of MP3s that I want to convert to WAVs so that I can make
> audio CDs.  I'm running into an annoying problem where I either end up
> with a WAV that doesn't match the criteria needed to create an audio CD
> (cdrecord barfs with the error "Inappropriate audio coding") or the WAV is
> encoded at 2x speed of the MP3 (and burns to the CD fine, but sounds like
> the chipmunks).
> 
> The commands i've used are as follows:
> mpg321 -r 44100 --stereo -w track01.wav track01.mp3
> 	^ this one gives me the WAVs that won't burn
> 
> mpg321 -b 10000 -s file.mp3 | sox -t raw -r 44100 -s -w -c2 - file.wav
> 	^ this one gives me the WAVs that are 2x fast
> 
> Anyone have any suggestions?
> 

Never tried it before, but a bit of googling found:
"To create a CD-R from a whole bunch of MP3-files, you can use the 
following command sequence:

for I in *.mp3
do
     mpg123 --cdr - "$I" | cdrecord -audio -pad -nofix -
done
cdrecord -fix

Depending on the speed of your machine, you may want to slow down 
writing to "speed=1" (cdrecord option). If you use "speed=4", your 
machine must be able to play the MP3-file at quadruple speed. mpg123 
consumes much CPU-time! If you are in doubt, try an empty run with 
-dummy (keeps the laser switched off). "

Taken from http://www.tldp.org/HOWTO/CD-Writing-HOWTO-3.html#ss3.2

HTH,
Tim


More information about the Linux-users mailing list