blob: aa6260852c356063b9f593deeaabaaca6541f5a4 [file] [log] [blame]
Josh Coalsonca30b372002-07-03 05:49:13 +00001.\" This manpage has been automatically generated by docbook2man
2.\" from a DocBook document. This tool can be found at:
3.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
4.\" Please send any bug reports, improvements, comments, patches,
5.\" etc. to Steve Cheng <steve@ggi-project.org>.
Josh Coalson47a81d12002-12-03 06:32:38 +00006.TH "FLAC" "1" "02 December 2002" "" ""
Josh Coalsonca30b372002-07-03 05:49:13 +00007.SH NAME
8flac \- Free Lossless Audio Codec
9.SH SYNOPSIS
10
Josh Coalsone6eff862002-08-13 21:18:27 +000011\fBflac\fR [ \fB\fIOPTION\fB\fR ] \fB\fIinfile\fB\fR \fB\fI...\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +000012
13.SH "DESCRIPTION"
14.PP
15This manual page documents briefly the
16\fBflac\fR command.
17.PP
18This manual page was written for the Debian GNU/Linux
19distribution because the original program does not have a
20manual page. Instead, it has documentation in HTML
21format; see below.
22.SH "OPTIONS"
23.PP
24A summary of options is included below. For a complete
25description, see the HTML documentation.
26.SS "GENERIC OPTIONS"
27.TP
Josh Coalson3cf909c2002-08-20 03:57:59 +000028\fB-v, --version \fR
29Show the flac version number
30.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000031\fB-h, --help \fR
32Show basic usage and a list of all options
Josh Coalsonca30b372002-07-03 05:49:13 +000033.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000034\fB-H, --explain \fR
35Show detailed explanation of usage and all options
Josh Coalsonca30b372002-07-03 05:49:13 +000036.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000037\fB-d, --decode \fR
38Decode (the default behavior is to encode)
Josh Coalsonca30b372002-07-03 05:49:13 +000039.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000040\fB-t, --test \fR
Josh Coalsonca30b372002-07-03 05:49:13 +000041Test a flac encoded file (same as -d
42except no decoded file is written)
43.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000044\fB-a, --analyze \fR
Josh Coalsonca30b372002-07-03 05:49:13 +000045Analyze a flac encoded file (same as -d
46except an analysis file is written)
47.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000048\fB-c, --stdout \fR
49Write output to stdout
Josh Coalsonca30b372002-07-03 05:49:13 +000050.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000051\fB-s, --silent \fR
52Silent mode (do not write runtime
53encode/decode statistics to stderr)
54.TP
55\fB-o \fIfilename\fB, --output-name=\fIfilename\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +000056Force the output file name (usually flac just
57changes the extension). May only be used when
58encoding a single file. May not be used in
59conjunction with --output-prefix.
60.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000061\fB--output-prefix=\fIstring\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +000062Prefix each output file name with the given
Josh Coalsone6eff862002-08-13 21:18:27 +000063string. This can be useful for encoding or decoding
Josh Coalsonca30b372002-07-03 05:49:13 +000064files to a different directory. Make sure if your
65string is a path name that it ends with a trailing
66`/' (slash).
67.TP
68\fB--delete-input-file \fR
69Automatically delete the input file after a
70successful encode or decode. If there was an
71error (including a verify error) the input file
72is left intact.
73.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000074\fB--skip=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +000075Skip the specified number of samples at the
76beginning of the input file (can be used for both
77encoding and decoding)
Josh Coalsonf3911322002-09-20 05:53:10 +000078.TP
79\fB--ogg\fR
80When encoding, generate Ogg-FLAC output instead
81of native-FLAC. Ogg-FLAC streams are FLAC streams
82wrapped in an Ogg transport layer. The resulting
83file should have an '.ogg' extension and will still
84be decodable by flac.
85
86When decoding, force the input to be treated as
87Ogg-FLAC. This is useful when piping input from
88stdin or when the filename does not end in '.ogg'.
89.TP
90\fB--serial-number=\fI#\fB\fR
91When used with --ogg, specifies the serial
92number to use for the FLAC stream. When encoding and
93no serial number is given, flac uses '0'. When
94decoding and no number is given, flac uses the serial
95number of the first page.
Josh Coalsonca30b372002-07-03 05:49:13 +000096.SS "ANALYSIS OPTIONS"
97.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000098\fB--residual-text \fR
Josh Coalsonca30b372002-07-03 05:49:13 +000099Includes the residual signal in the analysis
100file. This will make the file very big, much
101larger than even the decoded file.
102.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000103\fB--residual-gnuplot \fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000104Generates a gnuplot file for every subframe;
105each file will contain the residual distribution
106of the subframe. This will create a lot of
107files.
108.SS "DECODING OPTIONS"
109.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000110\fB-F, --decode-through-errors \fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000111By default flac stops decoding with an error
112and removes the partially decoded file if it
113encounters a bitstream error. With -F, errors are
114still printed but flac will continue decoding to
115completion. Note that errors may cause the decoded
116audio to be missing some samples or have silent
117sections.
118.SS "ENCODING OPTIONS"
119.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000120\fB-V, --verify\fR
121Verify a correct encoding by decoding the
122output in parallel and comparing to the
123original
124.TP
Josh Coalsonca30b372002-07-03 05:49:13 +0000125\fB--lax\fR
126Allow encoder to generate non-Subset
127files.
128.TP
Josh Coalson853d79c2002-10-31 06:16:45 +0000129\fB--replay-gain\fR
130Calculate ReplayGain values and store in
131Vorbis comments, similar to vorbisgain. Title
132gains/peaks will be computed for each input
133file, and an album gain/peak will be computed
134for all files. All input files must have the
135same resolution, sample rate, and number of
136channels. Only mono and stereo files are
137allowed, and the sample rate must be one of
1388, 11.025, 12, 16, 22.05, 24, 32, 44.1, or 48
139kHz. Also note that this option may leave a
140few extra bytes in a PADDING block as the exact
141size of the tags is not known until all files
142are processed. Note that this option cannot be
143used when encoding to standard output (stdout).
144.TP
Josh Coalsonca30b372002-07-03 05:49:13 +0000145\fB--sector-align\fR
146Align encoding of multiple CD format WAVE
147files on sector boundaries. See the HTML
148documentation for more information.
149.TP
Josh Coalson47a81d12002-12-03 06:32:38 +0000150\fB-S {\fI#\fB|\fIX\fB|\fI#x\fB|\fI#s\fB}, --seekpoint={\fI#\fB|\fIX\fB|\fI#x\fB|\fI#s\fB}\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000151Include a point or points in a SEEKTABLE. Using #,
152a seek point at that sample number is added. Using
153X, a placeholder point is added at the end of a the
154table. Using #x, # evenly spaced seek points will
Josh Coalson47a81d12002-12-03 06:32:38 +0000155be added, the first being at sample 0. Using #s, a
156seekpoint will be added every # seconds (# does not
157have to be a whole number; it can be, for example, 9.5,
158meaning a seekpoint every 9.5 seconds). You may use
Josh Coalsonca30b372002-07-03 05:49:13 +0000159many -S options; the resulting SEEKTABLE will be the
160unique-ified union of all such values. With no -S
Josh Coalson853d79c2002-10-31 06:16:45 +0000161options, flac defaults to '-S 100x'. Use --no-seektable
Josh Coalson47a81d12002-12-03 06:32:38 +0000162for no SEEKTABLE. Note: '-S #x' and '-S #s' will not
163work if the encoder can't determine the input size before
Josh Coalsonca30b372002-07-03 05:49:13 +0000164starting. Note: if you use '-S #' and # is >=
165samples in the input, there will be either no seek
166point entered (if the input size is determinable
167before encoding starts) or a placeholder point (if
168input size is not determinable).
169.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000170\fB-P \fI#\fB, --padding=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000171Tell the encoder to write a PADDING metadata
172block of the given length (in bytes) after the
173STREAMINFO block. This is useful if you plan to
174tag the file later with an APPLICATION block;
175instead of having to rewrite the entire file later
176just to insert your block, you can write directly
177over the PADDING block. Note that the total length
178of the PADDING block will be 4 bytes longer than
179the length given because of the 4 metadata block
180header bytes. You can force no PADDING block at
Josh Coalson853d79c2002-10-31 06:16:45 +0000181all to be written with --no-padding, which is the
182default.
Josh Coalsonca30b372002-07-03 05:49:13 +0000183.TP
Josh Coalsonf3911322002-09-20 05:53:10 +0000184\fB-T \fIFIELD=VALUE\fB, --tag=\fIFIELD=VALUE\fB\fR
185Add a Vorbis comment. The comment must adhere
186to the Vorbis comment spec; i.e. the FIELD must
187contain only legal characters, terminated by an
188\&'equals' sign. Make sure to quote the comment if
189necessary. This option may appear more than once
190to add several comments. NOTE: all tags will be
191added to all encoded files.
192.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000193\fB-b \fI#\fB, --blocksize=\fI#\fB\fR
194Specify the block size in samples. The
195default is 1152 for -l 0, else 4608; must be one of
196192, 576, 1152, 2304, 4608, 256, 512, 1024, 2048,
1974096, 8192, 16384, or 32768 (unless --lax is used)
Josh Coalsonca30b372002-07-03 05:49:13 +0000198.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000199\fB-m, --mid-side\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000200Try mid-side coding for each frame (stereo
201input only)
202.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000203\fB-M, --adaptive-mid-side\fR
204Adaptive mid-side coding for all frames (stereo
Josh Coalsonca30b372002-07-03 05:49:13 +0000205input only)
206.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000207\fB-0..-8, --compression-level-0..--compression-level-8\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000208Fastest compression..highest compression
209(default is -5). These are synonyms for other
210options:
211.RS
212.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000213\fB-0, --compression-level-0\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000214Synonymous with -l 0 -b 1152 -r 2,2
215.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000216\fB-1, --compression-level-1\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000217Synonymous with -l 0 -b 1152 -M -r 2,2
218.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000219\fB-2, --compression-level-2\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000220Synonymous with -l 0 -b 1152 -m -r 3
221.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000222\fB-3, --compression-level-3\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000223Synonymous with -l 6 -b 4608 -r 3,3
224.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000225\fB-4, --compression-level-4\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000226Synonymous with -l 8 -b 4608 -M -r 3,3
227.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000228\fB-5, --compression-level-5\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000229Synonymous with -l 8 -b 4608 -m -r 3,3
230.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000231\fB-6, --compression-level-6\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000232Synonymous with -l 8 -b 4608 -m -r 4
233.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000234\fB-7, --compression-level-7\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000235Synonymous with -l 8 -b 4608 -m -e -r 6
236.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000237\fB-8, --compression-level-8\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000238Synonymous with -l 12 -b 4608 -m -e -r 6
239.RE
240.TP
241\fB--fast\fR
242Fastest compression. Currently
243synonymous with -0.
244.TP
245\fB--best\fR
246Highest compression. Currently
247synonymous with -8.
248.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000249\fB-e, --exhaustive-model-search\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000250Do exhaustive model search
251(expensive!)
252.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000253\fB-l \fI#\fB, --max-lpc-order=\fI#\fB\fR
254Set the maximum LPC order; 0 means use only the fixed predictors
Josh Coalsonca30b372002-07-03 05:49:13 +0000255.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000256\fB-p, --qlp-coeff-precision-search\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000257Do exhaustive search of LP coefficient
Josh Coalsone6eff862002-08-13 21:18:27 +0000258quantization (expensive!). Overrides -q;
Josh Coalsonca30b372002-07-03 05:49:13 +0000259does nothing if using -l 0
260.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000261\fB-q \fI#\fB, --qlp-coeff-precision=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000262Precision of the quantized linear-predictor
263coefficients, 0 => let encoder decide (min is 5,
264default is 0)
265.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000266\fB-r [\fI#\fB,]\fI#\fB, --rice-partition-order=[\fI#\fB,]\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000267Set the [min,]max residual partition order
268(0..16). min defaults to 0 if unspecified. Default
269is -r 3,3.
Josh Coalsonca30b372002-07-03 05:49:13 +0000270.SS "FORMAT OPTIONS"
271.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000272\fB--endian={\fIbig\fB|\fIlittle\fB}\fR
273Set the byte order for samples
Josh Coalsonca30b372002-07-03 05:49:13 +0000274.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000275\fB--channels=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000276Set number of channels.
277.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000278\fB--bps=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000279Set bits per sample.
280.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000281\fB--sample-rate=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000282Set sample rate (in Hz).
283.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000284\fB--sign={\fIsigned\fB|\fIunsigned\fB}\fR
285Set the sign of samples (the default is signed).
Josh Coalsonca30b372002-07-03 05:49:13 +0000286.TP
Josh Coalsoneb209032002-08-20 20:37:26 +0000287\fB--force-raw-format\fR
288Force input (when encoding) or output (when decoding)
289to be treated as raw samples (even if filename ends
Josh Coalsonca30b372002-07-03 05:49:13 +0000290in \fI.wav\fR).
Josh Coalsone6eff862002-08-13 21:18:27 +0000291.SS "NEGATIVE OPTIONS"
292.TP
293\fB--no-adaptive-mid-side\fR
294.TP
295\fB--no-decode-through-errors\fR
296.TP
297\fB--no-delete-input-file\fR
298.TP
299\fB--no-escape-coding\fR
300.TP
301\fB--no-exhaustive-model-search\fR
302.TP
303\fB--no-lax\fR
304.TP
305\fB--no-mid-side\fR
306.TP
307\fB--no-ogg\fR
308.TP
309\fB--no-padding\fR
310.TP
311\fB--no-qlp-coeff-precision-search\fR
312.TP
313\fB--no-residual-gnuplot\fR
314.TP
315\fB--no-residual-text\fR
316.TP
317\fB--no-sector-align\fR
318.TP
319\fB--no-seektable\fR
320.TP
321\fB--no-silent\fR
322.TP
323\fB--no-verify\fR
324These flags can be used to invert the sense
325of the corresponding normal option.
Josh Coalsonca30b372002-07-03 05:49:13 +0000326.SH "SEE ALSO"
327.PP
328The programs are documented fully by HTML format
329documentation, available in
330\fI/usr/share/doc/flac/html\fR on
331Debian GNU/Linux systems.
332.SH "AUTHOR"
333.PP
334This manual page was written by Matt Zimmerman <mdz@debian.org> for
335the Debian GNU/Linux system (but may be used by others).