4

An application requires that the mp3 files it receives are encoded with 2 channels (stereo), but the original files have only 1 channel (mono).
We use Lame for conversion, but i fail to make it clone the mono channel and create a fake stereo.

lame.exe -m j mono.mp3 stereo.mp3

-m d or -m s doesn't seem to work either. Is it possible to do this with lame?

ANisus
  • 263

4 Answers4

5

The answer to my own question is: No - it is not possible with lame

My work-around solution is to use the command-line tool sox and do the channel duplication prior to mp3-conversion:

sox mono.wav -c 2 stereo.wav

Then afterwards use lame:

lame -m j stereo.wav stereo.mp3
ANisus
  • 263
2

You can do that with ffmpeg. Here is the command I used for mono mp3 files with 11025 Hz sampling rate and 40 kbps bitrate:

ffmpeg -i mono.mp3 -ac 2 -ab 96000 -ar 22050 stereo.mp3
Dzmitry
  • 141
1

You can use lame for this. With mono wav input, just use -m s as lame option. Using otherwise default lame options the output will be (simple) stereo.

EDIT: I was wrong! The original posters answer was correct: When the input wav is mono, you cannot get lame to make it stereo with -m s.

0

According to the LAME Documentation @Modes I would try "-m d". You should also consider to double your bitrate, because it is shared by two channels now, not one.

Chake
  • 161