Convert a .mp3 to wav file with mplayer

audiocommand lineconversion

I've a .mp3 file and need to convert that to an 1 channel 8kHz 8 bit wav file, anyone know how I can do that with mplayer ? If not, any other commandline tools I could use ?

Best Answer

ffmpeg should do the job. This line will convert to 8kHz 1 channel wav file.

ffmpeg -i input.mp3 -ar 8000 -ac 1 output.wav

http://ffmpeg.org/ffmpeg-doc.html#SEC11

I'm not sure about the 8 bits requirement - what are you referring to? It's not the bitrate surely?