Hi folks,
I'm having some hard times finding the proper software for one of my scripts. What I need is to encode a wav file to 2 separate mp3 files, one mp3 file should contain the left channel of the wav file, and the other mp3 file - the right channel. This is what I've tried so far:
1. SOX
Well sox is a great tool, too bad it segfaults from time to time; while doing a short search I noticed that some other people have this problem too. Moreover, when using a preemptible kernel, sox crashes a lot. This is how I've been using sox so far:
Code:
sox -c 2 file.wav -c 1 file-right.mp3 avg -r
The above code encodes only the right channel; too bad it segfaults. So using sox became out of question.
2. Lame
I could reduce the PCM value for one channel but I would hear a lot of noise instead; however, I need to hear the single encoded channel in both speakers, and I can't manage to do that, even with the "joint stereo" option.
Code:
lame -m j --scale-l -100 file.wav file-right.mp3
3. Bladeenc
I can't get it to work because it complains about the wav file, not being "in 32, 44.1 or 48 kHz" (and I don't want to alter/increase the quality of it which is 16 KHZ - probably- )
Code:
bladeenc -rightmono file.wav file-right.mp3
Any ideas? Maybe it's possible with mencoder; even though I had the impression that other tools will use less resources, I'm interested in a mencoder way too.
Thanks for reading.