Converting WAV to PCM
Solution 1
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 also takes CCITT A-Law, CCITT u-Law and almost anything .wav as input.
To downmix to mono, use -ac 1
(as in audio channels=1).
Solution 2
There is a DOS version of SoX available on its Links page.
Related videos on Youtube
bhaskar
Former Community Manager at Stack Exchange (August 2013-November 2017). My posts from before or after that time period (and, like, a bunch of the ones from during it, too) should not be considered "official" in any way. Joel: I have all these opinions ... and no outlet for them! Josh: Have you tried yelling them at the Internet? Joel: Almost exclusively! And yet problems still persist! -"The Grand Opining", HijiNKS ENSUE, by Joel Watson "On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." -Charles Babbage Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. -Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
Updated on September 17, 2022Comments
-
bhaskar almost 2 years
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?
-
jrsconfitto about 12 yearsi 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.