mpg321 doesn't convert mp3 to wav properly
Hi. The command that I am using is:
mpg321 -b 10000 -s songname.mp3 | sox -t wav -r 44100 -s -w -c 2 - songname.wav
mpg321 seems to create the file, but it is not creating the RIFF header properly. The error output is "sox failed reading -: WAVE: RIFF header not found.
Also when I try to open the file using any multimedia app (XMMS, grecord, etc...) the errors are the same. Is there something I am missing? There don't seem to be a great deal of references on Google about mpg321, does anyone know where there might be good examples of it working to perform mp3 to wav conversion?