File: usage.html

package info (click to toggle)
lame 3.99.5%2Brepack1-7%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 7,212 kB
  • sloc: ansic: 32,994; sh: 12,500; cpp: 8,216; makefile: 446; pascal: 215; perl: 33; xml: 13
file content (138 lines) | stat: -rw-r--r-- 5,437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <meta name="generator" content="PSPad editor, www.pspad.com" />
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" type="text/css" href="styles/lame.css" />
  <title>Usage of the commandline encoder</title>
 </head>
 <body>
<div id="menu">
	<ul>
		<li><a href="index.html">Index page</a></li>
		<li><a href="about.html">About LAME</a></li>
		<li><a href="introduction.html">Intro to encoding</a></li>
		<li><a style="border: 0" href="usage.html">Usage of LAME</a>
    <div id="submenu">
    	<ul>
    	  <li><a href="usage.html">Common switches</a></li>
    		<li><a style="border: 0" href="detailed.html">Detailed Settings</a></li>
    	</ul>
    </div>
    </li>
		<li><a href="history.html">Version history</a></li>
		<li><a href="contributors.html">Coders of LAME</a></li>
		<li><a href="contact.html">Contact LAME</a></li>
		<li><a style="border: 0" href="links.html">LAME links</a></li>
	</ul>
</div>
<div id="container">
<div id="content">

<div align="center">
	<img src="images/logo.gif" width="358" height="231" alt="LAME Official Logo" />
	<h2 class="hilight">Common and recommended switches</h2>
</div>
<h3>Common settings</h3>
<pre>
% lame <span class="hilight">[options]</span> inputfile [outputfile]
</pre>
<ul>
<li><strong>Constant Bitrate</strong>: <span class="hilight">-b number</span> or
 <span class="hilight">--preset cbr number</span>  Valid values
for the -b settings depend on the sampling rate<a href="#note1"><sup>1</sup></a>.
<pre>lame -b 128 sample.wav sample.mp3</pre>
</li>
<li><strong>Variable Bitrate (<a href="abr.html">ABR</a> mode)</strong>:
 <span class="hilight">--abr number</span> or <span class="hilight">--preset number</span>
 Valid values for the --abr setting range from 8 to 320.
<pre>lame --abr 128 sample.wav sample.mp3</pre> 
</li>
<li><strong>Variable Bitrate (<a href="vbr.html">VBR</a> mode)</strong>:
 <span class="hilight">-V number</span> Valid values
are from 0 to 9, with decimal values possible, where 0 is the highest quality
while 9.999 is the lowest one.
<pre>lame -V2 sample.wav sample.mp3</pre>
</li>
</ul>
<h3>Hydrogenaudio recommended settings</h3>
<ul>
<li>
<strong>Best quality</strong>, "archiving"<a href="#note2"><sup>2</sup></a> : 
<span class="hilight">-b 320</span>
<p>CBR 320 is the strongest setting for MP3, with
the lowest risk of artifacts. With the exception of a few situations, quality is
rarely better than the highest VBR profiles described below.
</p>
</li>
<li><strong>High quality</strong>, HiFi, home or quiet listening : 
<span class="hilight">-V0</span> (avg. 245 kbps) or <span class="hilight">-V1</span>
 (avg. 225 kbps) or <span class="hilight">-V2</span> (avg. 190 kbps) or <span class="hilight">
 -V3</span> (avg. 175 kbps).
 <p>These settings are considered to produce
 transparent encoding (transparent = most people can't distinguish the MP3 from
 the original in an ABX blind test). Audible differences between these presets
 exist, but are rare.
</p>
</li>
<li><strong>Portable</strong>, background noise and low bitrate requirement, small sizes : 

<span class="hilight">-V4</span> (avg. 160 kbps) or <span class="hilight">-V5</span>
(avg. 130 kbps) or <span class="hilight"> -V6</span> (avg. 115 kbps)
<p>
-V6 produces an "acceptable" quality, while -V4 should be close to perceptual transparency.
</p>
</li>
<li><strong>Very low bitrate, small sizes</strong>, eg. for voice, radio, mono encoding :
<span class="hilight">--abr 80</span> (stereo) or <span class="hilight">--abr 56 -m m</span> (mono)
<p>
For very low bitrates, up to 100kbps, ABR is most often the best solution.
</p>
</li>
</ul>
<div id="notes">
<ol>
<li><a name="note1"></a>
<table cellpadding="5">
<tr><th>Codec</th>
<th>sample frequencies (kHz)</th>
<th>bitrates (kbps)</th></tr>
<tr><td>MPEG-1 layer III </td>  <td>32, 44.1, 48</td>
<td>32 40 48 56 64 80 96 112 128 160 192 224 256 320</td></tr>
<tr><td>MPEG-2 layer III</td><td> 16, 22.05, 24</td>
<td> 8 16 24 32 40 48 56 64 80 96 112 128 144 160</td></tr>
<tr><td style="border-bottom:0px;">MPEG-2.5 layer III</td><td style="border-bottom:0px;"> 8, 11.025, 12</td>
<td style="border-bottom:0px;">8 16 24 32 40 48 56 64</td></tr>
</table>
</li>
<li><a name="note2"></a>Lossy codecs, like MP3, should not be used for archiving,
since the nature of lossy encoding always changes the original sound, even if it
sounds transparent. Use lossless codecs for this purpose.
</li>
</ol>
</div>

</div>
<div id="footer">

<a href="http://sourceforge.net/projects/lame">
 Get LAME (Lame Aint an MP3 Encoder) at SourceForge.net. Fast, secure and Free Open Source software downloads
</a>

<a href="http://validator.w3.org/#validate_by_upload"><img src="images/valid-xhtml10.png"
 alt="Valid XHTML 1.0 Transitional" border="0" height="31" width="88" /></a>

<a href="http://jigsaw.w3.org/css-validator/"><img src="images/valid-css.png"
 alt="Valid CSS!" border="0" height="31" width="88" /></a>

<p>HTML markup and design by <a
href="http://www.rjamorim.com" target="_blank">Roberto Amorim</a> and <a
href="http://www.maresweb.de" target="_blank">Sebastian Mares</a>. Logo by <a 
href="http://www.brightercreative.co.uk">Sam Fisher</a>.</p>

</div>
</div>

 </body>
</html>