Some command line examples
- Fixed bit rate jstereo 128kbs encoding:
lame sample.wav sample.mp3
- Fixed bit rate jstereo 128kbs encoding, highest quality (recommended):
lame -h sample.wav sample.mp3
- Fixed bit rate jstereo 112kbs encoding:
lame -b 112 sample.wav sample.mp3
- To disable joint stereo encoding (slightly faster, but less quality at bitrates<=128kbs):
lame -m s sample.wav sample.mp3
- Fast encode, low quality (no psycho-acoustics):
lame -f sample.wav sample.mp3
- Variable bitrate (use -V n to adjust quality/filesize):
lame -h -V 6 sample.wav sample.mp3
- Streaming mono 22.05 kHz raw pcm, 24 kbps output:
cat inputfile | lame -r -m m -b 24 -s 22.05 -- > output
- Streaming mono 44.1 kHz raw pcm, with downsampling to 22.05 kHz:
cat inputfile | lame -r -m m -b 24 --resample 22.05 -- > output