|
Packit |
47f805 |
|
|
Packit |
47f805 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
Packit |
47f805 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
Packit |
47f805 |
<head>
|
|
Packit |
47f805 |
<meta name="generator" content="PSPad editor, www.pspad.com" />
|
|
Packit |
47f805 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
Packit |
47f805 |
<link rel="stylesheet" type="text/css" href="styles/lame.css" />
|
|
Packit |
47f805 |
<title>Usage of the commandline encoder</title>
|
|
Packit |
47f805 |
</head>
|
|
Packit |
47f805 |
<body>
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Index page
|
|
Packit |
47f805 |
About LAME
|
|
Packit |
47f805 |
Intro to encoding
|
|
Packit |
47f805 |
Usage of LAME
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Common switches
|
|
Packit |
47f805 |
Detailed Settings
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Version history
|
|
Packit |
47f805 |
Coders of LAME
|
|
Packit |
47f805 |
Contact LAME
|
|
Packit |
47f805 |
LAME links
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
![LAME Official Logo](images/logo.gif)
|
|
Packit |
47f805 |
Common and recommended switches
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Common settings
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
% lame [options] inputfile [outputfile]
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Constant Bitrate: -b number or
|
|
Packit |
47f805 |
--preset cbr number Valid values
|
|
Packit |
47f805 |
for the -b settings depend on the sampling rate<sup>1</sup>.
|
|
Packit |
47f805 |
lame -b 128 sample.wav sample.mp3
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Variable Bitrate (ABR mode):
|
|
Packit |
47f805 |
--abr number or --preset number
|
|
Packit |
47f805 |
Valid values for the --abr setting range from 8 to 320.
|
|
Packit |
47f805 |
lame --abr 128 sample.wav sample.mp3
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Variable Bitrate (VBR mode):
|
|
Packit |
47f805 |
-V number Valid values
|
|
Packit |
47f805 |
are from 0 to 9, with decimal values possible, where 0 is the highest quality
|
|
Packit |
47f805 |
while 9.999 is the lowest one.
|
|
Packit |
47f805 |
lame -V2 sample.wav sample.mp3
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Hydrogenaudio recommended settings
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Very high quality, HiFi, home, or quiet listening, with best file size :
|
|
Packit |
47f805 |
-V0 (avg. 245 kbps) or -V1
|
|
Packit |
47f805 |
(avg. 225 kbps) or -V2 (avg. 190 kbps) or -V3 (avg. 175 kbps).
|
|
Packit |
47f805 |
VBR settings will normally produce transparent results.
|
|
Packit |
47f805 |
Audible differences between these presets may exist, but are rare.
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Very high quality, HiFi, home, or quiet listening, with maximum file size<sup>2</sup> :
|
|
Packit |
47f805 |
-b 320
|
|
Packit |
47f805 |
This CBR mode will maximize the MP3's bitrate and overall file
|
|
Packit |
47f805 |
size. The extra space may allow for some parts of the audio to be
|
|
Packit |
47f805 |
compressed with fewer sacrifices, but to date, no one has produced
|
|
Packit |
47f805 |
ABX test results demonstrating that perceived quality is ever better
|
|
Packit |
47f805 |
than the highest VBR profiles described above.
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Portable, listening in noisy conditions, lower bitrate, smaller file size:
|
|
Packit |
47f805 |
-V4 (avg. 160 kbps) or -V5
|
|
Packit |
47f805 |
(avg. 130 kbps) or -V6 (avg. 115 kbps)
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
-V6 produces an "acceptable" quality, while -V4 should be close to perceptual transparency.
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Very low bitrate, small sizes, eg. for voice, radio, mono encoding :
|
|
Packit |
47f805 |
--abr 80 (stereo) or --abr 56 -m m (mono)
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
For very low bitrates, up to 100kbps, ABR is most often the best solution.
|
|
Packit |
47f805 |
--preset voice is only available in the command line front-end, and
|
|
Packit |
47f805 |
is there for compatibility. It is currently mapped to --abr 56 -mm,
|
|
Packit |
47f805 |
so that means that the recommendation would be to encode in mono,
|
|
Packit |
47f805 |
and use ABR.
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Codec
|
|
Packit |
47f805 |
sample frequencies (kHz)
|
|
Packit |
47f805 |
bitrates (kbps)
|
|
Packit |
47f805 |
MPEG-1 layer III 32, 44.1, 48
|
|
Packit |
47f805 |
32 40 48 56 64 80 96 112 128 160 192 224 256 320
|
|
Packit |
47f805 |
MPEG-2 layer III 16, 22.05, 24
|
|
Packit |
47f805 |
8 16 24 32 40 48 56 64 80 96 112 128 144 160
|
|
Packit |
47f805 |
MPEG-2.5 layer III 8, 11.025, 12
|
|
Packit |
47f805 |
8 16 24 32 40 48 56 64
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
Lossy codecs, like MP3, should not be used for archiving,
|
|
Packit |
47f805 |
since the nature of lossy encoding always changes the original sound, even if it
|
|
Packit |
47f805 |
sounds transparent. Use lossless codecs for this purpose.
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
alt="Get LAME (Lame Aint an MP3 Encoder) at SourceForge.net. Fast, secure and Free Open Source software downloads"
|
|
Packit |
47f805 |
border="0" height="30" width="120" />
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
alt="Valid XHTML 1.0 Transitional" border="0" height="31" width="88" />
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
alt="Valid CSS!" border="0" height="31" width="88" />
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
HTML markup and design by
|
|
Packit |
47f805 |
href="http://www.rjamorim.com" target="_blank">Roberto Amorim and
|
|
Packit |
47f805 |
href="http://www.maresweb.de" target="_blank">Sebastian Mares. Logo by
|
|
Packit |
47f805 |
href="http://www.brightercreative.co.uk">Sam Fisher.
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
</body>
|
|
Packit |
47f805 |
</html>
|