Difference between revisions of "LAME"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
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 &. | 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 &. | ||
− | ==96kbps joint stereo== | + | ==Encoding== |
+ | |||
+ | ===96kbps joint stereo=== | ||
lame -m j --cbr -b 96 src.wav dst.mp3 | lame -m j --cbr -b 96 src.wav dst.mp3 | ||
− | ==24kbps mono, downsample to 22050Hz== | + | ===24kbps mono, downsample to 22050Hz=== |
lame -m m -a --cbr -b 24 --resample 22.050 src.wav dst.mp3 | lame -m m -a --cbr -b 24 --resample 22.050 src.wav dst.mp3 | ||
+ | |||
+ | ==Decoding== | ||
+ | |||
+ | To silence the decode, redirect stderr (<code>2> /dev/null</code>). It seems to make the process faster. | ||
+ | |||
+ | lame --decode src.mp3 dst.wav |
Revision as of 00:17, 10 November 2005
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.
Contents
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