blob: 842b24048f231ad59fd8b7a1d47d8601ed9c7598 [file] [log] [blame]
Josh Coalsonbb7f6b92000-12-10 04:09:52 +00001<!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>
Josh Coalsonf6b52462001-03-02 21:21:08 +000030 <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>
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000031 <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>
Josh Coalson64e8ef72001-02-23 23:27:59 +000059 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>.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000060 </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>
Josh Coalson57b65bb2001-03-22 23:35:22 +0000106 <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.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000107 </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>
Josh Coalson57b65bb2001-03-22 23:35:22 +0000112 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.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000113 </P>
114 <P>
Josh Coalsonab477602001-01-26 22:37:10 +0000115 <B><TT>flac</TT></B> will be invoked one of four ways, depending on whether you are encoding, decoding, testing, or analyzing:
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000116 <UL>
117 <LI>
Josh Coalson57b65bb2001-03-22 23:35:22 +0000118 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
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000119 </LI>
120 <LI>
Josh Coalson57b65bb2001-03-22 23:35:22 +0000121 Decoding: flac -d [-s] [--skip #] [<I><A HREF="#format_options">&lt;format-options&gt;</A></I>] inputfile outputfile
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000122 </LI>
Josh Coalsondfad4612001-01-13 00:32:32 +0000123 <LI>
124 Testing: flac -t [-s] inputfile
125 </LI>
Josh Coalsonab477602001-01-26 22:37:10 +0000126 <LI>
Josh Coalson57b65bb2001-03-22 23:35:22 +0000127 Analyzing: flac -a [-s] [--skip #] [<I><A HREF="#analysis_options">&lt;analysis-options&gt;</A></I>] inputfile outputfile
Josh Coalsonab477602001-01-26 22:37:10 +0000128 </LI>
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000129 </UL>
130 </P>
131 <P>
Josh Coalson64e8ef72001-02-23 23:27:59 +0000132 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.
Josh Coalsondfad4612001-01-13 00:32:32 +0000133 </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.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000136 </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">
Josh Coalson57b65bb2001-03-22 23:35:22 +0000142 <A NAME="general_options"><FONT SIZE="+1"><B>General Options</B></FONT></A>
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000143 </TD>
144 </TR>
145 <TR>
146 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
147 -d
148 </TD>
149 <TD>
Josh Coalsondfad4612001-01-13 00:32:32 +0000150 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.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000159 </TD>
160 </TR>
161 <TR>
162 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
Josh Coalsonab477602001-01-26 22:37:10 +0000163 -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">
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000171 -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>
Josh Coalsondfad4612001-01-13 00:32:32 +0000182 Skip over the first # of samples of the input. This works for both encoding and decoding, but not testing.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000183 </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">
Josh Coalson57b65bb2001-03-22 23:35:22 +0000193 <A NAME="analysis_options"><FONT SIZE="+1"><B>Analysis Options</B></FONT></A>
Josh Coalson0b7fde92001-03-15 23:25:54 +0000194 </TD>
195 </TR>
196 <TR>
197 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
Josh Coalsone43d5552001-03-16 23:33:00 +0000198 --a-rtext
Josh Coalson0b7fde92001-03-15 23:25:54 +0000199 </TD>
200 <TD>
Josh Coalsone43d5552001-03-16 23:33:00 +0000201 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.
Josh Coalson0b7fde92001-03-15 23:25:54 +0000210 </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">
Josh Coalson57b65bb2001-03-22 23:35:22 +0000220 <A NAME="encoding_options"><FONT SIZE="+1"><B>Encoding Options</B></FONT></A>
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000221 </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">
Josh Coalson99b44c22001-04-16 23:18:06 +0000233 -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">
Josh Coalsonbd85fd62001-02-23 21:26:05 +0000256 -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">
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000264 -b #
265 </TD>
266 <TD>
Josh Coalson99b44c22001-04-16 23:18:06 +0000267 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.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000268 </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">
Josh Coalson5a0e0fa2001-01-28 09:47:22 +0000280 -M
281 </TD>
282 <TD>
Josh Coalson11ce4e02001-01-28 09:50:26 +0000283 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).
Josh Coalson5a0e0fa2001-01-28 09:47:22 +0000284 </TD>
285 </TR>
286 <TR>
287 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000288 -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>
Josh Coalson99b44c22001-04-16 23:18:06 +0000299 Synonymous with -l 0 -b 1152
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000300 </TD>
301 </TR>
302 <TR>
303 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
304 -1
305 </TD>
306 <TD>
Josh Coalson99b44c22001-04-16 23:18:06 +0000307 Synonymous with -l 0 -b 1152 -M
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000308 </TD>
309 </TR>
310 <TR>
311 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
312 -2
313 </TD>
314 <TD>
Josh Coalson99b44c22001-04-16 23:18:06 +0000315 Synonymous with -l 0 -b 1152 -m -r 2
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000316 </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>
Josh Coalson99b44c22001-04-16 23:18:06 +0000331 Synonymous with -l 8 -b 4608
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000332 </TD>
333 </TR>
334 <TR>
335 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
336 -5
337 </TD>
338 <TD>
Josh Coalson99b44c22001-04-16 23:18:06 +0000339 Synonymous with -l 8 -b 4608 -M
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000340 </TD>
341 </TR>
342 <TR>
343 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
344 -6
345 </TD>
346 <TD>
Josh Coalson99b44c22001-04-16 23:18:06 +0000347 Synonymous with -l 8 -b 4608 -m -r 4
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000348 </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>
Josh Coalson99b44c22001-04-16 23:18:06 +0000363 Synonymous with -l 32 -b 4608 -m -r 4
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000364 </TD>
365 </TR>
366 <TR>
367 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
368 -9
369 </TD>
370 <TD>
Josh Coalson60f77d72001-04-25 02:16:36 +0000371 Synonymous with -l 32 -b 4608 -m -e -r 16 -p. This is painfully slow but gives you the maximum compression <B><TT>flac</TT></B> can do for a given blocksize.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000372 </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>
Josh Coalsone665f2d2001-02-08 00:29:58 +0000403 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.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000404 </TD>
405 </TR>
406 <TR>
407 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
408 -r #
409 </TD>
410 <TD>
Josh Coalson60f77d72001-04-25 02:16:36 +0000411 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 16</TT></B> to force the highest degree of optimization.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000412 </TD>
413 </TR>
414 <TR>
415 <TD NOWRAP ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
Josh Coalsoned840cd2000-12-22 22:43:50 +0000416 -V
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000417 </TD>
418 <TD>
Josh Coalsoned840cd2000-12-22 22:43:50 +0000419 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>
Josh Coalson99b44c22001-04-16 23:18:06 +0000426 -S-, -m-, -e-, -p-, -V-, --lax- can all be used to turn off a particular option.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000427 </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">
Josh Coalson57b65bb2001-03-22 23:35:22 +0000437 <A NAME="format_options"><FONT SIZE="+1"><B>Format Options</B></FONT></A>
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000438 </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">
Josh Coalson64e8ef72001-02-23 23:27:59 +0000512 <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">
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000545 <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>
Josh Coalson64e8ef72001-02-23 23:27:59 +0000552 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.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000553 </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>
Josh Coalson64e8ef72001-02-23 23:27:59 +0000574 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.
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000575 </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
Josh Coalson4c21cc82001-01-26 22:10:57 +0000584<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>
Josh Coalson2d647902001-04-24 22:24:22 +0000596 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, please provide an email contact and/or use the Monitor feature.
Josh Coalson4c21cc82001-01-26 22:10:57 +0000597 </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
Josh Coalsonbb7f6b92000-12-10 04:09:52 +0000606</CENTER>
607
608</BODY>
609</HTML>