MLUG: Re: [MLUG] MP3 problem using sox & lame
Re: [MLUG] MP3 problem using sox & lame
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Wed, Sep 03, 2003 at 06:56:39PM -0400, Walt Joyce wrote:
> I recording a conference call using sox & lame but made
> a mistake in the parameters. I want to know if I can
> convert the file (which plays at double the normal
> speed) into something useful (that one can listen to).
> 
> The mistake I made was to specify 1 channel ("-c 1")
> instead of 2 channels ("-c 2"). Here is the command
> line I used:
> 
> sox -t ossdsp -w -c -r 44100 -c 1 /dev/dsp -t raw -|lame -x -m s - ./testfile.mp3
> 
> Is there any way to convert the result to normal
> speed, as if I typed:
> 
> sox -t ossdsp -w -c -r 44100 -c 2 /dev/dsp -t raw -|lame -x -m s - ./testfile.mp3
> 

Sure, just do something like this: (convert back with sox)

mpg321 -s testfile.mp3 | \
sox -t raw -c 1 -swr44100 - -t raw -c 2 -swr44100 - | \ 
lame -x -m s - ./testfile-new.mp3

Or how about this: (make a mono .mp3 file)

mpg321 -s testfile.mp3 | \
lame -x -m m - ./testfile-new.mp3

Notice your original problem was the mismatch between sox and lame 
parameters. sox thought you wanted mono, so it output mono samples. lame 
thought it was getting stereo (the "-m s" option).

The lame man page isn't clear if the command to specify mono is "-m m" 
or "-m mo", so you may want to experiment a bit.

Regards,
Mark
EMAIL:PROTECTED

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members