problems converting MP3s to WAVs
Klaus-Peter Schrage
kpschrage
Wed May 25 12:12:04 PDT 2005
Klaus-Peter Schrage wrote:
> 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
>
>
> Never tried mpg321 in collaboration with cdrecord to create an audio cd,
> so I gave it a test with the following sequence of commands (which, of
> course, I had found out after some trial and error)
>
> mpg321 -w test.wav -v Chaka\ Kahn-\ Aint\ nobody.mp3
> cdrecord dev=/dev/hdd -pad -dao test.wav
I just dug a bit deeper. I tried the same procedure on an mp3 input file
which was 33 kHz (and NOT 44.1 kHz), and mpg321 produced a wav file with
a corresponding bitrate.
This made cdrecord barf ...
So your problem seems to be bitrate related. What does the file command
tell you about the mp3 and the resulting wav files?
BTW: The option -r 44100 in the mpg321 command didn't change anything
(my version of mpg321 doesn't even seem to recognize it). Try to adjust
the bitrate with sox?
More information about the Linux-users
mailing list