LinuxCommandLibrary

lame

high-quality MP3 encoder

TLDR

Encode to MP3

$ lame [input.wav] [output.mp3]
copy
Set bitrate
$ lame -b [320] [input.wav] [output.mp3]
copy
Variable bitrate
$ lame -V [2] [input.wav] [output.mp3]
copy
High quality preset
$ lame --preset extreme [input.wav] [output.mp3]
copy
Add ID3 tags
$ lame --tt "[title]" --ta "[artist]" [input.wav] [output.mp3]
copy
Decode MP3 to WAV
$ lame --decode [input.mp3] [output.wav]
copy

SYNOPSIS

lame [options] input [output]

DESCRIPTION

LAME is a high-quality MP3 encoder. It produces excellent audio quality at various bitrates.
The encoder supports constant and variable bitrate modes. It's widely regarded as the best open-source MP3 encoder.

PARAMETERS

INPUT

Input audio file.
OUTPUT
Output MP3 file.
-b BITRATE
Constant bitrate (kbps).
-V QUALITY
Variable bitrate (0-9, 0=best).
--preset NAME
Quality preset (extreme, insane).
--tt TITLE
Song title.
--ta ARTIST
Artist name.
--decode
Decode MP3 to WAV.
--help
Display help information.

CAVEATS

Encoding only by default. Quality vs size tradeoff. VBR recommended.

HISTORY

LAME (Lame Ain't an MP3 Encoder) was started in 1998 and became the leading open-source MP3 encoder.

SEE ALSO

ffmpeg(1), sox(1), oggenc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community