add another track to comparison; INTERMEDIATE STATE!
[flac.git] / doc / documentation.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <HTML>
3 <HEAD>
4         <TITLE>FLAC - documentation</TITLE>
5 </HEAD>
6
7 <BODY MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BGCOLOR="#99CC99" TEXT="#000000" LINK="#336699" VLINK="#336699" ALINK="#336699">
8
9 <TABLE BORDER=0 WIDTH="100%" CELLPADDING=1 CELLSPACING=0>
10         <TR>
11                 <TD ALIGN="CENTER" BGCOLOR="#000000"><A HREF="http://flac.sourceforge.net/"><IMG SRC="images/logo.jpg" ALIGN=CENTER ALT="FLAC Logo" BORDER=0 HSPACE=0></a></TD>
12         </TR>
13 </TABLE>
14
15 <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#99CC99"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="25" ALT=""></TD></TR></TABLE>
16
17 <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR></TABLE>
18
19 <TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
20         <TR>
21                 <TD ALIGN="CENTER" BGCOLOR="#D3D4C5">
22                         <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>
23                                 <TR>
24                                         <TD HEIGHT=22 BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="index.html">home</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
25                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="news.html">news</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
26                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="download.html">download</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
27                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="features.html">features</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
28                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="goals.html">goals</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
29                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="format.html">format</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
30                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="id.html">id</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
31                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="comparison.html">comparison</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
32                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;documentation&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
33                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="developers.html">developers</A>&nbsp;&nbsp;</TD>
34                                 </TR>
35                         </TABLE>
36                 </TD>
37         </TR>
38 </TABLE>
39
40 <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR></TABLE>
41
42 <CENTER>
43
44 <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#99CC99"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="15" ALT=""></TD></TR></TABLE>
45
46
47 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
48 <TR><TD>
49         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
50         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
51                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
52                 <B><FONT SIZE="+2">documentation</FONT></B>
53                 </FONT></TD></TR>
54         </TABLE>
55         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
56         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
57         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
58         <P>
59                 This page describes the user-level view of the FLAC format (for a more detailed explanation see the <A HREF="format.html">format page</A>).  It also contains the user documentation for <B><TT>flac</TT></B>, which is the command-line file encoder/decoder, <B><TT>metaflac</TT></B>, the FLAC metadata editor, and the <A HREF="#plugins">input plugins</A>.
60         </P>
61         <P>
62                 Keep in mind that the online version of this document will always apply to the latest release.  For older releases, check the documentation included with the release package.
63         </P>
64         </FONT>
65         </TD></TR>
66         </TABLE>
67         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
68 </TD></TR>
69 </TABLE>
70
71
72 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
73 <TR><TD>
74         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
75         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
76                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
77                 <B><FONT SIZE="+2">format</FONT></B>
78                 </FONT></TD></TR>
79         </TABLE>
80         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
81         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
82         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
83         <P>
84                 See the <A HREF="format.html#scope">Scope</A>, <A HREF="format.html#architecture">Architecture</A>, <A HREF="format.html#definitions">Definitions</A>, and <A HREF="format.html#overview">Overview</A> sections of the <A HREF="format.html">format page</A> for a good introduction.  This section will be expanded in the future.
85         </P>
86         </FONT>
87         </TD></TR>
88         </TABLE>
89         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
90 </TD></TR>
91 </TABLE>
92
93
94 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
95 <TR><TD>
96         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
97         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
98                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
99                 <B><FONT SIZE="+2">flac</FONT></B>
100                 </FONT></TD></TR>
101         </TABLE>
102         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
103         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
104         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
105         <P>
106                 <B><TT>flac</TT></B> is the command-line file encoder/decoder.  The input to the encoder and the output to the decoder must either be RIFF WAVE format, or raw interleaved sample data.  <B><TT>flac</TT></B> only supports linear PCM samples (in other words, no A-LAW, uLAW, etc.).  Another restriction (hopefully short-term) is that the input must be 8, 16, or 24 bits per sample.  This is not a limitation of the FLAC format, just the reference encoder.
107         </P>
108         <P>
109                 <B><TT>flac</TT></B> assumes that RIFF WAVE files will have the extension ".wav"; this may be overridden with a command-line option.  Other than this, <B><TT>flac</TT></B> makes no assumptions about file extensions, though the convention is that FLAC files have the extension ".flac" (or ".fla" on ancient file systems like FAT-16).
110         </P>
111         <P>
112                 Before going into the full command-line description, two other things help to sort it out: 1) <B><TT>flac</TT></B> encodes by default, so you must use <B>-d</B> to decode; 2) the options <B><TT>-0</TT></B> .. <B><TT>-9</TT></B> that control the compression level actually are just synonyms for different groups of specific encoding options (described later).  You can get the same effect by using the same options.
113         </P>
114         <P>
115                 <B><TT>flac</TT></B> will be invoked one of four ways, depending on whether you are encoding, decoding, testing, or analyzing:
116                 <UL>
117                 <LI>
118                         Encoding: flac [-s] [--skip #] [<I><A HREF="#format_options">&lt;format-options&gt;</A></I>] [<I><A HREF="#encoding_options">&lt;encoding options&gt;</A></I>] inputfile outputfile
119                 </LI>
120                 <LI>
121                         Decoding: flac -d [-s] [--skip #] [<I><A HREF="#format_options">&lt;format-options&gt;</A></I>] inputfile outputfile
122                 </LI>
123                 <LI>
124                         Testing: flac -t [-s] inputfile
125                 </LI>
126                 <LI>
127                         Analyzing: flac -a [-s] [--skip #] [<I><A HREF="#analysis_options">&lt;analysis-options&gt;</A></I>] inputfile outputfile
128                 </LI>
129                 </UL>
130         </P>
131         <P>
132                 In either case, <TT>inputfile</TT> may be "-" for stdin, and the <TT>outputfile</TT> "-" for stdout.  The encoding options affect the compression ratio and encoding speed.  The format options are used to tell <B><TT>flac</TT></B> the arrangement of samples if the input file (or output file when decoding) is a raw file.  If it is a RIFF WAVE file the format options are not needed since they are read from the WAVE header.
133         </P>
134         <P>
135                 In test mode, <B><TT>flac</TT></B> acts just like in decode mode, except no output file is written.  Both decode and test modes detect errors in the stream, but they also detect when the MD5 signature of the decoded audio does not match the stored MD5 signature, even when the bitstream is valid.
136         </P>
137         <P>
138         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
139         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
140                 <TR>
141                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
142                                 <A NAME="general_options"><FONT SIZE="+1"><B>General Options</B></FONT></A>
143                         </TD>
144                 </TR>
145                 <TR>
146                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
147                                 -d
148                         </TD>
149                         <TD>
150                                 Decode (<B><TT>flac</TT></B> encodes by default).  <B><TT>flac</TT></B> will exit with an exit code of <TT>1</TT> (and print a message, even in silent mode) if there were any errors during decoding, including when the MD5 checksum does not match the decoded output.  Otherwise the exit code will be <TT>0</TT>.
151                         </TD>
152                 </TR>
153                 <TR>
154                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
155                                 -t
156                         </TD>
157                         <TD>
158                                 Test (same as <B><TT>-d</TT></B> except no decoded file is written).  The exit codes are the same as in decode mode.
159                         </TD>
160                 </TR>
161                 <TR>
162                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
163                                 -a
164                         </TD>
165                         <TD>
166                                 Analyze (same as <B><TT>-d</TT></B> except an analysis file is written).  The exit codes are the same as in decode mode.  This option is mainly for developers; the output will be a text file that has data about each frame and subframe.
167                         </TD>
168                 </TR>
169                 <TR>
170                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
171                                 -s
172                         </TD>
173                         <TD>
174                                 Silent: do not show encoding/decoding statistics.
175                         </TD>
176                 </TR>
177                 <TR>
178                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
179                                 --skip #
180                         </TD>
181                         <TD>
182                                 Skip over the first # of samples of the input.  This works for both encoding and decoding, but not testing.
183                         </TD>
184                 </TR>
185         </TABLE>
186         </TD></TR></TABLE>
187         </P>
188         <P>
189         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
190         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
191                 <TR>
192                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
193                                 <A NAME="analysis_options"><FONT SIZE="+1"><B>Analysis Options</B></FONT></A>
194                         </TD>
195                 </TR>
196                 <TR>
197                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
198                                 --a-rtext
199                         </TD>
200                         <TD>
201                                 Includes the residual signal in the analysis file.  This will make the file <B>very</B> big, much larger than even the decoded file.
202                         </TD>
203                 </TR>
204                 <TR>
205                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
206                                 --a-rgp
207                         </TD>
208                         <TD>
209                                 Generates a gnuplot file for every subframe; each file will contain the residual distribution of the subframe.  This will create a <B>lot</B> of files.
210                         </TD>
211                 </TR>
212         </TABLE>
213         </TD></TR></TABLE>
214         </P>
215         <P>
216         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
217         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
218                 <TR>
219                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
220                                 <A NAME="encoding_options"><FONT SIZE="+1"><B>Encoding Options</B></FONT></A>
221                         </TD>
222                 </TR>
223                 <TR>
224                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
225                                 --lax
226                         </TD>
227                         <TD>
228                                 Allow encoder to generate non-Subset files.  The resulting FLAC file may not be streamable, so you should only use this option in combination with custom encoding options meant for archival.  File decoders will still be able play (and seek in) such files.
229                         </TD>
230                 </TR>
231                 <TR>
232                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
233                                 -P #
234                         </TD>
235                         <TD>
236                                   Tell the encoder to write a <TT>PADDING</TT> metadata block of the given length (in bytes) after the <TT>STREAMINFO</TT> block.  <TT>-P 0</TT> implies no <TT>PADDING</TT> block, which is the default.  This is useful if you plan to tag the file later with an <TT>APPLICATION</TT> block; instead of having to rewrite the entire file later just to insert your block, you can write directly over the <TT>PADDING</TT> block.
237                         </TD>
238                 </TR>
239                 <TR>
240                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
241                                 -b #
242                         </TD>
243                         <TD>
244                                 Set the blocksize.  The default is 1152 for -l 0, otherwise 4608.  Subset streams must use one of 192/576/1152/2304/4608.  The current encoder uses the same blocksize for the entire stream.
245                         </TD>
246                 </TR>
247                 <TR>
248                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
249                                 -m
250                         </TD>
251                         <TD>
252                                 Enable mid-side coding (only for stereo streams).  Tends to increase compression by a few percent on average.  For each block both the stereo pair and mid-side versions of the block will be encoded, and smallest resulting frame will be stored.  Currently mid-side encoding is only available when bits-per-sample <= 16.
253                         </TD>
254                 </TR>
255                 <TR>
256                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
257                                 -M
258                         </TD>
259                         <TD>
260                                 Enable loose mid-side coding (only for stereo streams).  Like <TT>-m</TT> but the encoder adaptively switches between independent and mid-side coding, which is faster but yields less compression than <TT>-m</TT> (which does an exhaustive search).
261                         </TD>
262                 </TR>
263                 <TR>
264                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
265                                 -0 .. -9
266                         </TD>
267                         <TD>
268                                 Fastest compression .. highest compression.  The default is <TT>-6</TT>.
269                         </TD>
270                 </TR>
271                 <TR>
272                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
273                                 -0
274                         </TD>
275                         <TD>
276                                 Synonymous with -l 0
277                         </TD>
278                 </TR>
279                 <TR>
280                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
281                                 -1
282                         </TD>
283                         <TD>
284                                 Synonymous with -l 0 -M
285                         </TD>
286                 </TR>
287                 <TR>
288                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
289                                 -2
290                         </TD>
291                         <TD>
292                                 Synonymous with -l 0 -m -r # (where # is set based on the blocksize)
293                         </TD>
294                 </TR>
295                 <TR>
296                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
297                                 -3
298                         </TD>
299                         <TD>
300                                 Reserved
301                         </TD>
302                 </TR>
303                 <TR>
304                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
305                                 -4
306                         </TD>
307                         <TD>
308                                 Synonymous with -l 8
309                         </TD>
310                 </TR>
311                 <TR>
312                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
313                                 -5
314                         </TD>
315                         <TD>
316                                 Synonymous with -l 8 -M
317                         </TD>
318                 </TR>
319                 <TR>
320                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
321                                 -6
322                         </TD>
323                         <TD>
324                                 Synonymous with -l 8 -m -r # (where # is set based on the blocksize)
325                         </TD>
326                 </TR>
327                 <TR>
328                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
329                                 -7
330                         </TD>
331                         <TD>
332                                 Reserved
333                         </TD>
334                 </TR>
335                 <TR>
336                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
337                                 -8
338                         </TD>
339                         <TD>
340                                 Synonymous with -l 32 -m -r # (where # is set based on the blocksize)
341                         </TD>
342                 </TR>
343                 <TR>
344                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
345                                 -9
346                         </TD>
347                         <TD>
348                                 Synonymous with -l 32 -m -e -r 99 -p.  This is painfully slow but gives you the maximum compression <B><TT>flac</TT></B> can do for a given blocksize.
349                         </TD>
350                 </TR>
351                 <TR>
352                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
353                                 -e
354                         </TD>
355                         <TD>
356                                 Exhaustive model search (expensive!).  Normally the encoder estimates the best model to use and encodes once based on the estimate.  With an exhaustive model search, the encoder will generate subframes for every order and use the smallest.  If the max LPC order is high this can significantly increase the encode time but can shave off another 0.5%.
357                         </TD>
358                 </TR>
359                 <TR>
360                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
361                                 -l #
362                         </TD>
363                         <TD>
364                                 Specifies the maximum LPC order.  This number must be <= 32.  If 0, the encoder will not attempt generic linear prediction, and use only fixed predictors.  Using fixed predictors is faster but usually results in files being 5-10% larger.
365                         </TD>
366                 </TR>
367                 <TR>
368                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
369                                 -q #
370                         </TD>
371                         <TD>
372                                 Specifies the precision of the quantized LP coefficients, in bits.  The default is <B><TT>-q 0</TT></B>, which means let the encoder decide based on the signal.  Unless you really know your input file it's best to leave this up to the encoder.
373                         </TD>
374                 </TR>
375                 <TR>
376                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
377                                 -p
378                         </TD>
379                         <TD>
380                                 Do exhaustive LP coefficient quantization optimization.  This option overrides any <B><TT>-q</TT></B> option.  It is expensive and typically will only improve the compression a tiny fraction of a percent.  <B><TT>-q</TT></B> has no effect when <B><TT>-l 0</TT></B> is used.
381                         </TD>
382                 </TR>
383                 <TR>
384                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
385                                 -r #
386                         </TD>
387                         <TD>
388                                 Do Rice parameter optimization.  By default the encoder uses a single Rice parameter for the subframe's entire residual.  With this option, the residual is partitioned into 2^n pieces, each with its own Rice parameter.  Higher values of n yield diminishing returns.  The most bang for the buck is usually with <B><TT>-r 2</TT></B> (more for higher blocksizes).  This usually shaves off another 1.5%.  The technique tends to peak out about when blocksize/(2^n)=128.  Use <B><TT>-r 99</TT></B> to force the highest degree of optimization.
389                         </TD>
390                 </TR>
391                 <TR>
392                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
393                                 -V
394                         </TD>
395                         <TD>
396                                 Verify the encoding process.  With this option, <B><TT>flac</TT></B> will create a parallel decoder that decodes the output of the encoder and compares the result against the original.  It will abort immediately with an error if a mismatch occurs.  <B><TT>-V</TT></B> increases the total encoding time but is guaranteed to catch any unforseen bug in the encoding process.
397                         </TD>
398                 </TR>
399                 <TR>
400                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
401                         </TD>
402                         <TD>
403                                 -m-, -e-, -p-, -V-, --lax- can all be used to turn off a particular option.
404                         </TD>
405                 </TR>
406         </TABLE>
407         </TD></TR></TABLE>
408         </P>
409         <P>
410         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
411         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
412                 <TR>
413                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
414                                 <A NAME="format_options"><FONT SIZE="+1"><B>Format Options</B></FONT></A>
415                         </TD>
416                 </TR>
417                 <TR>
418                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
419                                 -fb | -fl
420                         </TD>
421                         <TD>
422                                 Specify big-endian | little-endian byte order in the raw file.
423                         </TD>
424                 </TR>
425                 <TR>
426                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
427                                 -fc #
428                         </TD>
429                         <TD>
430                                 Specify the number of channels in the raw file.
431                         </TD>
432                 </TR>
433                 <TR>
434                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
435                                 -fp #
436                         </TD>
437                         <TD>
438                                 Specify the number of bits per sample in the raw file.
439                         </TD>
440                 </TR>
441                 <TR>
442                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
443                                 -fs #
444                         </TD>
445                         <TD>
446                                 Specify the sample rate of the raw file.
447                         </TD>
448                 </TR>
449                 <TR>
450                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
451                                 -fu
452                         </TD>
453                         <TD>
454                                 Specify that the samples in the raw file are unsigned (the default is signed).
455                         </TD>
456                 </TR>
457                 <TR>
458                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
459                                 -fr
460                         </TD>
461                         <TD>
462                                 Treat the input file (or output file if decoding) as a raw file, regardless of the extension.
463                         </TD>
464                 </TR>
465                 <TR>
466                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
467                                 -fw
468                         </TD>
469                         <TD>
470                                 Treat the input file (or output file if decoding) as a RIFF WAVE file, regardless of the extension.
471                         </TD>
472                 </TR>
473         </TABLE>
474         </TD></TR></TABLE>
475         </P>
476         </FONT>
477         </TD></TR>
478         </TABLE>
479         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
480 </TD></TR>
481 </TABLE>
482
483
484 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
485 <TR><TD>
486         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
487         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
488                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
489                 <B><FONT SIZE="+2">metaflac</FONT></B>
490                 </FONT></TD></TR>
491         </TABLE>
492         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
493         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
494         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
495         <P>
496                 <B><TT>metaflac</TT></B> is the command-line <TT>.flac</TT> file metadata editor.  Right now it just lists the contents of all metadata blocks in a .flac file, but soon it will allow you to insert, delete, and edit blocks.
497         </P>
498         <P>
499                 Currently <B><TT>metaflac</TT></B> can be invoked only one way:
500                 <UL>
501                 <LI>
502                         Listing: metaflac [-v] inputfile
503                 </LI>
504                 </UL>
505         </P>
506         <P>
507                 <TT>inputfile</TT> may be "-" for stdin.  If <TT>-v</TT> is used, you will get verbose output.
508         </P>
509         </FONT>
510         </TD></TR>
511         </TABLE>
512         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
513 </TD></TR>
514 </TABLE>
515
516
517 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
518 <TR><TD>
519         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
520         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
521                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
522                 <A NAME="plugins"><B><FONT SIZE="+2">xmms plugin</FONT></B></A>
523                 </FONT></TD></TR>
524         </TABLE>
525         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
526         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
527         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
528         <P>
529                 All that is necessary is to copy <B><TT>libxmms-flac.so</TT></B> to the directory where XMMS looks for input plugins (usually <B><TT>/usr/lib/xmms/Input</TT></B>).  There is nothing else to configure.  Make sure to restart XMMS before trying to play any <TT>.flac</TT> files.
530         </P>
531         </FONT>
532         </TD></TR>
533         </TABLE>
534         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
535 </TD></TR>
536 </TABLE>
537
538
539 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
540 <TR><TD>
541         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
542         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
543                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
544                 <B><FONT SIZE="+2">winamp plugin</FONT></B>
545                 </FONT></TD></TR>
546         </TABLE>
547         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
548         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
549         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
550         <P>
551                 All that is necessary is to copy <B><TT>in_flac.dll</TT></B> to the <B><TT>Plugins/</TT></B> directory of your Winamp installation.  There is nothing else to configure.  Make sure to restart Winamp before trying to play any <TT>.flac</TT> files.
552         </P>
553         </FONT>
554         </TD></TR>
555         </TABLE>
556         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
557 </TD></TR>
558 </TABLE>
559
560
561 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
562 <TR><TD>
563         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
564         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
565                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
566                 <B><FONT SIZE="+2">known bugs</FONT></B>
567                 </FONT></TD></TR>
568         </TABLE>
569         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
570         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
571         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
572         <P>
573                 Bug tracking is done on the Sourceforge project page <A HREF="http://sourceforge.net/bugs/?group_id=13478">here</A>.
574         </P>
575         </FONT>
576         </TD></TR>
577         </TABLE>
578         <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR BGCOLOR="#000000"><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR></TABLE>
579 </TD></TR>
580 </TABLE>
581
582
583 </CENTER>
584
585 </BODY>
586 </HTML>