add --cue option to flac, and tests and documentation
[platform/upstream/flac.git] / doc / html / documentation.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <!-- Copyright (c)  2000,2001,2002,2003,2004  Josh Coalson -->
3 <!-- Permission is granted to copy, distribute and/or modify this document -->
4 <!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
5 <!-- or any later version published by the Free Software Foundation; -->
6 <!-- with no invariant sections. -->
7 <!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
8 <HTML>
9 <HEAD>
10         <TITLE>FLAC - documentation</TITLE>
11 </HEAD>
12
13 <BODY MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BGCOLOR="#99CC99" TEXT="#000000" LINK="#336699" VLINK="#336699" ALINK="#336699">
14
15 <TABLE BORDER=0 WIDTH="100%" CELLPADDING=1 CELLSPACING=0>
16         <TR>
17                 <TD ALIGN="CENTER" BGCOLOR="#000000"><A HREF="http://flac.sourceforge.net/"><IMG SRC="images/logo130.gif" ALIGN=CENTER ALT="FLAC Logo" BORDER=0 HSPACE=0></a></TD>
18         </TR>
19 </TABLE>
20
21 <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>
22
23 <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>
24
25 <TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
26         <TR>
27                 <TD ALIGN="CENTER" BGCOLOR="#D3D4C5">
28                         <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>
29                                 <TR>
30                                         <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>
31                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="faq.html">faq</A>&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
32                                         <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>
33                                         <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>
34                                         <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>
35                                         <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>
36                                         <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>
37                                         <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>
38                                         <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>
39                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;documentation&nbsp;&nbsp;</TD><TD BGCOLOR="#D3D4C5" ALIGN=CENTER>|</TD>
40                                         <TD           BGCOLOR="#D3D4C5" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="developers.html">developers</A>&nbsp;&nbsp;</TD>
41                                 </TR>
42                         </TABLE>
43                 </TD>
44         </TR>
45 </TABLE>
46
47 <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>
48
49 <TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
50         <TR>
51                 <TD ALIGN="CENTER" BGCOLOR="#EEEED4">
52                         <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>
53                                 <TR>
54                                         <TD HEIGHT=22 BGCOLOR="#EEEED4" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;english&nbsp;&nbsp;</TD><TD BGCOLOR="#EEEED4" ALIGN=CENTER>|</TD>
55                                         <TD           BGCOLOR="#EEEED4" ALIGN=CENTER NOWRAP>&nbsp;&nbsp;<A CLASS="topnav" HREF="ru/documentation.html">russian</A>&nbsp;&nbsp;</TD>
56                                 </TR>
57                         </TABLE>
58                 </TD>
59         </TR>
60 </TABLE>
61
62 <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>
63
64 <CENTER>
65
66 <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>
67
68
69 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
70 <TR><TD>
71         <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>
72         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
73                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
74                 <B><FONT SIZE="+2">documentation</FONT></B>
75                 </FONT></TD></TR>
76         </TABLE>
77         <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>
78         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
79         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
80         <P>
81                 This page is broken up into the following sections:
82                 <UL>
83                         <LI><A HREF="#format">format</A> - the user-level view of the FLAC format (for a more detailed explanation see the <A HREF="format.html">format page</A>).</LI>
84                         <LI><A HREF="#flac">flac</A> - the usage of the command-line file encoder/decoder <B><TT>flac</TT></B>.</LI>
85                         <LI><A HREF="#metaflac">metaflac</A> - the usage of the command-line FLAC metadata editor <B><TT>metaflac</TT></B>.</LI>
86                         <LI><A HREF="#plugins">plugins</A> - documentation for the various input plugins.</LI>
87                         <LI><A HREF="api/index.html">libFLAC and libFLAC++ APIs</A> - for developers who want to add FLAC support to their programs.</LI>
88                         <LI><A HREF="#bugs">bugs</A> - known bugs.</LI>
89                         <LI><A HREF="#monkey">How to add FLAC support to the Monkey's Audio GUI</A></LI>
90                 </UL>
91         </P>
92         <P>
93                 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.
94         </P>
95         </FONT>
96         </TD></TR>
97         </TABLE>
98         <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>
99 </TD></TR>
100 </TABLE>
101
102
103 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
104 <TR><TD>
105         <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>
106         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
107                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
108                 <A NAME="format"><B><FONT SIZE="+2">format</FONT></B>
109                 </FONT></TD></TR>
110         </TABLE>
111         <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>
112         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
113         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
114         <P>
115                 <B><TT>flac</TT></B> has been tuned so that the default options yield a good speed vs. compression tradeoff for many kinds of input.  However, if you are looking to maximize the compression rate or speed, or want to use the full power of FLAC's metadata system, this section is for you.  If not, just skip to the <A HREF="#flac">next section</A>.
116         </P>
117         <P>
118                 The basic structure of a FLAC stream is:
119                 <UL>
120                         <LI>The four byte string "fLaC"</LI>
121                         <LI>The <A HREF="format.html#def_STREAMINFO">STREAMINFO</A> metadata block</LI>
122                         <LI>Zero or more other metadata blocks</LI>
123                         <LI>One or more audio frames</LI>
124                 </UL>
125         </P>
126         <P>
127                 The first four bytes are to identify the FLAC stream.  The metadata that follows contains all the information about the stream except for the audio data itself.  After the metadata comes the encoded audio data.
128         </P>
129         <P>
130                 <B>METADATA</B>
131         </P>
132         <P>
133                 FLAC defines several types of metadata blocks (see the <A HREF="format.html">format</A> page for the complete list).  Metadata blocks can be any length and new ones can be defined.  A decoder is allowed to skip any metadata types it does not understand.  Only one is mandatory: the STREAMINFO block.  This block has information like the sample rate, number of channels, etc., and data that can help the decoder manage its buffers, like the minimum and maximum data rate and minimum and maximum block size.  Also included in the STREAMINFO block is the MD5 signature of the <I>unencoded</I> audio data.  This is useful for checking an entire stream for transmission errors.
134         </P>
135         <P>
136                 Other blocks allow for padding, seek tables, tags, cuesheets, and application-specific data.  You can see <B><TT>flac</TT></B> options below for adding PADDING blocks or specifying seek points.  FLAC does not require seek points for seeking but they can speed up seeks, or be used for cueing in editing applications.
137         <P>
138         </P>
139                 Also, if you have a need of a custom metadata block, you can define your own and request an ID <A HREF="id.html">here</A>.  Then you can reserve a PADDING block of the correct size when encoding, and overwrite the padding block with your APPLICATION block after encoding.  The resulting stream will be FLAC compatible; decoders that are aware of your metadata can use it and the rest will safely ignore it.
140         </P>
141         <P>
142                 <B>AUDIO DATA</B>
143         </P>
144         <P>
145                 After the metadata comes the encoded audio data.  Audio data and metadata are not interleaved.  Like most audio codecs, FLAC splits the unencoded audio data into blocks, and encodes each block separately.  The encoded block is packed into a frame and appended to the stream.  The reference encoder uses a single block size for the whole stream but the FLAC format does not require it.
146         </P>
147         <P>
148                 <B>BLOCKING</B>
149         </P>
150         <P>
151                 The block size is an important parameter to encoding.  If it is too small, the frame overhead will lower the compression.  If it is too large, the modeling stage of the compressor will not be able to generate an efficient model.  Understanding FLAC's modeling will help you to improve compression for some kinds of input by varying the block size.  In the most general case, using linear prediction on 44.1kHz audio, the optimal block size will be between 2-6 ksamples.  <B><TT>flac</TT></B> defaults to a block size of 4608 in this case.  Using the fast fixed predictors, a smaller block size is usually preferable because of the smaller frame header.
152         </P>
153         <P>
154                 <B>INTER-CHANNEL DECORRELATION</B>
155         </P>
156         <P>
157                 In the case of stereo input, once the data is blocked it is optionally passed through an inter-channel decorrelation stage.  The left and right channels are converted to center and side channels through the following transformation: mid = (left + right) / 2, side = left - right.  This is a lossless process, unlike joint stereo.  For normal CD audio this can result in significant extra compression.  <B><TT>flac</TT></B> has two options for this: <TT>-m</TT> always compresses both the left-right and mid-side versions of the block and takes the smallest frame, and <TT>-M</TT>, which adaptively switches between left-right and mid-side.
158         </P>
159         <P>
160                 <B>MODELING</B>
161         </P>
162         <P>
163                 In the next stage, the encoder tries to approximate the signal with a function in such a way that when the approximation is subracted, the result (called the <I>residual</I>, <I>residue</I>, or <I>error</I>) requires fewer bits-per-sample to encode.  The function's parameters also have to be transmitted so they should not be so complex as to eat up the savings.  FLAC has two methods of forming approximations: 1) fitting a simple polynomial to the signal; and 2) general linear predictive coding (LPC).  I will not go into the details here, only some generalities that involve the encoding options.
164         </P>
165         <P>
166                 First, fixed polynomial prediction (specified with <TT>-l 0</TT>) is much faster, but less accurate than LPC.  The higher the maximum LPC order, the slower, but more accurate, the model will be.  However, there are diminishing returns with increasing orders.  Also, at some point (usually around order 9) the part of the encoder that guesses what is the best order to use will start to get it wrong and the compression will actually decrease slightly; at that point you will have to you will have to use the exhaustive search option <TT>-e</TT> to overcome this, which is significantly slower.
167         </P>
168         <P>
169                 Second, the parameters for the fixed predictors can be transmitted in 3 bits whereas the parameters for the LPC model depend on the bits-per-sample and LPC order.  This means the frame header length varies depending on the method and order you choose and can affect the optimal block size.
170         </P>
171         <P>
172                 <B>RESIDUAL CODING</B>
173         </P>
174         <P>
175                 Once the model is generated, the encoder subracts the approximation from the original signal to get the residual (error) signal.  The error signal is then losslessly coded.  To do this, FLAC takes advantage of the fact that the error signal generally has a Laplacian (two-sided geometric) distribution, and that there are a set of special Huffman codes called Rice codes that can be used to efficiently encode these kind of signals quickly and without needing a dictionary.
176         </P>
177         <P>
178                 Rice coding involves finding a single parameter that matches a signal's distribution, then using that parameter to generate the codes.  As the distribution changes, the optimal parameter changes, so FLAC supports a method that allows the parameter to change as needed.  The residual can be broken into several <I>contexts</I> or <I>partitions</I>, each with it's own Rice parameter.  <B><TT>flac</TT></B> allows you to specify how the partitioning is done with the <TT>-r</TT> option.  The residual can be broken into 2^<I>n</I> partitions, by using the option <TT>-r n,n</TT>.  The parameter <I>n</I> is called the <I>partition order</I>.  Furthermore, the encoder can be made to search through <I>m</I> to <I>n</I> partition orders, taking the best one, by specifying <TT>-r m,n</TT>.  Generally, the choice of n does not affect encoding speed but m,n does.  The larger the difference between m and n, the more time it will take the encoder to search for the best order.  The block size will also affect the optimal order.
179         </P>
180         <P>
181                 <B>FRAMING</B>
182         </P>
183         <P>
184                 An audio frame is preceded by a frame header and trailed by a frame footer.  The header starts with a sync code, and contains the minimum information necessary for a decoder to play the stream, like sample rate, bits per sample, etc.  It also contains the block or sample number and an 8-bit CRC of the frame header.  The sync code, frame header CRC, and block/sample number allow resynchronization and seeking even in the absence of seek points.  The frame footer contains a 16-bit CRC of the entire encoded frame for error detection.  If the reference decoder detects a CRC error it will generate a silent block.
185         </P>
186         <P>
187                 <B>MISCELLANEOUS</B>
188         </P>
189         <P>
190                 In order to support come common types of metadata, the reference decoder knows how to skip <A HREF="http://www.id3.org/">ID3v1 and ID3v2 tags</A>.  Note however that the FLAC specification does not require compliant implementations to support ID3 in any form.  The XMMS and Winamp plugins support them out of convenience but other applications need not.
191         </P>
192         <P>
193                 <B><TT>flac</TT></B> has a verify option <TT>-V</TT> that verifies the output while encoding.  With this option, a decoder is run in parallel to the encoder and its output is compared against the original input.  If a difference is found <B><TT>flac</TT></B> will stop with an error.
194         </P>
195         </FONT>
196         </TD></TR>
197         </TABLE>
198         <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>
199 </TD></TR>
200 </TABLE>
201
202
203 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
204 <TR><TD>
205         <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>
206         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
207                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
208                 <A NAME="flac"><B><FONT SIZE="+2">flac</FONT></B>
209                 </FONT></TD></TR>
210         </TABLE>
211         <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>
212         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
213         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
214         <P>
215                 <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, AIFF, 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/decoder.
216         </P>
217         <P>
218                 <B><TT>flac</TT></B> assumes that files ending in ".wav" or that have the RIFF WAVE header present are WAVE files, and files ending in ".aif" or ".aiff" or have the AIFF header present are in AIFF files.  This may be overridden with a command-line option.  It also assumes that files ending in ".ogg" are Ogg-FLAC files.  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).
219         </P>
220         <P>
221                 Before going into the full command-line description, a few 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>-8</TT></B> (or <B><TT>--fast</B></TT> and <B><TT>--best</B></TT>) that control the compression level actually are just synonyms for different groups of specific encoding options (described later) and you can get the same effect by using the same options; 3) <B><TT>flac</TT></B> behaves similarly to gzip in the way it handles input and output files.
222         </P>
223         <P>
224                 <B><TT>flac</TT></B> will be invoked one of four ways, depending on whether you are encoding, decoding, testing, or analyzing:
225                 <UL>
226                 <LI>
227                         Encoding: flac [<I><A HREF="#general_options">&lt;general-options&gt;</A></I>] [<I><A HREF="#format_options">&lt;format-options&gt;</A></I>] [<I><A HREF="#encoding_options">&lt;encoding options&gt;</A></I>] [inputfile [...]]
228                 </LI>
229                 <LI>
230                         Decoding: flac -d [<I><A HREF="#general_options">&lt;general-options&gt;</A></I>] [<I><A HREF="#format_options">&lt;format-options&gt;</A></I>] [<I><A HREF="#decoding_options">&lt;decoding options&gt;</A></I>]  [FLACfile [...]]
231                 </LI>
232                 <LI>
233                         Testing: flac -t [<I><A HREF="#general_options">&lt;general-options&gt;</A></I>] [FLACfile [...]]
234                 </LI>
235                 <LI>
236                         Analyzing: flac -a [<I><A HREF="#general_options">&lt;general-options&gt;</A></I>] [<I><A HREF="#analysis_options">&lt;analysis-options&gt;</A></I>] [FLACfile [...]]
237                 </LI>
238                 </UL>
239         </P>
240         <P>
241                 In any case, if no <TT>inputfile</TT> is specified, stdin is assumed.  If only one inputfile is specified, it may be "-" for stdin.  When stdin is used as input, <B><TT>flac</TT></B> will write to stdout.  Otherwise <B><TT>flac</TT></B> will perform the desired operation on each input file to similarly named output files (meaning for encoding, the extension will be replaced with ".flac", or appended with ".flac" if the input file has no extension, and for decoding, the extension will be ".wav" for WAVE output and ".raw" for raw output).  The original file is not deleted unless --delete-input-file is specified.
242         </P>
243         <P>
244                 If you are encoding/decoding from stdin to a file, you should use the -o option like so:
245                 <UL>
246                 <LI>
247                         flac [options] -o outputfile
248                 </LI>
249                 <LI>
250                         flac -d [options] -o outputfile
251                 </LI>
252                 </UL>
253                 which are better than:
254                 <UL>
255                 <LI>
256                         flac [options] &gt; outputfile
257                 </LI>
258                 <LI>
259                         flac -d [options] &gt; outputfile
260                 </LI>
261                 </UL>
262                 since the former allows flac to seek backwards to write the STREAMINFO or RIFF WAVE header contents when necessary.
263         </P>
264         <P>
265                 Also, you can force output data to go to stdout using <TT>-c</TT>.
266         </P>
267         <P>
268                 To encode or decode files that start with a dash, use <TT>--</TT> to signal the end of options, to keep the filenames themselves from being treated as options:
269                 <UL>
270                 <LI>
271                         <TT>flac -V -- -01-filename.wav</TT>
272                 </LI>
273                 </UL>
274         </P>
275         <P>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 or AIFF file the format options are not needed since they are read from the AIFF/WAVE header.
276         </P>
277         <P>
278                 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.
279         </P>
280         <P>
281         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
282         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
283                 <TR>
284                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
285                                 <A NAME="general_options"><FONT SIZE="+1"><B>General Options</B></FONT></A>
286                         </TD>
287                 </TR>
288                 <TR>
289                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
290                                 <TT>-v</TT>, <TT>--version</TT>
291                         </TD>
292                         <TD>
293                                 Show the <B><TT>flac</TT></B> version number.
294                         </TD>
295                 </TR>
296                 <TR>
297                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
298                                 <TT>-h</TT>, <TT>--help</TT>
299                         </TD>
300                         <TD>
301                                 Show basic usage and a list of all options.  Running <B><TT>flac</TT></B> without arguments shows the short help screen by default.
302                         </TD>
303                 </TR>
304                 <TR>
305                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
306                                 <TT>-H</TT>, <TT>--explain</TT>
307                         </TD>
308                         <TD>
309                                 Show detailed explanation of usage and all options.  Running <B><TT>flac</TT></B> without arguments shows the short help screen by default.
310                         </TD>
311                 </TR>
312                 <TR>
313                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
314                                 <TT>-d</TT>, <TT>--decode</TT>
315                         </TD>
316                         <TD>
317                                 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>.
318                         </TD>
319                 </TR>
320                 <TR>
321                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
322                                 <TT>-t</TT>, <TT>--test</TT>
323                         </TD>
324                         <TD>
325                                 Test (same as <B><TT>-d</TT></B> except no decoded file is written).  The exit codes are the same as in decode mode.
326                         </TD>
327                 </TR>
328                 <TR>
329                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
330                                 <TT>-a</TT>, <TT>--analyze</TT>
331                         </TD>
332                         <TD>
333                                 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.
334                         </TD>
335                 </TR>
336                 <TR>
337                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
338                                 <TT>-c</TT>, <TT>--stdout</TT>
339                         </TD>
340                         <TD>
341                                 Write output to stdout.
342                         </TD>
343                 </TR>
344                 <TR>
345                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
346                                 <TT>-s</TT>, <TT>--silent</TT>
347                         </TD>
348                         <TD>
349                                 Silent: do not show encoding/decoding statistics.
350                         </TD>
351                 </TR>
352                 <TR>
353                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
354                                 <TT>-f</TT>, <TT>--force</TT>
355                         </TD>
356                         <TD>
357                                 Force overwriting of output files.  By default, <TT><B>flac</B></TT> warns that the output file already exists and continues to the next file.
358                         </TD>
359                 </TR>
360                 <TR>
361                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
362                                 <TT>-o filename</TT>,<BR><TT>--output-name=filename</TT>
363                         </TD>
364                         <TD>
365                                 Force the output file name (usually <TT><B>flac</B></TT> just changes the extension).  May only be used when encoding a single file.  May not be used in conjunction with <TT>--output-prefix</T>.
366                         </TD>
367                 </TR>
368                 <TR>
369                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
370                                 <TT>--output-prefix=string</TT>
371                         </TD>
372                         <TD>
373                                 Prefix each output file name with the given string.  This can be useful for encoding/decoding files to a different directory.  Make sure if your string is a path name that it ends with a trailing '<TT>/</TT>' slash.
374                         </TD>
375                 </TR>
376                 <TR>
377                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
378                                 <TT>--delete-input-file</TT>
379                         </TD>
380                         <TD>
381                                 Automatically delete the input file after a successful encode or decode.  If there was an error (including a verify error) the input file is left intact.
382                         </TD>
383                 </TR>
384                 <TR>
385                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
386                                 <TT>--skip={#|mm:ss.ss}</TT>
387                         </TD>
388                         <TD>
389                                 Skip over the first # of samples of the input.  This works for both encoding and decoding, but not testing.  The alternative form <TT>mm:ss.ss</TT> can be used to specify minutes, seconds, and fractions of a second.<P>
390                                 Examples:<P>
391                                 <TT>--skip=123</TT> : skip the first 123 samples of the input<P>
392                                 <TT>--skip=1:23.45</TT> : skip the first 1 minute and 23.45 seconds of the input
393                         </TD>
394                 </TR>
395                 <TR>
396                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
397                                 <TT>--until={#|[+|-]mm:ss.ss}</TT>
398                         </TD>
399                         <TD>
400                                 Stop at the given sample number for each input file.  This works for both encoding and decoding, but not testing.  The given sample number is not included in the decoded output.  The alternative form <TT>mm:ss.ss</TT> can be used to specify minutes, seconds, and fractions of a second.  If a <TT>+</TT> sign is at the beginning, the <TT>--until</TT> point is relative to the <TT>--skip</TT> point.  If a <TT>-</TT> sign is at the beginning, the <TT>--until</TT> point is relative to end of the audio.<P>
401                                 Examples:<P>
402                                 <TT>--until=123</TT> : decode only the first 123 samples of the input (samples 0-122, stopping at 123)<P>
403                                 <TT>--until=1:23.45</TT> : decode only the first 1 minute and 23.45 seconds of the input<P>
404                                 <TT>--skip=1:00 --until=+1:23.45</TT> : decode 1:00.00 to 2:23.45<P>
405                                 <TT>--until=-1:23.45</TT> : decode everything except the last 1 minute and 23.45 seconds<P>
406                                 <TT>--until=-0:00</TT> : decode until the end of the input (the same as not specifying <TT>--until</TT>)
407                         </TD>
408                 </TR>
409                 <TR>
410                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
411                                 <TT>--ogg</TT>
412                         </TD>
413                         <TD>
414                                 When encoding, generate Ogg-FLAC output instead of native-FLAC.  Ogg-FLAC streams are FLAC streams wrapped in an Ogg transport layer.  The resulting file should have an '.ogg' extension and will still be decodable by <TT><B>flac</B></TT>.<P>
415                                 When decoding, force the input to be treated as Ogg-FLAC.  This is useful when piping input from stdin or when the filename does not end in '.ogg'.
416                         </TD>
417                 </TR>
418                 <TR>
419                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
420                                 <TT>--serial-number=#</TT>
421                         </TD>
422                         <TD>
423                                 When used with --ogg, specifies the serial number to use for the first Ogg FLAC stream, which is then incremented for each additional stream.  When encoding and no serial number is given, <TT><B>flac</B></TT> uses a random number for the first stream, then increments it for each additional stream.  When decoding and no number is given, <TT><B>flac</B></TT> uses the serial number of the first page.
424                         </TD>
425                 </TR>
426         </TABLE>
427         </TD></TR></TABLE>
428         </P>
429         <P>
430         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
431         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
432                 <TR>
433                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
434                                 <A NAME="analysis_options"><FONT SIZE="+1"><B>Analysis Options</B></FONT></A>
435                         </TD>
436                 </TR>
437                 <TR>
438                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
439                                 <TT>--residual-text</TT>
440                         </TD>
441                         <TD>
442                                 Includes the residual signal in the analysis file.  This will make the file <B>very</B> big, much larger than even the decoded file.
443                         </TD>
444                 </TR>
445                 <TR>
446                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
447                                 <TT>--residual-gnuplot</TT>
448                         </TD>
449                         <TD>
450                                 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.
451                         </TD>
452                 </TR>
453         </TABLE>
454         </TD></TR></TABLE>
455         </P>
456         <P>
457         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
458         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
459                 <TR>
460                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
461                                 <A NAME="decoding_options"><FONT SIZE="+1"><B>Decoding Options</B></FONT></A>
462                         </TD>
463                 </TR>
464                 <TR>
465                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
466                                 <TT>--cue=[#.#][-[#.#]]</TT>
467                         </TD>
468                         <TD>
469                                 Set the beginning and ending cuepoints to decode.  The optional first <TT>#.#</TT> is the track and index point at which decoding will start; the default is the beginning of the stream.  The optional second <TT>#.#</TT> is the track and index point at which decoding will end; the default is the end of the stream.  If the seekpoint does not exist, the closest one before it (for the start point) or after it (for the end point) will be used.  If those don't exist, the start of the stream (for the start point) or end of the stream (for the end point) will be used.  The cuepoints are merely translated into sample numbers then used as --skip and --until.<P>
470                                 Examples:<P>
471                                 <TT>--cue=-</TT> : decode the entire stream<P>
472                                 <TT>--cue=4.1</TT> : decode from track 4, index 1 to the end of the stream<P>
473                                 <TT>--cue=4.1-</TT> : decode from track 4, index 1 to the end of the stream<P>
474                                 <TT>--cue=-4.1</TT> : decode from the beginning of the stream up to, but not including, track 4, index 1<P>
475                                 <TT>--cue=2.1-2.4</TT> : decode from track 2, index 1, up to, but not including, track 2, index 4<P>
476                         </TD>
477                 </TR>
478                 <TR>
479                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
480                                 <TT>-F</TT>,<BR><TT>--decode-through-errors</TT>
481                         </TD>
482                         <TD>
483                                 By default <B><TT>flac</TT></B> stops decoding with an error and removes the partially decoded file if it encounters a bitstream error.  With <TT>-F</TT>, errors are still printed but <B><TT>flac</TT></B> will continue decoding to completion.  Note that errors may cause the decoded audio to be missing some samples or have silent sections.
484                         </TD>
485                 </TR>
486         </TABLE>
487         </TD></TR></TABLE>
488         </P>
489         <P>
490         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
491         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
492                 <TR>
493                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
494                                 <A NAME="encoding_options"><FONT SIZE="+1"><B>Encoding Options</B></FONT></A>
495                         </TD>
496                 </TR>
497                 <TR>
498                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
499                                 <TT>-V</TT>, <TT>--verify</TT>
500                         </TD>
501                         <TD>
502                                 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.
503                         </TD>
504                 </TR>
505                 <TR>
506                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
507                                 <TT>--lax</TT>
508                         </TD>
509                         <TD>
510                                 Allow encoder to generate non-<A HREF="format.html#subset">Subset</A> 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.
511                         </TD>
512                 </TR>
513                 <TR>
514                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
515                                 <TT>--replay-gain</TT>
516                         </TD>
517                         <TD>
518                                 Calculate <A HREF="http://www.replaygain.org/">ReplayGain</A> values and store in Vorbis comments, similar to <A HREF="http://packages.qa.debian.org/v/vorbisgain.html">VorbisGain</A>.  Title gains/peaks will be computed for each input file, and an album gain/peak will be computed for all files.  All input files must have the same resolution, sample rate, and number of channels.  Only mono and stereo files are allowed, and the sample rate must be one of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, or 48 kHz.  Also note that this option may leave a few extra bytes in a PADDING block as the exact size of the tags is not known until all files are processed.<P>
519                                 Note that this option cannot be used when encoding to standard output (stdout).
520                         </TD>
521                 </TR>
522                 <TR>
523                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
524                                 <TT>--cuesheet=FILENAME</TT>
525                         </TD>
526                         <TD>
527                                 Import the given cuesheet file and store it in a <A HREF="format.html#def_CUESHEET">CUESHEET</A> metadata block.  This option may only be used when encoding a single file.  A seekpoint will be added for each index point in the cuesheet to the <A HREF="format.html#def_SEEKTABLE">SEEKTABLE</A> unless <TT>--no-cued-seekpoints</TT> is specified.<P>
528                                 The cuesheet file must be of the sort written by <A HREF="http://www.goldenhawk.com/cdrwin.htm">CDRwin</A>, <A HREF="http://www.dcsoft.com/prod03.htm">CDRcue</A>, <A HREF="http://www.exactaudiocopy.de/">EAC</A>, et al.
529                         </TD>
530                 </TR>
531                 <TR>
532                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
533                                 <TT>--sector-align</TT>
534                         </TD>
535                         <TD>
536                                 Align encoding of multiple CD format WAVE files on sector boundaries.  This option is only allowed when encoding WAVE files, all of which have a 44.1kHz sample rate and 2 channels.  With <TT>--sector-align</TT>, the encoder will align the resulting .flac streams so that their lengths are even multiples of a CD sector (1/75th of a second, or 588 samples).  It does this by carrying over any partial sector at the end of each WAVE file to the next stream.  The last stream will be padded to alignment with zeroes.<P>
537                                 This option will have no effect if the files are already aligned (as is the normally the case with WAVE files ripped from a CD).  <TT><B>flac</B></TT> can only align a set of files given in one invocation of <TT><B>flac</B></TT>.<P>
538                                 <B>WARNING:</B> The ordering of files is important!  If you give a command like '<TT>flac --sector-align *.wav</TT>' the shell may not expand the wildcard to the order you expect.  To be safe you should '<TT>echo *.wav</TT>' first to confirm the order, or be explicit like '<TT>flac --sector-align 8.wav 9.wav 10.wav</TT>'.
539                         </TD>
540                 </TR>
541                 <TR>
542                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
543                                 <TT>-S {#|X|#x|#s}</TT>,<BR><TT>--seekpoint={#|X|#x|#s}</TT>
544                         </TD>
545                         <TD>
546                                 Include a point or points in a SEEKTABLE:<BR>
547                                 <UL>
548                                 <LI>
549                                         <TT>#&nbsp;</TT> : a specific sample number for a seek point
550                                 </LI>
551                                 <LI>
552                                         <TT>X&nbsp;</TT> : a placeholder point (always goes at the end of the SEEKTABLE)
553                                 </LI>
554                                 <LI>
555                                         <TT>#x</TT> : # evenly spaced seekpoints, the first being at sample 0
556                                 </LI>
557                                 <LI>
558                                         <TT>#s</TT> : a seekpoint every # seconds; # does not have to be a whole number, it can be, for example, <TT>9.5</TT>, meaning a seekpoint every 9.5 seconds
559                                 </LI>
560                                 </UL>
561                                 You may use many -S options; the resulting SEEKTABLE will be the unique-ified union of all such values.<BR>
562                                 With no -S options, flac defaults to '-S 10s'.  Use --no-seektable for no SEEKTABLE.<BR>
563                                 <B>NOTE:</B> -S #x and -S #s will not work if the encoder can't determine the input size before starting.<BR>
564                                 <B>NOTE:</B> if you use -S # and # is &gt;= 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>
565                         </TD>
566                 </TR>
567                 <TR>
568                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
569                                 <TT>-P #</TT>, <TT>--padding=#</TT>
570                         </TD>
571                         <TD>
572                                 Tell the encoder to write a <TT>PADDING</TT> metadata block of the given length (in bytes) after the <TT>STREAMINFO</TT> block.  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.  Note that the total length of the <TT>PADDING</TT> block will be 4 bytes longer than the length given because of the 4 metadata block header bytes.  You can force no <TT>PADDING</TT> block at all to be written with <TT>--no-padding</TT>.  The encoder writes a PADDING block of 4096 bytes by default.
573                         </TD>
574                 </TR>
575                 <TR>
576                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
577                                 <TT>-T FIELD=VALUE</TT>, <TT>--tag=FIELD=VALUE</TT>
578                         </TD>
579                         <TD>
580                                 Add a Vorbis comment.  The comment must adhere to the Vorbis comment spec; i.e. the FIELD must contain only legal characters, terminated by an 'equals' sign.  Make sure to quote the comment if necessary.  This option may appear more than once to add several comments.  NOTE: all tags will be added to all encoded files.
581                         </TD>
582                 </TR>
583                 <TR>
584                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
585                                 <TT>-b #</TT>, <TT>--blocksize=#</TT>
586                         </TD>
587                         <TD>
588                                 Specify the block size 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 reference encoder uses the same block size for the entire stream.
589                         </TD>
590                 </TR>
591                 <TR>
592                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
593                                 <TT>-m</TT>, <TT>--mid-side</TT>
594                         </TD>
595                         <TD>
596                                 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 &lt;= 16.
597                         </TD>
598                 </TR>
599                 <TR>
600                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
601                                 <TT>-M</TT>, <TT>--adaptive-mid-side</TT>
602                         </TD>
603                         <TD>
604                                 Enable adaptive 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).
605                         </TD>
606                 </TR>
607                 <TR>
608                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
609                                 <TT>-0 .. -8</TT>
610                         </TD>
611                         <TD>
612                                 Fastest compression .. highest compression.  The default is <TT>-5</TT>.
613                         </TD>
614                 </TR>
615                 <TR>
616                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
617                                 <TT>-0</TT>, <TT>--compression-level-0</TT>
618                         </TD>
619                         <TD>
620                                 Synonymous with <TT>-l 0 -b 1152 -r 2,2</TT>
621                         </TD>
622                 </TR>
623                 <TR>
624                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
625                                 <TT>-1</TT>, <TT>--compression-level-1</TT>
626                         </TD>
627                         <TD>
628                                 Synonymous with <TT>-l 0 -b 1152 -M -r 2,2</TT>
629                         </TD>
630                 </TR>
631                 <TR>
632                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
633                                 <TT>-2</TT>, <TT>--compression-level-2</TT>
634                         </TD>
635                         <TD>
636                                 Synonymous with <TT>-l 0 -b 1152 -m -r 3</TT>
637                         </TD>
638                 </TR>
639                 <TR>
640                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
641                                 <TT>-3</TT>, <TT>--compression-level-3</TT>
642                         </TD>
643                         <TD>
644                                 Synonymous with <TT>-l 6 -b 4608 -r 3,3</TT>
645                         </TD>
646                 </TR>
647                 <TR>
648                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
649                                 <TT>-4</TT>, <TT>--compression-level-4</TT>
650                         </TD>
651                         <TD>
652                                 Synonymous with <TT>-l 8 -b 4608 -M -r 3,3</TT>
653                         </TD>
654                 </TR>
655                 <TR>
656                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
657                                 <TT>-5</TT>, <TT>--compression-level-5</TT>
658                         </TD>
659                         <TD>
660                                 Synonymous with <TT>-l 8 -b 4608 -m -r 3,3</TT>
661                         </TD>
662                 </TR>
663                 <TR>
664                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
665                                 <TT>-6</TT>, <TT>--compression-level-6</TT>
666                         </TD>
667                         <TD>
668                                 Synonymous with <TT>-l 8 -b 4608 -m -r 4</TT>
669                         </TD>
670                 </TR>
671                 <TR>
672                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
673                                 <TT>-7</TT>, <TT>--compression-level-7</TT>
674                         </TD>
675                         <TD>
676                                 Synonymous with <TT>-l 8 -b 4608 -m -e -r 6</TT>
677                         </TD>
678                 </TR>
679                 <TR>
680                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
681                                 <TT>-8</TT>, <TT>--compression-level-8</TT>
682                         </TD>
683                         <TD>
684                                 Synonymous with <TT>-l 12 -b 4608 -m -e -r 6</TT>
685                         </TD>
686                 </TR>
687                 <TR>
688                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
689                                 <TT>--fast</TT>
690                         </TD>
691                         <TD>
692                                 Fastest compression.  Currently synonymous with <TT>-0</TT>
693                         </TD>
694                 </TR>
695                 <TR>
696                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
697                                 <TT>--best</TT>
698                         </TD>
699                         <TD>
700                                 Highest compression.  Currently synonymous with <TT>-8</TT>
701                         </TD>
702                 </TR>
703                 <TR>
704                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
705                                 <TT>-e</TT>,<BR><TT>--exhaustive-model-search</TT>
706                         </TD>
707                         <TD>
708                                 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%.
709                         </TD>
710                 </TR>
711                 <TR>
712                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
713                                 <TT>-l #</TT>, <TT>--max-lpc-order=#</TT>
714                         </TD>
715                         <TD>
716                                 Specifies the maximum LPC order.  This number must be &lt;= 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.
717                         </TD>
718                 </TR>
719                 <TR>
720                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
721                                 <TT>-q #</TT>,<BR><TT>--qlp-coeff-precision=#</TT>
722                         </TD>
723                         <TD>
724                                 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.
725                         </TD>
726                 </TR>
727                 <TR>
728                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
729                                 <TT>-p</TT>,<BR><TT>--qlp-coeff-precision-search</TT>
730                         </TD>
731                         <TD>
732                                 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.
733                         </TD>
734                 </TR>
735                 <TR>
736                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
737                                 <TT>-r [#,]#</TT>,<BR><TT>--rice-partition-order=[#,]#</TT>
738                         </TD>
739                         <TD>
740                                 Set the [min,]max residual partition order.  The min value defaults to 0 if unspecified.<P>
741                                 By default the encoder uses a single Rice parameter for the subframe's entire residual.  With this option, the residual is iteratively partitioned into 2^min# .. 2^max# pieces, each with its own Rice parameter.  Higher values of max# yield diminishing returns.  The most bang for the buck is usually with <B><TT>-r 2,2</TT></B> (more for higher block sizes).  This usually shaves off about 1.5%.  The technique tends to peak out about when blocksize/(2^n)=128.  Use <B><TT>-r 0,16</TT></B> to force the highest degree of optimization.
742                         </TD>
743                 </TR>
744         </TABLE>
745         </TD></TR></TABLE>
746         </P>
747         <P>
748         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
749         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
750                 <TR>
751                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
752                                 <A NAME="format_options"><FONT SIZE="+1"><B>Format Options</B></FONT></A>
753                         </TD>
754                 </TR>
755                 <TR>
756                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
757                                 <TT>--endian={big|little}</TT>
758                         </TD>
759                         <TD>
760                                 Specify big-endian or little-endian byte order in the raw file.
761                         </TD>
762                 </TR>
763                 <TR>
764                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
765                                 <TT>--channels=#</TT>
766                         </TD>
767                         <TD>
768                                 Specify the number of channels in the raw file.
769                         </TD>
770                 </TR>
771                 <TR>
772                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
773                                 <TT>--bps=#</TT>
774                         </TD>
775                         <TD>
776                                 Specify the number of bits per sample in the raw file.
777                         </TD>
778                 </TR>
779                 <TR>
780                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
781                                 <TT>--sample-rate=#</TT>
782                         </TD>
783                         <TD>
784                                 Specify the sample rate of the raw file.
785                         </TD>
786                 </TR>
787                 <TR>
788                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
789                                 <TT>--sign={signed|unsigned}</TT>
790                         </TD>
791                         <TD>
792                                 Specify that the samples in the raw file are signed or unsigned (the default is signed).
793                         </TD>
794                 </TR>
795                 <TR>
796                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
797                                 <TT>--force-aiff-format</TT>
798                         </TD>
799                         <TD>
800                                 Force the decoder to output AIFF format.  This option is not needed if the output filename (as set by -o) ends with .aiff.  Also, this option has no effect when encoding since input AIFF is auto-detected.
801                         </TD>
802                 </TR>
803                 <TR>
804                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
805                                 <TT>--force-raw-format</TT>
806                         </TD>
807                         <TD>
808                                 Treat the input file (or output file if decoding) as a raw file, regardless of the extension.
809                         </TD>
810                 </TR>
811         </TABLE>
812         </TD></TR></TABLE>
813         </P>
814         <P>
815         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
816         <TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
817                 <TR>
818                         <TD COLSPAN="2" BGCOLOR="#D3D4C5">
819                                 <A NAME="format_options"><FONT SIZE="+1"><B>Negative Options</B></FONT></A>
820                         </TD>
821                 </TR>
822                 <TR>
823                         <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
824                                 <TT>--no-adaptive-mid-side</TT><BR>
825                                 <TT>--no-decode-through-errors</TT><BR>
826                                 <TT>--no-delete-input-file</TT><BR>
827                                 <TT>--no-escape-coding</TT><BR>
828                                 <TT>--no-exhaustive-model-search</TT><BR>
829                                 <TT>--no-lax</TT><BR>
830                                 <TT>--no-mid-side</TT><BR>
831                                 <TT>--no-ogg</TT><BR>
832                                 <TT>--no-padding</TT><BR>
833                                 <TT>--no-qlp-coeff-precision-search</TT><BR>
834                                 <TT>--no-residual-gnuplot</TT><BR>
835                                 <TT>--no-residual-text</TT><BR>
836                                 <TT>--no-sector-align</TT><BR>
837                                 <TT>--no-seektable</TT><BR>
838                                 <TT>--no-silent</TT><BR>
839                                 <TT>--no-verify</TT>
840                         </TD>
841                         <TD>
842                                 can all be used to turn off a particular option.
843                         </TD>
844                 </TR>
845         </TABLE>
846         </TD></TR></TABLE>
847         </P>
848         </FONT>
849         </TD></TR>
850         </TABLE>
851         <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>
852 </TD></TR>
853 </TABLE>
854
855
856 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
857 <TR><TD>
858         <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>
859         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
860                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
861                 <A NAME="metaflac"><B><FONT SIZE="+2">metaflac</FONT></B>
862                 </FONT></TD></TR>
863         </TABLE>
864         <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>
865         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
866         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
867         <P>
868                 <B><TT>metaflac</TT></B> is the command-line <TT>.flac</TT> file metadata editor.  You can use it to list the contents of blocks, delete or insert blocks, and manage padding.
869         </P>
870         <P>
871                 The HTML documentation for <B><TT>metaflac</TT></B> is currently being rewritten, but the usage screen should explain it pretty well, and there is a man page.  Do <TT>metaflac --help</TT> to see the full usage.
872         </P>
873         </FONT>
874         </TD></TR>
875         </TABLE>
876         <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>
877 </TD></TR>
878 </TABLE>
879
880
881 <A NAME="plugins"></A>
882 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
883 <TR><TD>
884         <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>
885         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
886                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
887                 <A NAME="xmms_plugin"><B><FONT SIZE="+2">xmms plugin</FONT></B></A>
888                 </FONT></TD></TR>
889         </TABLE>
890         <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>
891         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
892         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
893         <P>
894                 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.
895         </P>
896         </FONT>
897         </TD></TR>
898         </TABLE>
899         <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>
900 </TD></TR>
901 </TABLE>
902
903
904 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
905 <TR><TD>
906         <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>
907         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
908                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
909                 <A NAME="winamp2_plugin"><B><FONT SIZE="+2">winamp2 plugin</FONT></B>
910                 </FONT></TD></TR>
911         </TABLE>
912         <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>
913         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
914         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
915         <P>
916                 The Winamp plugin should work for both Winamp2 and Winamp5.  If you are using Winamp 2.x, 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.
917         </P>
918         </FONT>
919         </TD></TR>
920         </TABLE>
921         <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>
922 </TD></TR>
923 </TABLE>
924
925
926 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
927 <TR><TD>
928         <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>
929         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
930                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
931                 <A NAME="bugs"><B><FONT SIZE="+2">known bugs</FONT></B>
932                 </FONT></TD></TR>
933         </TABLE>
934         <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>
935         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
936         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
937         <P>
938                 Bug tracking is done on the Sourceforge project page <A HREF="http://sourceforge.net/bugs/?group_id=13478">here</A>.  If you submit a bug, make sure and provide an email contact or use the Monitor feature.
939         </P>
940         <P>
941                 The following are major known bugs in the current (1.1.0) release:
942         </P>
943         <P>
944                 <UL>
945                         <LI>
946                                 If you change the FLAC configuration options in the XMMS plugin while a FLAC file is playing, it can cause a crash or other bad things to happen.
947                         </LI>
948                 </UL>
949         </P>
950         <P>
951                 The following are major known bugs in the 1.0.4:
952         </P>
953         <P>
954                 <UL>
955                         <LI>
956                                 All decoders prior to and including 1.0.4 have a bug that prevents them from skipping unknown metadata blocks properly.  A FLAC file created by flac 1.1.0 containing a CUESHEET metadata block will not decode in 1.0.x decoders.
957                         </LI>
958                         <LI>
959                                 <B><TT>metaflac</TT></B> has a bug where, if --import-vc-from is used on a FLAC file that has no Vorbis comment block, the FLAC file can be corrupted.  All FLAC files generated by 1.0.4 have a Vorbis comment block added automatically but files from 1.0.3 and before do not.  This is fixed in CVS.
960                         </LI>
961                         <LI>
962                                 There is an odd bug in <B><TT>metaflac</TT></B> such that you must always use the <TT>--dont-use-padding</TT> option with <TT>--add-padding</TT> or the padding block won't be written.  This is fixed in CVS.
963                         </LI>
964                 </UL>
965         </P>
966         </FONT>
967         </TD></TR>
968         </TABLE>
969         <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>
970 </TD></TR>
971 </TABLE>
972
973
974 <TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="5" BORDER="0">
975 <TR><TD>
976         <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>
977         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#D3D4C5">
978                 <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
979                 <A NAME="monkey"><B><FONT SIZE="+2">monkey</FONT></B>
980                 </FONT></TD></TR>
981         </TABLE>
982         <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>
983         <TABLE CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BORDER="0" BGCOLOR="#EEEED4">
984         <TR><TD><FONT FACE="Lucida,Verdana,Helvetica,Arial">
985         <P>
986                 Monkey's Audio comes with a nice GUI that many people are familiar with.  It supports some external encoders, but not FLAC.  However, the FLAC Windows distribution comes with a utility that allows you to replace one the of the supported lossless external codecs with FLAC.  Here's how:
987                 <UL>
988                         <LI>Copy <B><TT>flac.exe</TT></B> and <B><TT>flac_ren.exe</TT></B> to the <B><TT>External/</TT></B> directory of the Monkey's Audio installation.</LI>
989                         <LI>
990                                 Choose a supported encoder to replace:
991                                 <UL>
992                                         <LI>Shorten - copy <B><TT>flac_mac.exe</TT></B> on top of <B><TT>External/shortn32.exe</TT></B></LI>
993                                         <LI>WavPack - copy <B><TT>flac_mac.exe</TT></B> on top of both <B><TT>External/wavpack.exe</TT></B> and <B><TT>External/wvunpack.exe</TT></B></LI>
994                                         <LI>RKAU - copy <B><TT>flac_mac.exe</TT></B> on top of <B><TT>External/rkau.exe</TT></B></LI>
995                                 </UL>
996                                 If you choose WavPack you will also be able to use the WavPack Configuration menu to add flac options.
997                         </LI>
998                         <LI>Now you can encode FLAC files as if you were using the replaced encoder.  The renamed <B><TT>flac_mac.exe</TT></B> utility will call <B><TT>flac.exe</TT></B> and afterwards, <B><TT>flac_ren.exe</TT></B> will rename the resulting file to have the .flac extension.</LI>
999                 </UL>
1000         </P>
1001         <P>
1002                 Other front-ends may be wedged in the same way; if you have one in mind, post it to the <A HREF="http://lists.sourceforge.net/lists/listinfo/flac-dev">flac-dev</A> mailing list.
1003         </P>
1004         </FONT>
1005         </TD></TR>
1006         </TABLE>
1007         <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>
1008 </TD></TR>
1009 </TABLE>
1010
1011
1012 </CENTER>
1013
1014 <P>&nbsp;Copyright (c) 2000,2001,2002,2003,2004 Josh Coalson</P>
1015
1016 </BODY>
1017 </HTML>