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:
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:
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.
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.
lame -m j --scale-l -100 file.wav file-right.mp3
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- )
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.