blob: b724b7fa4b576cd40614c4e47c7622c592480707 [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>.
6.TH "FLAC" "1" "02 July 2002" "" ""
7.SH NAME
8flac \- Free Lossless Audio Codec
9.SH SYNOPSIS
10
11\fBflac\fR [ \fB\fIOPTION\fB\fR] \fB\fIinfile\fB\fR \fB\fI...\fB\fR
12
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
28\fB-H \fR
29Show detailed help screen
30.TP
31\fB-d \fR
32Decode (default behavior is encode)
33.TP
34\fB-c \fR
35Encode from standard input, or decode to
36standard output
37.TP
38\fB-t \fR
39Test a flac encoded file (same as -d
40except no decoded file is written)
41.TP
42\fB-a \fR
43Analyze a flac encoded file (same as -d
44except an analysis file is written)
45.TP
46\fB-s \fR
47Silent mode (do not write runtime
48encode/decode statistics to stdout)
49.TP
50\fB-o \fIfilename\fB\fR
51Force the output file name (usually flac just
52changes the extension). May only be used when
53encoding a single file. May not be used in
54conjunction with --output-prefix.
55.TP
56\fB--output-prefix \fIstring\fB\fR
57Prefix each output file name with the given
58string. This can be useful for encoding/decoding
59files to a different directory. Make sure if your
60string is a path name that it ends with a trailing
61`/' (slash).
62.TP
63\fB--delete-input-file \fR
64Automatically delete the input file after a
65successful encode or decode. If there was an
66error (including a verify error) the input file
67is left intact.
68.TP
69\fB--skip \fIsamples\fB\fR
70Skip the specified number of samples at the
71beginning of the input file (can be used for both
72encoding and decoding)
73.SS "ANALYSIS OPTIONS"
74.TP
75\fB--a-rtext \fR
76Includes the residual signal in the analysis
77file. This will make the file very big, much
78larger than even the decoded file.
79.TP
80\fB--a-rgp \fR
81Generates a gnuplot file for every subframe;
82each file will contain the residual distribution
83of the subframe. This will create a lot of
84files.
85.SS "DECODING OPTIONS"
86.TP
87\fB-F \fR
88By default flac stops decoding with an error
89and removes the partially decoded file if it
90encounters a bitstream error. With -F, errors are
91still printed but flac will continue decoding to
92completion. Note that errors may cause the decoded
93audio to be missing some samples or have silent
94sections.
95.SS "ENCODING OPTIONS"
96.TP
97\fB--ogg\fR
98When encoding, generate Ogg-FLAC output instead
99of native-FLAC. Ogg-FLAC streams are FLAC streams
100wrapped in an Ogg transport layer. The resulting
101file should have an '.ogg' extension and will still
102be decodable by flac.
103
104When decoding, force the input to be treated as
105Ogg-FLAC. This is useful when piping input from
106stdin or when the filename does not end in '.ogg'.
107.TP
108\fB--lax\fR
109Allow encoder to generate non-Subset
110files.
111.TP
112\fB--sector-align\fR
113Align encoding of multiple CD format WAVE
114files on sector boundaries. See the HTML
115documentation for more information.
116.TP
117\fB-S \fI{ # | X | #x }\fB\fR
118Include a point or points in a SEEKTABLE. Using #,
119a seek point at that sample number is added. Using
120X, a placeholder point is added at the end of a the
121table. Using #x, # evenly spaced seek points will
122be added, the first being at sample 0. You may use
123many -S options; the resulting SEEKTABLE will be the
124unique-ified union of all such values. With no -S
125options, flac defaults to '-S 100x'. Use -S- for
126no SEEKTABLE. Note: '-S #x' will not work if the
127encoder can't determine the input size before
128starting. Note: if you use '-S #' and # is >=
129samples in the input, there will be either no seek
130point entered (if the input size is determinable
131before encoding starts) or a placeholder point (if
132input size is not determinable).
133.TP
134\fB-P \fIbytes\fB\fR
135Tell the encoder to write a PADDING metadata
136block of the given length (in bytes) after the
137STREAMINFO block. This is useful if you plan to
138tag the file later with an APPLICATION block;
139instead of having to rewrite the entire file later
140just to insert your block, you can write directly
141over the PADDING block. Note that the total length
142of the PADDING block will be 4 bytes longer than
143the length given because of the 4 metadata block
144header bytes. You can force no PADDING block at
145all to be written with -P-, which is the default.
146.TP
147\fB-b \fIblocksize\fB\fR
148Default is 1152 for -l 0, else 4608; must be
149192/576/1152/2304/4608/256/512/1024/2048/4096/8192/16384/32768
150(unless --lax is used)
151.TP
152\fB-m\fR
153Try mid-side coding for each frame (stereo
154input only)
155.TP
156\fB-M\fR
157Loose mid-side coding for all frames (stereo
158input only)
159.TP
160\fB-0..-8\fR
161Fastest compression..highest compression
162(default is -5). These are synonyms for other
163options:
164.RS
165.TP
166\fB-0\fR
167Synonymous with -l 0 -b 1152 -r 2,2
168.TP
169\fB-1\fR
170Synonymous with -l 0 -b 1152 -M -r 2,2
171.TP
172\fB-2\fR
173Synonymous with -l 0 -b 1152 -m -r 3
174.TP
175\fB-3\fR
176Synonymous with -l 6 -b 4608 -r 3,3
177.TP
178\fB-4\fR
179Synonymous with -l 8 -b 4608 -M -r 3,3
180.TP
181\fB-5\fR
182Synonymous with -l 8 -b 4608 -m -r 3,3
183.TP
184\fB-6\fR
185Synonymous with -l 8 -b 4608 -m -r 4
186.TP
187\fB-7\fR
188Synonymous with -l 8 -b 4608 -m -e -r 6
189.TP
190\fB-8\fR
191Synonymous with -l 12 -b 4608 -m -e -r 6
192.RE
193.TP
194\fB--fast\fR
195Fastest compression. Currently
196synonymous with -0.
197.TP
198\fB--best\fR
199Highest compression. Currently
200synonymous with -8.
201.TP
202\fB-e\fR
203Do exhaustive model search
204(expensive!)
205.TP
206\fB-E\fR
207Do escape coding in the entropy coder. This
208causes the encoder to use an unencoded representation
209of the residual in a partition if it is smaller. It
210increases the runtime and usually results in an
211improvement of less than 1%.
212.TP
213\fB-l \fImax_lpc_order\fB\fR
2140 => use only fixed predictors
215.TP
216\fB-p\fR
217Do exhaustive search of LP coefficient
218quantization (expensive!). Overrides -q,
219does nothing if using -l 0
220.TP
221\fB-q \fIbits\fB\fR
222Precision of the quantized linear-predictor
223coefficients, 0 => let encoder decide (min is 5,
224default is 0)
225.TP
226\fB-r \fI[level,]level\fB\fR
227Set the [min,]max residual partition order
228(0..16). min defaults to 0 if unspecified. Default
229is -r 3,3.
230.TP
231\fB-V\fR
232Verify a correct encoding by decoding the
233output in parallel and comparing to the
234original
235.TP
236\fB-F- -S- -P- -m- -M- -e- -E- -p- -V- --delete-input-file- --lax- --ogg- \fR
237These flags can be used to invert the sense
238of the corresponding normal option.
239.SS "FORMAT OPTIONS"
240.TP
241\fB-fb\fR
242Big-endian byte order
243.TP
244\fB-fl\fR
245Little-endian byte order
246.TP
247\fB-fc \fIchannels\fB\fR
248Set number of channels.
249.TP
250\fB-fp \fIbits_per_sample\fB\fR
251Set bits per sample.
252.TP
253\fB-fs \fIsample_rate\fB\fR
254Set sample rate (in Hz).
255.TP
256\fB-fu\fR
257Unsigned samples (default is signed)
258.TP
259\fB-fr\fR
260Force to raw format (even if filename ends
261in \fI.wav\fR).
262.SH "SEE ALSO"
263.PP
264The programs are documented fully by HTML format
265documentation, available in
266\fI/usr/share/doc/flac/html\fR on
267Debian GNU/Linux systems.
268.SH "AUTHOR"
269.PP
270This manual page was written by Matt Zimmerman <mdz@debian.org> for
271the Debian GNU/Linux system (but may be used by others).