← 返回命令列表

Linux command

lame 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Encode to MP3

lame [input.wav] [output.mp3]

Set bitrate

lame -b [320] [input.wav] [output.mp3]

Variable bitrate

lame -V [2] [input.wav] [output.mp3]

High quality preset

lame --preset extreme [input.wav] [output.mp3]

Add ID3 tags

lame --tt "[title]" --ta "[artist]" [input.wav] [output.mp3]

Decode MP3 to WAV

lame --decode [input.mp3] [output.wav]

说明

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.

参数

-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.

FAQ

What is the lame command used for?

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.

How do I run a basic lame example?

Run `lame [input.wav] [output.mp3]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b _BITRATE_ do in lame?

Constant bitrate (kbps).