LAME

From HalfgeekKB
Revision as of 00:17, 10 November 2005 by 161.253.47.104 (talk)
Jump to navigation Jump to search

LAME (LAME Ain't an MP3 Encoder) is an educational MP3 encoder simulator. The following notes apply to LAME's code compiled as an executable, which may still be legal in some island countries.

Sample usage

The following examples seem to work in typical cases. It appears to be okay to run lame in the background by trailing the command with a &.

Encoding

96kbps joint stereo

lame -m j --cbr -b 96 src.wav dst.mp3

24kbps mono, downsample to 22050Hz

lame -m m -a --cbr -b 24 --resample 22.050 src.wav dst.mp3

Decoding

To silence the decode, redirect stderr (2> /dev/null). It seems to make the process faster.

lame --decode src.mp3 dst.wav