How to get mono from stereo using lame?
Reply #5 – 2012-04-29 22:26:36
What problem? You can use either -a or -m m to convert stereo to mono. -m m without -a does not make mono from stereo. Yes it does. The lame man page gives full description and some examples as well. All you need do to convert stereo to mono is use '-m m'. I quite often encode stereo audio book CDs to mono using "--resample 22.05 -m m --abr 64" and unsurprisingly I end up with a mono track around 64 kbps at samplerate 22.05. Here is the relevant part of mediainfo output to illustrate this: Audio Format : MPEG Audio Format version : Version 2 Format profile : Layer 3 Duration : 3mn 20s Bit rate mode : Variable Bit rate : 64.0 Kbps Channel(s) : 1 channel Sampling rate : 22.05 KHz Compression mode : Lossy Stream size : 1.50 MiB (100%) Writing library : LAME3.99r Encoding settings : -m m -V 4 -q 3 -lowpass 11 --abr 64 The error in your command line is that you set -s 96. From the lame man page: -s sfreq sfreq = 8/11.025/12/16/22.05/24/32/44.1/48 Required only for raw PCM input files. Otherwise it will be determined from the header of the input file. LAME will automatically resample the input file to one of the supported MP3 samplerates if neces? sary. As you can see lame doesn't support 96 KHz, so you need to remove -s 96 and use "--resample 48" (or any of the supported sample rates 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48). btw you shouldn't use "-r" or "--bitwidth" unless the source is raw pcm. wav isn't raw pcm.