Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have WAV files and need to convert them to PCM (44,1k, 16bit, Mono) format. How can I do this from the DOS console?

share|improve this question

migrated from May 26 '10 at 16:50

This question came from our site for professional and enthusiast programmers.

This calls for ffmpeg.

C:\enc>ffmpeg -acodec pcm_s16le -ar 44100 -i "input.mp3" outfile.wav

Input #0, mp3, from 'input.mp3':
  Duration: 00:03:52.75, start: 0.000000, bitrate: 255 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 256 kb/s
Output #0, wav, to 'outfile.wav':
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s

Of course it will take CCITT A-Law, CCITT u-Law and everything .wav as input also. To downmix to mono, use "-ac 1".

share|improve this answer
i needed to go from one wav format to a PCM wav and i used the simpler command line of ffmpeg -i "infile.wav" "outfile.wav". YMMV, but it worked great for me. – Jugglingnutcase Jun 28 '12 at 19:13

There is a DOS version of SoX available on its Links page.

share|improve this answer

You must log in to answer this question.