add -S options
[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                                 -S { # | X | #x }
234                         </TD>
235                         <TD>
236                                 Include a point or points in a SEEKTABLE:<BR>
237                                 <UL>
238                                 <LI>
239                                         <TT>#&nbsp;</TT> : a specific sample number for a seek point
240                                 </LI>
241                                 <LI>
242                                         <TT>X&nbsp;</TT> : a placeholder point (always goes at the end of the SEEKTABLE)
243                                 </LI>
244                                 <LI>
245                                         <TT>#x</TT> : # evenly spaced seekpoints, the first being at sample 0
246                                 </LI>
247                                 </UL>
248                                 You may use many -S options; the resulting SEEKTABLE will be the unique-ified union of all such values.<BR>
249                                 With no -S options, flac defaults to '-S 100x'.  Use -S- for no SEEKTABLE.<BR>
250                                 NOTE: -S #x will not work if the encoder can't determine the input size before starting.<BR>
251                                 NOTE: if you use -S # and # is >= samples in the input, there will be either no seek point entered (if the input size is determinable before encoding starts) or a placeholder point (if input size is not determinable)<BR>
252                         </TD>
253                 </TR>
254                 <TR>
255                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
256                                 -P #
257                         </TD>
258                         <TD>
259                                   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.
260                         </TD>
261                 </TR>
262                 <TR>
263                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
264                                 -b #
265                         </TD>
266                         <TD>
267                                 Specify the blocksize in samples.  The default is 1152 for -l 0, otherwise 4608.  Subset streams must use one of 192/576/1152/2304/4608/256/512/1024/2048/4096/8192/16384/32768.  The current encoder uses the same blocksize for the entire stream.
268                         </TD>
269                 </TR>
270                 <TR>
271                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
272                                 -m
273                         </TD>
274                         <TD>
275                                 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.
276                         </TD>
277                 </TR>
278                 <TR>
279                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
280                                 -M
281                         </TD>
282                         <TD>
283                                 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).
284                         </TD>
285                 </TR>
286                 <TR>
287                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
288                                 -0 .. -9
289                         </TD>
290                         <TD>
291                                 Fastest compression .. highest compression.  The default is <TT>-6</TT>.
292                         </TD>
293                 </TR>
294                 <TR>
295                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
296                                 -0
297                         </TD>
298                         <TD>
299                                 Synonymous with -l 0 -b 1152
300                         </TD>
301                 </TR>
302                 <TR>
303                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
304                                 -1
305                         </TD>
306                         <TD>
307                                 Synonymous with -l 0 -b 1152 -M
308                         </TD>
309                 </TR>
310                 <TR>
311                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
312                                 -2
313                         </TD>
314                         <TD>
315                                 Synonymous with -l 0 -b 1152 -m -r 2
316                         </TD>
317                 </TR>
318                 <TR>
319                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
320                                 -3
321                         </TD>
322                         <TD>
323                                 Reserved
324                         </TD>
325                 </TR>
326                 <TR>
327                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
328                                 -4
329                         </TD>
330                         <TD>
331                                 Synonymous with -l 8 -b 4608
332                         </TD>
333                 </TR>
334                 <TR>
335                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
336                                 -5
337                         </TD>
338                         <TD>
339                                 Synonymous with -l 8 -b 4608 -M
340                         </TD>
341                 </TR>
342                 <TR>
343                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
344                                 -6
345                         </TD>
346                         <TD>
347                                 Synonymous with -l 8 -b 4608 -m -r 4
348                         </TD>
349                 </TR>
350                 <TR>
351                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
352                                 -7
353                         </TD>
354                         <TD>
355                                 Reserved
356                         </TD>
357                 </TR>
358                 <TR>
359                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
360                                 -8
361                         </TD>
362                         <TD>
363                                 Synonymous with -l 32 -b 4608 -m -r 4
364                         </TD>
365                 </TR>
366                 <TR>
367                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
368                                 -9
369                         </TD>
370                         <TD>
371                                 Synonymous with -l 32 -b 4608 -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.
372                         </TD>
373                 </TR>
374                 <TR>
375                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
376                                 -e
377                         </TD>
378                         <TD>
379                                 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%.
380                         </TD>
381                 </TR>
382                 <TR>
383                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
384                                 -l #
385                         </TD>
386                         <TD>
387                                 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.
388                         </TD>
389                 </TR>
390                 <TR>
391                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
392                                 -q #
393                         </TD>
394                         <TD>
395                                 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.
396                         </TD>
397                 </TR>
398                 <TR>
399                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
400                                 -p
401                         </TD>
402                         <TD>
403                                 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.
404                         </TD>
405                 </TR>
406                 <TR>
407                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
408                                 -r #
409                         </TD>
410                         <TD>
411                                 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.
412                         </TD>
413                 </TR>
414                 <TR>
415                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
416                                 -V
417                         </TD>
418                         <TD>
419                                 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.
420                         </TD>
421                 </TR>
422                 <TR>
423                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
424                         </TD>
425                         <TD>
426                                 -S-, -m-, -e-, -p-, -V-, --lax- can all be used to turn off a particular option.
427                         </TD>
428                 </TR>
429         </TABLE>
430         </TD></TR></TABLE>
431         </P>
432         <P>
433         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
434         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
435                 <TR>
436                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
437                                 <A NAME="format_options"><FONT SIZE="+1"><B>Format Options</B></FONT></A>
438                         </TD>
439                 </TR>
440                 <TR>
441                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
442                                 -fb | -fl
443                         </TD>
444                         <TD>
445                                 Specify big-endian | little-endian byte order in the raw file.
446                         </TD>
447                 </TR>
448                 <TR>
449                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
450                                 -fc #
451                         </TD>
452                         <TD>
453                                 Specify the number of channels in the raw file.
454                         </TD>
455                 </TR>
456                 <TR>
457                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
458                                 -fp #
459                         </TD>
460                         <TD>
461                                 Specify the number of bits per sample in the raw file.
462                         </TD>
463                 </TR>
464                 <TR>
465                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
466                                 -fs #
467                         </TD>
468                         <TD>
469                                 Specify the sample rate of the raw file.
470                         </TD>
471                 </TR>
472                 <TR>
473                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
474                                 -fu
475                         </TD>
476                         <TD>
477                                 Specify that the samples in the raw file are unsigned (the default is signed).
478                         </TD>
479                 </TR>
480                 <TR>
481                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
482                                 -fr
483                         </TD>
484                         <TD>
485                                 Treat the input file (or output file if decoding) as a raw file, regardless of the extension.
486                         </TD>
487                 </TR>
488                 <TR>
489                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
490                                 -fw
491                         </TD>
492                         <TD>
493                                 Treat the input file (or output file if decoding) as a RIFF WAVE file, regardless of the extension.
494                         </TD>
495                 </TR>
496         </TABLE>
497         </TD></TR></TABLE>
498         </P>
499         </FONT>
500         </TD></TR>
501         </TABLE>
502         <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>
503 </TD></TR>
504 </TABLE>
505
506
507 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
508 <TR><TD>
509         <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>
510         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
511                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
512                 <B><FONT SIZE="+2">metaflac</FONT></B>
513                 </FONT></TD></TR>
514         </TABLE>
515         <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>
516         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
517         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
518         <P>
519                 <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.
520         </P>
521         <P>
522                 Currently <B><TT>metaflac</TT></B> can be invoked only one way:
523                 <UL>
524                 <LI>
525                         Listing: metaflac [-v] inputfile
526                 </LI>
527                 </UL>
528         </P>
529         <P>
530                 <TT>inputfile</TT> may be "-" for stdin.  If <TT>-v</TT> is used, you will get verbose output.
531         </P>
532         </FONT>
533         </TD></TR>
534         </TABLE>
535         <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>
536 </TD></TR>
537 </TABLE>
538
539
540 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
541 <TR><TD>
542         <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>
543         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
544                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
545                 <A NAME="plugins"><B><FONT SIZE="+2">xmms plugin</FONT></B></A>
546                 </FONT></TD></TR>
547         </TABLE>
548         <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>
549         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
550         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
551         <P>
552                 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.
553         </P>
554         </FONT>
555         </TD></TR>
556         </TABLE>
557         <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>
558 </TD></TR>
559 </TABLE>
560
561
562 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
563 <TR><TD>
564         <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>
565         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
566                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
567                 <B><FONT SIZE="+2">winamp plugin</FONT></B>
568                 </FONT></TD></TR>
569         </TABLE>
570         <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>
571         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
572         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
573         <P>
574                 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.
575         </P>
576         </FONT>
577         </TD></TR>
578         </TABLE>
579         <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>
580 </TD></TR>
581 </TABLE>
582
583
584 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
585 <TR><TD>
586         <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>
587         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
588                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
589                 <B><FONT SIZE="+2">known bugs</FONT></B>
590                 </FONT></TD></TR>
591         </TABLE>
592         <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>
593         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
594         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
595         <P>
596                 Bug tracking is done on the Sourceforge project page <A HREF="http://sourceforge.net/bugs/?group_id=13478">here</A>.
597         </P>
598         </FONT>
599         </TD></TR>
600         </TABLE>
601         <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>
602 </TD></TR>
603 </TABLE>
604
605
606 </CENTER>
607
608 </BODY>
609 </HTML>