1159b3361Sopenharmony_ci<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2159b3361Sopenharmony_ci        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3159b3361Sopenharmony_ci<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4159b3361Sopenharmony_ci <head>
5159b3361Sopenharmony_ci  <meta name="generator" content="PSPad editor, www.pspad.com" />
6159b3361Sopenharmony_ci  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
7159b3361Sopenharmony_ci  <link rel="stylesheet" type="text/css" href="styles/lame.css" />
8159b3361Sopenharmony_ci  <title>Usage of the commandline encoder</title>
9159b3361Sopenharmony_ci </head>
10159b3361Sopenharmony_ci <body>
11159b3361Sopenharmony_ci<div id="menu">
12159b3361Sopenharmony_ci    <ul>
13159b3361Sopenharmony_ci        <li><a href="index.html">Index page</a></li>
14159b3361Sopenharmony_ci        <li><a href="about.html">About LAME</a></li>
15159b3361Sopenharmony_ci        <li><a href="introduction.html">Intro to encoding</a></li>
16159b3361Sopenharmony_ci        <li><a style="border: 0" href="usage.html">Usage of LAME</a>
17159b3361Sopenharmony_ci    <div id="submenu">
18159b3361Sopenharmony_ci        <ul>
19159b3361Sopenharmony_ci          <li><a href="usage.html">Common switches</a></li>
20159b3361Sopenharmony_ci            <li><a style="border: 0" href="detailed.html">Detailed Settings</a></li>
21159b3361Sopenharmony_ci        </ul>
22159b3361Sopenharmony_ci    </div>
23159b3361Sopenharmony_ci    </li>
24159b3361Sopenharmony_ci        <li><a href="history.html">Version history</a></li>
25159b3361Sopenharmony_ci        <li><a href="contributors.html">Coders of LAME</a></li>
26159b3361Sopenharmony_ci        <li><a href="contact.html">Contact LAME</a></li>
27159b3361Sopenharmony_ci        <li><a style="border: 0" href="links.html">LAME links</a></li>
28159b3361Sopenharmony_ci    </ul>
29159b3361Sopenharmony_ci</div>
30159b3361Sopenharmony_ci<div id="container">
31159b3361Sopenharmony_ci<div id="content">
32159b3361Sopenharmony_ci    <div align="center">
33159b3361Sopenharmony_ci        <img src="images/logo.gif" width="358" height="231" alt="LAME Official Logo" />
34159b3361Sopenharmony_ci        <h2 class="hilight">Common and recommended switches</h2>
35159b3361Sopenharmony_ci    </div>
36159b3361Sopenharmony_ci    <h3>Common settings</h3>
37159b3361Sopenharmony_ci    <pre>
38159b3361Sopenharmony_ci% lame <span class="hilight">[options]</span> inputfile [outputfile]
39159b3361Sopenharmony_ci    </pre>
40159b3361Sopenharmony_ci        <ul>
41159b3361Sopenharmony_ci            <li>
42159b3361Sopenharmony_ci                <strong>Constant Bitrate</strong>: <span class="hilight">-b number</span> or
43159b3361Sopenharmony_ci                <span class="hilight">--preset cbr number</span>  Valid values
44159b3361Sopenharmony_ci                for the -b settings depend on the sampling rate<a href="#note1"><sup>1</sup></a>.
45159b3361Sopenharmony_ci                <pre>lame -b 128 sample.wav sample.mp3</pre>
46159b3361Sopenharmony_ci            </li>
47159b3361Sopenharmony_ci            <li>
48159b3361Sopenharmony_ci                <strong>Variable Bitrate (<a href="abr.html">ABR</a> mode)</strong>:
49159b3361Sopenharmony_ci                <span class="hilight">--abr number</span> or <span class="hilight">--preset number</span>
50159b3361Sopenharmony_ci                Valid values for the --abr setting range from 8 to 320.
51159b3361Sopenharmony_ci                <pre>lame --abr 128 sample.wav sample.mp3</pre>
52159b3361Sopenharmony_ci            </li>
53159b3361Sopenharmony_ci            <li>
54159b3361Sopenharmony_ci                <strong>Variable Bitrate (<a href="vbr.html">VBR</a> mode)</strong>:
55159b3361Sopenharmony_ci                <span class="hilight">-V number</span> Valid values
56159b3361Sopenharmony_ci                are from 0 to 9, with decimal values possible, where 0 is the highest quality
57159b3361Sopenharmony_ci                while 9.999 is the lowest one.
58159b3361Sopenharmony_ci                <pre>lame -V2 sample.wav sample.mp3</pre>
59159b3361Sopenharmony_ci            </li>
60159b3361Sopenharmony_ci        </ul>
61159b3361Sopenharmony_ci        <h3>Hydrogenaudio recommended settings</h3>
62159b3361Sopenharmony_ci        <ul>
63159b3361Sopenharmony_ci            <strong>Very high quality</strong>, HiFi, home, or quiet listening, with best file size<a href="#note2"></a> : 
64159b3361Sopenharmony_ci            <span class="hilight">-V0</span> (avg. 245 kbps) or <span class="hilight">-V1</span>
65159b3361Sopenharmony_ci            (avg. 225 kbps) or <span class="hilight">-V2</span> (avg. 190 kbps) or <span class="hilight">-V3</span> (avg. 175 kbps).
66159b3361Sopenharmony_ci            <p>VBR settings will normally produce transparent results.
67159b3361Sopenharmony_ci                Audible differences between these presets may exist, but are rare.
68159b3361Sopenharmony_ci            </p>
69159b3361Sopenharmony_ci            </li>
70159b3361Sopenharmony_ci            <li>
71159b3361Sopenharmony_ci                <strong>Very high quality</strong>, HiFi, home, or quiet listening, with maximum file size<a href="#note2"><sup>2</sup></a> : 
72159b3361Sopenharmony_ci                <span class="hilight">-b 320</span>
73159b3361Sopenharmony_ci                <p>This CBR mode will maximize the MP3's bitrate and overall file 
74159b3361Sopenharmony_ci                    size. The extra space may allow for some parts of the audio to be 
75159b3361Sopenharmony_ci                    compressed with fewer sacrifices, but to date, no one has produced
76159b3361Sopenharmony_ci                    ABX test results demonstrating that perceived quality is ever better
77159b3361Sopenharmony_ci                    than the highest VBR profiles described above.
78159b3361Sopenharmony_ci                </p>
79159b3361Sopenharmony_ci            </li>
80159b3361Sopenharmony_ci            <li>
81159b3361Sopenharmony_ci                <strong>Portable</strong>, listening in noisy conditions, lower bitrate, smaller file size: 
82159b3361Sopenharmony_ci                <span class="hilight">-V4</span> (avg. 160 kbps) or <span class="hilight">-V5</span>
83159b3361Sopenharmony_ci                (avg. 130 kbps) or <span class="hilight"> -V6</span> (avg. 115 kbps)
84159b3361Sopenharmony_ci                <p>
85159b3361Sopenharmony_ci                    -V6 produces an "acceptable" quality, while -V4 should be close to perceptual transparency.
86159b3361Sopenharmony_ci                </p>
87159b3361Sopenharmony_ci            </li>
88159b3361Sopenharmony_ci            <li>
89159b3361Sopenharmony_ci                <strong>Very low bitrate, small sizes</strong>, eg. for voice, radio, mono encoding :
90159b3361Sopenharmony_ci                <span class="hilight">--abr 80</span> (stereo) or <span class="hilight">--abr 56 -m m</span> (mono)
91159b3361Sopenharmony_ci                <p>
92159b3361Sopenharmony_ci                    For very low bitrates, up to 100kbps, ABR is most often the best solution.
93159b3361Sopenharmony_ci                    --preset voice is only available in the command line front-end, and 
94159b3361Sopenharmony_ci                    is there for compatibility. It is currently mapped to --abr 56 -mm,
95159b3361Sopenharmony_ci                    so that means that the recommendation would be to encode in mono, 
96159b3361Sopenharmony_ci                    and use ABR. 
97159b3361Sopenharmony_ci                </p>
98159b3361Sopenharmony_ci            </li>
99159b3361Sopenharmony_ci        </ul>
100159b3361Sopenharmony_ci        <div id="notes">
101159b3361Sopenharmony_ci            <ol>
102159b3361Sopenharmony_ci                <li>
103159b3361Sopenharmony_ci                    <a name="note1"></a>
104159b3361Sopenharmony_ci                    <table cellpadding="5">
105159b3361Sopenharmony_ci                        <tr>
106159b3361Sopenharmony_ci                            <th>Codec</th>
107159b3361Sopenharmony_ci                            <th>sample frequencies (kHz)</th>
108159b3361Sopenharmony_ci                            <th>bitrates (kbps)</th>
109159b3361Sopenharmony_ci                        </tr>
110159b3361Sopenharmony_ci                        <tr>
111159b3361Sopenharmony_ci                            <td>MPEG-1 layer III </td>
112159b3361Sopenharmony_ci                            <td>32, 44.1, 48</td>
113159b3361Sopenharmony_ci                            <td>32 40 48 56 64 80 96 112 128 160 192 224 256 320</td>
114159b3361Sopenharmony_ci                        </tr>
115159b3361Sopenharmony_ci                        <tr>
116159b3361Sopenharmony_ci                            <td>MPEG-2 layer III</td>
117159b3361Sopenharmony_ci                            <td> 16, 22.05, 24</td>
118159b3361Sopenharmony_ci                            <td> 8 16 24 32 40 48 56 64 80 96 112 128 144 160</td>
119159b3361Sopenharmony_ci                        </tr>
120159b3361Sopenharmony_ci                        <tr>
121159b3361Sopenharmony_ci                            <td style="border-bottom:0px;">MPEG-2.5 layer III</td>
122159b3361Sopenharmony_ci                            <td style="border-bottom:0px;"> 8, 11.025, 12</td>
123159b3361Sopenharmony_ci                            <td style="border-bottom:0px;">8 16 24 32 40 48 56 64</td>
124159b3361Sopenharmony_ci                        </tr>
125159b3361Sopenharmony_ci                    </table>
126159b3361Sopenharmony_ci                </li>
127159b3361Sopenharmony_ci                <li><a name="note2"></a>Lossy codecs, like MP3, should not be used for archiving,
128159b3361Sopenharmony_ci                    since the nature of lossy encoding always changes the original sound, even if it
129159b3361Sopenharmony_ci                    sounds transparent. Use lossless codecs for this purpose.
130159b3361Sopenharmony_ci                </li>
131159b3361Sopenharmony_ci            </ol>
132159b3361Sopenharmony_ci        </div>
133159b3361Sopenharmony_ci    </div>
134159b3361Sopenharmony_ci<div id="footer">
135159b3361Sopenharmony_ci
136159b3361Sopenharmony_ci<a href="http://sourceforge.net/projects/lame"><img src="images/sflogo.gif"
137159b3361Sopenharmony_ci alt="Get LAME (Lame Aint an MP3 Encoder) at SourceForge.net. Fast, secure and Free Open Source software downloads"
138159b3361Sopenharmony_ci border="0" height="30" width="120" /></a>
139159b3361Sopenharmony_ci
140159b3361Sopenharmony_ci<a href="http://validator.w3.org/#validate_by_upload"><img src="images/valid-xhtml10.png"
141159b3361Sopenharmony_ci alt="Valid XHTML 1.0 Transitional" border="0" height="31" width="88" /></a>
142159b3361Sopenharmony_ci
143159b3361Sopenharmony_ci<a href="http://jigsaw.w3.org/css-validator/"><img src="images/valid-css.png"
144159b3361Sopenharmony_ci alt="Valid CSS!" border="0" height="31" width="88" /></a>
145159b3361Sopenharmony_ci
146159b3361Sopenharmony_ci<p>HTML markup and design by <a
147159b3361Sopenharmony_cihref="http://www.rarewares.org" target="_blank">Roberto Amorim</a> and <a
148159b3361Sopenharmony_cihref="http://www.maresweb.de" target="_blank">Sebastian Mares</a>. Logo by <a 
149159b3361Sopenharmony_cihref="http://www.brightercreative.co.uk">Sam Fisher</a>.</p>
150159b3361Sopenharmony_ci
151159b3361Sopenharmony_ci</div>
152159b3361Sopenharmony_ci</div>
153159b3361Sopenharmony_ci
154159b3361Sopenharmony_ci </body>
155159b3361Sopenharmony_ci</html>
156