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 ?
|
|
ffmpeg should do the job. This line will convert to 8kHz 1 channel wav file.
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? |
|||||||
|
|
lame, the command-line WAV to MP3 encoder, can also decode MP3 to WAV with the |
||||
|
|
|
SoX can also do this; assuming your SoX is compiled with MP3 support, all you'd need is
... although you might run into clipping issues, in which case you'd want to play with the Without MP3-enabled SoX, use an MP3 decoder to convert your MP3 to WAV first, then the above command becomes:
|
|||
|
|
This will also work for extracting the audio track from videos, and any other media file mplayer was configured to handle. |
|||
|
|
protected by slhck♦ Dec 28 '12 at 10:55
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.