Help - Search - Members - Calendar
Full Version: Encoding From One Stereo Wav File
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
mrbruno
i !

here is my problem :

I record radioshows from my soundcard in wav files and then i encode
them to mp3.

So far, it's ok.


But now i wish to record 2 stations at the same time so I record
one stereo wav with one mono radio station on each channel of the same
stereo wav file.

See what I mean ? one station on the left channel and another station on
the right channel.


The problem is : how do I separate the channels to encode them to MP3 ?

Is there a option in lame to encode only the left or right channel of a stereo wav file ?


Please help me , I need a quick solution to this problem !

thanks.
kjoonlee
The only thing I can think of is to use sox to create two separate wav files, and encode them separately.
QHOBBES 2.0
I've never really used it, but couldn't you just open nero wave editor or something like and copy and paste the sound from left to right?
JensRex
QUOTE (mrbruno @ Feb 20 2005, 12:22 PM)
how do I separate the channels to encode them to MP3 ?
*

This should be trivial to do in any audio editor.
takehiro
lame -m m --scale-l 2.0 --scale-r 0.0 input.wav output-l.mp3
lame -m m --scale-r 2.0 --scale-l 2.0 input.wav output-r.mp3
smz
QUOTE (takehiro @ Feb 26 2005, 11:59 AM)
lame -m m --scale-l 2.0 --scale-r 0.0 input.wav output-l.mp3
lame -m m --scale-r 2.0 --scale-l 2.0 input.wav output-r.mp3
*


Errr.... you prbably meant:

lame -m m --scale-l 2.0 --scale-r 0.0 input.wav output-l.mp3
lame -m m --scale-r 2.0 --scale-l 0.0 input.wav output-r.mp3

but, why scale the the channel you want to keep at 2.0 and not 1.0? Isn't this likeley to generate clipping while decoding?

Best regards.

Sergio
takehiro
QUOTE
Errr.... you prbably meant:

lame -m m --scale-l 2.0 --scale-r 0.0 input.wav output-l.mp3
lame -m m --scale-r 2.0 --scale-l 0.0 input.wav output-r.mp3

oops, that's my mistake. You are right.

The scaling 2.0 is to revert the stereo to mono filter coef.

mono signal = (scaleL*L+scaleR*R)/2

so when (scaleL, scaleR) = (2.0, 0.0), you will get

mono signal = (L)
smz
/2 of course! headbang.gif

Thank you!

Sergio

Edit: ... and ... elegant solution! When you know YOUR tools... cool.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.