OS Manuals

/usr/bin/lame

An MP3 encoder and graphical frame analyzer

From lame 4.0-r2 (os), captured 2026-11-05 by running lame --help (exit 0). permalink

LAME 64bits version 4.0 (https://lame.sourceforge.io)

usage: /usr/bin/lame [options] <infile> [outfile]

    <infile> and/or <outfile> can be "-", which means stdin/stdout.

RECOMMENDED:
    lame -V2 input.wav output.mp3

OPTIONS:
    -b bitrate      set the bitrate, default 128 kbps
    -h              higher quality, but a little slower.
    -f              fast mode (lower quality)
    -V n            quality setting for VBR.  default n=4
                    0=high quality,bigger files. 9.999=smaller files
    --preset type   type must be "medium", "standard", "extreme", "insane",
                    or a value for an average desired bitrate and depending
                    on the value specified, appropriate quality settings will
                    be used.
                    "--preset help" gives more info on these

    --help id3      ID3 tagging related options

    --longhelp      full list of options

    --license       print License information
Options (82)
OptionDescriptionSource
-b bitrateFor MPEG-1 (sampling frequencies of 32, 44.1 and 48 kHz) n = 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320help + man
-hhigher quality, but a little slower.help + man
-ffast mode (lower quality)help + man
-V n0 <= n <= 9.999 Enable VBR (Variable BitRate) and specifies the value of VBR quality (default = 4).help + man
--preset typetype must be "medium", "standard", "extreme", "insane", or a value for an average desired bitrate and depending on the value specified, appropriate quality settings will be used.help + man
--help id3Display a list of available options.help + man
--longhelpfull list of optionshelp
--licenseprint License informationhelp
-rAssume the input file is raw pcm. (in the manual page but not in --help)man
-xSwap bytes in the input file (or output file when using --decode). (in the manual page but not in --help)man
-s sfreqsfreq = 8/11.025/12/16/22.05/24/32/44.1/48 (in the manual page but not in --help)man
--bitwidth nInput bit width per sample. (in the manual page but not in --help)man
--signedInstructs LAME that the samples from the input are signed (the default for 16, 24 and 32 bits raw pcm data). (in the manual page but not in --help)man
--unsignedInstructs LAME that the samples from the input are unsigned (the default for 8 bits raw pcm data, where 0x80 is zero). (in the manual page but not in --help)man
--little-endianInstructs LAME that the samples from the input are in little-endian form. (in the manual page but not in --help)man
--big-endianInstructs LAME that the samples from the input are in big-endian form. (in the manual page but not in --help)man
--mp1inputAssume the input file is a MPEG Layer I (ie MP1) file. (in the manual page but not in --help)man
--mp2inputAssume the input file is a MPEG Layer II (ie MP2) file. (in the manual page but not in --help)man
--mp3inputAssume the input file is a MP3 file. (in the manual page but not in --help)man
--nogap file1gapless encoding for a set of contiguous files (in the manual page but not in --help)man
--nogapout diroutput dir for gapless encoding (must precede --nogap) (in the manual page but not in --help)man
--out-dir dirIf no explicit output file is specified, a file will be written at given path. (in the manual page but not in --help)man
-m modemode = s, j, f, d, m, l, r (in the manual page but not in --help)man
-aMix the stereo input file to mono and encode as mono. (in the manual page but not in --help)man
--freeformatProduces a free format bitstream. (in the manual page but not in --help)man
--decodeUses LAME for decoding to a wav file. (in the manual page but not in --help)man
-tDisable writing of the INFO Tag on encoding. (in the manual page but not in --help)man
--comp argInstead of choosing bitrate, using this option, user can choose compression ratio to achieve. (in the manual page but not in --help)man
--scale n (in the manual page but not in --help)man
--scale-l n (in the manual page but not in --help)man
--scale-r nScales input (every channel, only left channel or only right channel) by n. (in the manual page but not in --help)man
--replaygain-fastCompute ReplayGain fast but slightly inaccurately. (in the manual page but not in --help)man
--replaygain-accurateCompute ReplayGain more accurately and find the peak sample. (in the manual page but not in --help)man
--noreplaygainDisable ReplayGain analysis. (in the manual page but not in --help)man
--clipdetectClipping detection. (in the manual page but not in --help)man
--noasm typeDisable specific assembly optimizations ( mmx / 3dnow / sse ). (in the manual page but not in --help)man
--disptime nSet the delay in seconds between two display updates. (in the manual page but not in --help)man
--nohistBy default, LAME will display a bitrate histogram while producing VBR mp3 files. (in the manual page but not in --help)man
-S (in the manual page but not in --help)man
--silent (in the manual page but not in --help)man
--quietDo not print anything on the screen. (in the manual page but not in --help)man
--verbosePrint a lot of information on the screen. (in the manual page but not in --help)man
-q qual0 <= qual <= 9 (in the manual page but not in --help)man
--cbrenforce use of constant bitrate. (in the manual page but not in --help)man
--abr nTurns on encoding with a targeted average bitrate of n kbits, allowing to use frames of different sizes. (in the manual page but not in --help)man
-vuse variable bitrate (--vbr-new) (in the manual page but not in --help)man
--vbr-oldInvokes the oldest, most tested VBR algorithm. (in the manual page but not in --help)man
--vbr-newInvokes the newest VBR algorithm. (in the manual page but not in --help)man
-B bitrateFor MPEG-1 (sampling frequencies of 32, 44.1 and 48 kHz) n = 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 (in the manual page but not in --help)man
-FStrictly enforce the -b option. (in the manual page but not in --help)man
-X n0 <= n <= 7 (in the manual page but not in --help)man
-Ylets LAME ignore noise in sfb21, like in CBR (in the manual page but not in --help)man
-e empemp = n, 5, c (in the manual page but not in --help)man
-cMark the encoded file as being copyrighted. (in the manual page but not in --help)man
-oMark the encoded file as being a copy. (in the manual page but not in --help)man
-pTurn on CRC error protection. (in the manual page but not in --help)man
--noresDisable the bit reservoir. (in the manual page but not in --help)man
--strictly-enforce-ISOWith this option, LAME will enforce the 7680 bit limitation on total frame size. (in the manual page but not in --help)man
--lowpass freqSet a lowpass filtering frequency in kHz. (in the manual page but not in --help)man
--lowpass-width freqSet the width of the lowpass filter. (in the manual page but not in --help)man
--highpass freqSet an highpass filtering frequency in kHz. (in the manual page but not in --help)man
--highpass-width freqSet the width of the highpass filter in kHz. (in the manual page but not in --help)man
--resample sfreqsfreq = 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48 Select output sampling frequency (only supported for encoding). (in the manual page but not in --help)man
--tt titleaudio/song title (max 30 chars for version 1 tag) (in the manual page but not in --help)man
--ta artistaudio/song artist (max 30 chars for version 1 tag) (in the manual page but not in --help)man
--tl albumaudio/song album (max 30 chars for version 1 tag) (in the manual page but not in --help)man
--ty yearaudio/song year of issue (1 to 9999) (in the manual page but not in --help)man
--tc commentuser-defined text (max 30 chars for v1 tag, 28 for v1.1) (in the manual page but not in --help)man
--tg genreaudio/song genre (name or number in list) (in the manual page but not in --help)man
--tv id=valueText or URL frame specified by id and value (v2.3 tag). (in the manual page but not in --help)man
--add-id3v2force addition of version 2 tag (in the manual page but not in --help)man
--id3v1-onlyadd only a version 1 tag (in the manual page but not in --help)man
--id3v2-onlyadd only a version 2 tag (in the manual page but not in --help)man
--id3v2-latin1add following options in ISO-8859-1 text encoding. (in the manual page but not in --help)man
--id3v2-utf8add following options in unicode UTF-8 text encoding (ID3v2.4). (in the manual page but not in --help)man
--id3v2-utf16add following options in unicode UCS-2 text encoding (ID3v2.3). (in the manual page but not in --help)man
--space-id3v1pad version 1 tag with spaces instead of nulls (in the manual page but not in --help)man
--pad-id3v2same as --pad-id3v2-size 128 (in the manual page but not in --help)man
--pad-id3v2-size numadds version 2 tag, pad with extra "num" bytes (in the manual page but not in --help)man
--genre-listprint alphabetically sorted ID3 genre list and exit (in the manual page but not in --help)man
--ignore-tag-errorsignore errors in values passed for tags, use defaults in case an error occurs (in the manual page but not in --help)man
-grun graphical analysis on <infile>. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.