blob: 5dbe8ae6866f9c8208ed630b0f1a16f1dbd83f45 [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 Coalson9c17e6e2007-02-14 01:28:01 +00006.TH "FLAC" "1" "12 February 2007" "" ""
Josh Coalsonb0468ee2006-10-10 03:47:36 +00007
Josh Coalsonca30b372002-07-03 05:49:13 +00008.SH NAME
9flac \- Free Lossless Audio Codec
10.SH SYNOPSIS
11
Josh Coalson86325ef2006-11-17 16:06:15 +000012\fBflac\fR [ \fB\fIOPTIONS\fB\fR ] [ \fB\fIinfile.wav\fB\fR | \fB\fIinfile.aiff\fB\fR | \fB\fIinfile.raw\fB\fR | \fB\fIinfile.flac\fB\fR | \fB\fIinfile.ogg\fB\fR | \fB-\fR\fI ...\fR ]
Josh Coalson0c68bb92004-07-30 00:28:48 +000013
14
Josh Coalson86325ef2006-11-17 16:06:15 +000015\fBflac\fR [ \fB-d\fR | \fB--decode\fR | \fB-t\fR | \fB--test\fR | \fB-a\fR | \fB--analyze\fR ] [ \fB\fIOPTIONS\fB\fR ] [ \fB\fIinfile.flac\fB\fR | \fB\fIinfile.ogg\fB\fR | \fB-\fR\fI ...\fR ]
Josh Coalsonca30b372002-07-03 05:49:13 +000016
17.SH "DESCRIPTION"
18.PP
Josh Coalsonb0468ee2006-10-10 03:47:36 +000019\fBflac\fR is a command-line tool for encoding, decoding, testing and analyzing FLAC streams.
Josh Coalsonca30b372002-07-03 05:49:13 +000020.SH "OPTIONS"
21.PP
22A summary of options is included below. For a complete
23description, see the HTML documentation.
Josh Coalson99060562002-12-21 03:28:06 +000024.SS "GENERAL OPTIONS"
Josh Coalsonca30b372002-07-03 05:49:13 +000025.TP
Josh Coalsonb0468ee2006-10-10 03:47:36 +000026\fB-v, --version\fR
Josh Coalson3cf909c2002-08-20 03:57:59 +000027Show the flac version number
28.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000029\fB-h, --help \fR
30Show basic usage and a list of all options
Josh Coalsonca30b372002-07-03 05:49:13 +000031.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000032\fB-H, --explain \fR
33Show detailed explanation of usage and all options
Josh Coalsonca30b372002-07-03 05:49:13 +000034.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000035\fB-d, --decode \fR
36Decode (the default behavior is to encode)
Josh Coalsonca30b372002-07-03 05:49:13 +000037.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000038\fB-t, --test \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000039Test a flac encoded file (same as -d except no decoded file is written)
Josh Coalsonca30b372002-07-03 05:49:13 +000040.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000041\fB-a, --analyze \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000042Analyze a FLAC encoded file (same as -d except an analysis file is written)
Josh Coalsonca30b372002-07-03 05:49:13 +000043.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000044\fB-c, --stdout \fR
45Write output to stdout
Josh Coalsonca30b372002-07-03 05:49:13 +000046.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000047\fB-s, --silent \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000048Silent mode (do not write runtime encode/decode statistics to stderr)
Josh Coalsone6eff862002-08-13 21:18:27 +000049.TP
Josh Coalson0c68bb92004-07-30 00:28:48 +000050\fB--totally-silent \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000051Do not print anything of any kind, including warnings or errors. The exit code will be the only way to determine successful completion.
Josh Coalson0c68bb92004-07-30 00:28:48 +000052.TP
Josh Coalson9c17e6e2007-02-14 01:28:01 +000053\fB-w, --warnings-as-errors \fR
54Treat all warnings as errors (which cause flac to terminate with a non-zero exit code).
55.TP
Josh Coalson0c68bb92004-07-30 00:28:48 +000056\fB-f, --force \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000057Force overwriting of output files. By default, flac warns that the output file already exists and continues to the next file.
Josh Coalson0c68bb92004-07-30 00:28:48 +000058.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000059\fB-o \fIfilename\fB, --output-name=\fIfilename\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000060Force the output file name (usually flac just changes the extension). May only be used when encoding a single file. May not be used in conjunction with --output-prefix.
Josh Coalsonca30b372002-07-03 05:49:13 +000061.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000062\fB--output-prefix=\fIstring\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000063Prefix each output file name with the given string. This can be useful for encoding or decoding files to a different directory. Make sure if your string is a path name that it ends with a trailing `/' (slash).
Josh Coalsonca30b372002-07-03 05:49:13 +000064.TP
65\fB--delete-input-file \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000066Automatically 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.
Josh Coalsonca30b372002-07-03 05:49:13 +000067.TP
Josh Coalson99060562002-12-21 03:28:06 +000068\fB--skip={\fI#\fB|\fImm:ss.ss\fB}\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000069Skip over the first number of samples of the input. This works for both encoding and decoding, but not testing. The alternative form mm:ss.ss can be used to specify minutes, seconds, and fractions of a second.
Josh Coalson99060562002-12-21 03:28:06 +000070.TP
71\fB--until={\fI#\fB|[\fI+\fB|\fI-\fB]\fImm:ss.ss\fB}\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000072Stop 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 mm:ss.ss can be used to specify minutes, seconds, and fractions of a second. If a `+' (plus) sign is at the beginning, the --until point is relative to the --skip point. If a `-' (minus) sign is at the beginning, the --until point is relative to end of the audio.
Josh Coalsonf3911322002-09-20 05:53:10 +000073.TP
74\fB--ogg\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000075When 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 flac.
Josh Coalsonf3911322002-09-20 05:53:10 +000076
Josh Coalsonb0468ee2006-10-10 03:47:36 +000077When 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'.
Josh Coalsonf3911322002-09-20 05:53:10 +000078.TP
79\fB--serial-number=\fI#\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000080When 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, flac uses a random number for the first stream, then increments it for each additional stream. When decoding and no number is given, flac uses the serial number of the first page.
Josh Coalsonca30b372002-07-03 05:49:13 +000081.SS "ANALYSIS OPTIONS"
82.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000083\fB--residual-text \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000084Includes the residual signal in the analysis file. This will make the file very big, much larger than even the decoded file.
Josh Coalsonca30b372002-07-03 05:49:13 +000085.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000086\fB--residual-gnuplot \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000087Generates a gnuplot file for every subframe; each file will contain the residual distribution of the subframe. This will create a lot of files.
Josh Coalsonca30b372002-07-03 05:49:13 +000088.SS "DECODING OPTIONS"
89.TP
Josh Coalson0c68bb92004-07-30 00:28:48 +000090\fB--cue=[\fI#.#\fB][-[\fI#.#\fB]]\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000091Set the beginning and ending cuepoints to decode. The optional first #.# is the track and index point at which decoding will start; the default is the beginning of the stream. The optional second #.# is the track and index point at which decoding will end; the default is the end of the stream. If the cuepoint 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. A CD track can always be cued by, for example, --cue=9.1-10.1 for track 9, even if the CD has no 10th track.
Josh Coalson0c68bb92004-07-30 00:28:48 +000092.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000093\fB-F, --decode-through-errors \fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000094By default flac stops decoding with an error and removes the partially decoded file if it encounters a bitstream error. With -F, errors are still printed but flac will continue decoding to completion. Note that errors may cause the decoded audio to be missing some samples or have silent sections.
Josh Coalsonca30b372002-07-03 05:49:13 +000095.SS "ENCODING OPTIONS"
96.TP
Josh Coalsone6eff862002-08-13 21:18:27 +000097\fB-V, --verify\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +000098Verify a correct encoding by decoding the output in parallel and comparing to the original
Josh Coalsone6eff862002-08-13 21:18:27 +000099.TP
Josh Coalsonca30b372002-07-03 05:49:13 +0000100\fB--lax\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000101Allow encoder to generate non-Subset files. The resulting FLAC file may not be streamable or might have trouble being played in all players (especially hardware devices), so you should only use this option in combination with custom encoding options meant for archival.
Josh Coalsonca30b372002-07-03 05:49:13 +0000102.TP
Josh Coalson853d79c2002-10-31 06:16:45 +0000103\fB--replay-gain\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000104Calculate ReplayGain values and store them as FLAC tags, similar to vorbisgain. 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. Note that this option cannot be used when encoding to standard output (stdout).
Josh Coalson853d79c2002-10-31 06:16:45 +0000105.TP
Josh Coalson99060562002-12-21 03:28:06 +0000106\fB--cuesheet=\fIfilename\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000107Import the given cuesheet file and store it in a CUESHEET 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 SEEKTABLE unless --no-cued-seekpoints is specified.
108.TP
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000109\fB--picture={\fIFILENAME\fB|\fISPECIFICATION\fB}\fR
110Import a picture and store it in a PICTURE metadata block. More than one --picture command can be specified. Either a filename for the picture file or a more complete specification form can be used. The SPECIFICATION is a string whose parts are separated by | (pipe) characters. Some parts may be left empty to invoke default values. FILENAME is just shorthand for "||||FILENAME". The format of SPECIFICATION is
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000111
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000112[TYPE]|[MIME-TYPE]|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000113
114TYPE is optional; it is a number from one of:
115
1160: Other
117
1181: 32x32 pixels 'file icon' (PNG only)
119
1202: Other file icon
121
1223: Cover (front)
123
1244: Cover (back)
125
1265: Leaflet page
127
1286: Media (e.g. label side of CD)
129
1307: Lead artist/lead performer/soloist
131
1328: Artist/performer
133
1349: Conductor
135
13610: Band/Orchestra
137
13811: Composer
139
14012: Lyricist/text writer
141
14213: Recording Location
143
14414: During recording
145
14615: During performance
147
14816: Movie/video screen capture
149
15017: A bright coloured fish
151
15218: Illustration
153
15419: Band/artist logotype
155
15620: Publisher/Studio logotype
157
158The default is 3 (front cover). There may only be one picture each of type 1 and 2 in a file.
159
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000160MIME-TYPE is optional; if left blank, it will be detected from the file. For best compatibility with players, use pictures with MIME type image/jpeg or image/png. The MIME type can also be --> to mean that FILE is actually a URL to an image, though this use is discouraged.
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000161
162DESCRIPTION is optional; the default is an empty string.
163
164The next part specfies the resolution and color information. If the MIME-TYPE is image/jpeg, image/png, or image/gif, you can usually leave this empty and they can be detected from the file. Otherwise, you must specify the width in pixels, height in pixels, and color depth in bits-per-pixel. If the image has indexed colors you should also specify the number of colors used. When manually specified, it is not checked against the file for accuracy.
165
166FILE is the path to the picture file to be imported, or the URL if MIME type is -->
167
168For example, "|image/jpeg|||../cover.jpg" will embed the JPEG file at ../cover.jpg, defaulting to type 3 (front cover) and an empty description. The resolution and color info will be retrieved from the file itself.
169
170The specification "4|-->|CD|320x300x24/173|http://blah.blah/backcover.tiff" will embed the given URL, with type 4 (back cover), description "CD", and a manually specified resolution of 320x300, 24 bits-per-pixel, and 173 colors. The file at the URL will not be fetched; the URL itself is stored in the PICTURE metadata block.
Josh Coalson99060562002-12-21 03:28:06 +0000171.TP
Josh Coalsonca30b372002-07-03 05:49:13 +0000172\fB--sector-align\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000173Align encoding of multiple CD format files on sector boundaries. See the HTML documentation for more information.
Josh Coalsonca30b372002-07-03 05:49:13 +0000174.TP
Josh Coalson47a81d12002-12-03 06:32:38 +0000175\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 Coalsonb0468ee2006-10-10 03:47:36 +0000176Include a point or points in a SEEKTABLE. Using #, a seek point at that sample number is added. Using X, a placeholder point is added at the end of a the table. Using #x, # evenly spaced seek points will be added, the first being at sample 0. Using #s, a seekpoint will be added every # seconds (# does not have to be a whole number; it can be, for example, 9.5, meaning a seekpoint every 9.5 seconds). You may use many -S options; the resulting SEEKTABLE will be the unique-ified union of all such values. With no -S options, flac defaults to '-S 10s'. Use --no-seektable for no SEEKTABLE. Note: '-S #x' and '-S #s' will not work if the encoder can't determine the input size before starting. 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).
Josh Coalsonca30b372002-07-03 05:49:13 +0000177.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000178\fB-P \fI#\fB, --padding=\fI#\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000179Tell the encoder to write a PADDING metadata block of the given length (in bytes) after the STREAMINFO block. This is useful if you plan to tag the file later with an APPLICATION block; instead of having to rewrite the entire file later just to insert your block, you can write directly over the PADDING block. Note that the total length of the PADDING block will be 4 bytes longer than the length given because of the 4 metadata block header bytes. You can force no PADDING block at all to be written with --no-padding. The encoder writes a PADDING block of 8192 bytes by default (or 65536 bytes if the input audio stream is more that 20 minutes long).
Josh Coalsonca30b372002-07-03 05:49:13 +0000180.TP
Josh Coalsonf3911322002-09-20 05:53:10 +0000181\fB-T \fIFIELD=VALUE\fB, --tag=\fIFIELD=VALUE\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000182Add a FLAC tag. 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.
183.TP
184\fB--tag-from-file=\fIFIELD=FILENAME\fB\fR
185Like --tag, except FILENAME is a file whose contents will be read verbatim to set the tag value. The contents will be converted to UTF-8 from the local charset. This can be used to store a cuesheet in a tag (e.g. --tag-from-file="CUESHEET=image.cue"). Do not try to store binary data in tag fields! Use APPLICATION blocks for that.
Josh Coalsonf3911322002-09-20 05:53:10 +0000186.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000187\fB-b \fI#\fB, --blocksize=\fI#\fB\fR
Josh Coalson86325ef2006-11-17 16:06:15 +0000188Specify the block size in samples. Subset streams must use one of 192, 576, 1152, 2304, 4608, 256, 512, 1024, 2048, 4096 (and 8192 or 16384 if the sample rate is >48kHz).
Josh Coalsonca30b372002-07-03 05:49:13 +0000189.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000190\fB-m, --mid-side\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000191Try mid-side coding for each frame (stereo input only)
Josh Coalsonca30b372002-07-03 05:49:13 +0000192.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000193\fB-M, --adaptive-mid-side\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000194Adaptive mid-side coding for all frames (stereo input only)
Josh Coalsonca30b372002-07-03 05:49:13 +0000195.TP
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000196\fB-0\&..-8, --compression-level-0\&..--compression-level-8\fR
197Fastest compression..highest compression (default is -5). These are synonyms for other options:
Josh Coalsonca30b372002-07-03 05:49:13 +0000198.RS
199.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000200\fB-0, --compression-level-0\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000201Synonymous with -l 0 -b 1152 -r 3
Josh Coalsonca30b372002-07-03 05:49:13 +0000202.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000203\fB-1, --compression-level-1\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000204Synonymous with -l 0 -b 1152 -M -r 3
Josh Coalsonca30b372002-07-03 05:49:13 +0000205.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000206\fB-2, --compression-level-2\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000207Synonymous with -l 0 -b 1152 -m -r 3
208.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000209\fB-3, --compression-level-3\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000210Synonymous with -l 6 -b 4096 -r 4
Josh Coalsonca30b372002-07-03 05:49:13 +0000211.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000212\fB-4, --compression-level-4\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000213Synonymous with -l 8 -b 4096 -M -r 4
Josh Coalsonca30b372002-07-03 05:49:13 +0000214.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000215\fB-5, --compression-level-5\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000216Synonymous with -l 8 -b 4096 -m -r 5
Josh Coalsonca30b372002-07-03 05:49:13 +0000217.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000218\fB-6, --compression-level-6\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000219Synonymous with -l 8 -b 4096 -m -r 6
Josh Coalsonca30b372002-07-03 05:49:13 +0000220.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000221\fB-7, --compression-level-7\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000222Synonymous with -l 8 -b 4096 -m -e -r 6
Josh Coalsonca30b372002-07-03 05:49:13 +0000223.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000224\fB-8, --compression-level-8\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000225Synonymous with -l 12 -b 4096 -m -e -r 6
Josh Coalsonca30b372002-07-03 05:49:13 +0000226.RE
227.TP
228\fB--fast\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000229Fastest compression. Currently synonymous with -0.
Josh Coalsonca30b372002-07-03 05:49:13 +0000230.TP
231\fB--best\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000232Highest compression. Currently synonymous with -8.
Josh Coalsonca30b372002-07-03 05:49:13 +0000233.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000234\fB-e, --exhaustive-model-search\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000235Do exhaustive model search (expensive!)
236.TP
237\fB-A \fIfunction\fB, --apodization=\fIfunction\fB\fR
238Window audio data with given the apodization function. The functions are: bartlett, bartlett_hann, blackman, blackman_harris_4term_92db, connes, flattop, gauss(STDDEV), hamming, hann, kaiser_bessel, nuttall, rectangle, triangle, tukey(P), welch.
239
240For gauss(STDDEV), STDDEV is the standard deviation (0<STDDEV<=0.5).
241
242For tukey(P), P specifies the fraction of the window that is tapered (0<=P<=1; P=0 corresponds to "rectangle" and P=1 corresponds to "hann").
243
244More than one -A option (up to 32) may be used. Any function that is specified erroneously is silently dropped. The encoder chooses suitable defaults in the absence of any -A options; any -A option specified replaces the default(s).
245
246When more than one function is specified, then for every subframe the encoder will try each of them separately and choose the window that results in the smallest compressed subframe. Multiple functions can greatly increase the encoding time.
Josh Coalsonca30b372002-07-03 05:49:13 +0000247.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000248\fB-l \fI#\fB, --max-lpc-order=\fI#\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000249Specifies the maximum LPC order. This number must be <= 32. For Subset streams, it must be <=12 if the sample rate is <=48kHz. 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.
Josh Coalsonca30b372002-07-03 05:49:13 +0000250.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000251\fB-p, --qlp-coeff-precision-search\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000252Do exhaustive search of LP coefficient quantization (expensive!). Overrides -q; does nothing if using -l 0
Josh Coalsonca30b372002-07-03 05:49:13 +0000253.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000254\fB-q \fI#\fB, --qlp-coeff-precision=\fI#\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000255Precision of the quantized linear-predictor coefficients, 0 => let encoder decide (min is 5, default is 0)
Josh Coalsonca30b372002-07-03 05:49:13 +0000256.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000257\fB-r [\fI#\fB,]\fI#\fB, --rice-partition-order=[\fI#\fB,]\fI#\fB\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000258Set the [min,]max residual partition order (0..16). min defaults to 0 if unspecified. Default is -r 5.
Josh Coalsonca30b372002-07-03 05:49:13 +0000259.SS "FORMAT OPTIONS"
260.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000261\fB--endian={\fIbig\fB|\fIlittle\fB}\fR
262Set the byte order for samples
Josh Coalsonca30b372002-07-03 05:49:13 +0000263.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000264\fB--channels=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000265Set number of channels.
266.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000267\fB--bps=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000268Set bits per sample.
269.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000270\fB--sample-rate=\fI#\fB\fR
Josh Coalsonca30b372002-07-03 05:49:13 +0000271Set sample rate (in Hz).
272.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000273\fB--sign={\fIsigned\fB|\fIunsigned\fB}\fR
274Set the sign of samples (the default is signed).
Josh Coalsonca30b372002-07-03 05:49:13 +0000275.TP
Josh Coalson91ccea92005-02-02 04:35:49 +0000276\fB--input-size=\fI#\fB\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000277Specify the size of the raw input in bytes. If you are encoding raw samples from stdin, you must set this option in order to be able to use --skip, --until, --cue-sheet, or other options that need to know the size of the input beforehand. If the size given is greater than what is found in the input stream, the encoder will complain about an unexpected end-of-file. If the size given is less, samples will be truncated.
Josh Coalson91ccea92005-02-02 04:35:49 +0000278.TP
Josh Coalson99060562002-12-21 03:28:06 +0000279\fB--force-aiff-format\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000280Force the decoder to output AIFF format. This option is not needed if the output filename (as set by -o) ends with \fI\&.aiff\fR\&. Also, this option has no effect when encoding since input AIFF is auto-detected.
Josh Coalson99060562002-12-21 03:28:06 +0000281.TP
Josh Coalsoneb209032002-08-20 20:37:26 +0000282\fB--force-raw-format\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000283Force input (when encoding) or output (when decoding) to be treated as raw samples (even if filename ends in \fI\&.wav\fR).
Josh Coalsone6eff862002-08-13 21:18:27 +0000284.SS "NEGATIVE OPTIONS"
285.TP
286\fB--no-adaptive-mid-side\fR
287.TP
288\fB--no-decode-through-errors\fR
289.TP
290\fB--no-delete-input-file\fR
291.TP
Josh Coalsone6eff862002-08-13 21:18:27 +0000292\fB--no-exhaustive-model-search\fR
293.TP
294\fB--no-lax\fR
295.TP
296\fB--no-mid-side\fR
297.TP
298\fB--no-ogg\fR
299.TP
300\fB--no-padding\fR
301.TP
302\fB--no-qlp-coeff-precision-search\fR
303.TP
304\fB--no-residual-gnuplot\fR
305.TP
306\fB--no-residual-text\fR
307.TP
308\fB--no-sector-align\fR
309.TP
310\fB--no-seektable\fR
311.TP
312\fB--no-silent\fR
313.TP
314\fB--no-verify\fR
Josh Coalson9c17e6e2007-02-14 01:28:01 +0000315.TP
316\fB--no-warnings-as-errors\fR
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000317These flags can be used to invert the sense of the corresponding normal option.
Josh Coalsonca30b372002-07-03 05:49:13 +0000318.SH "SEE ALSO"
319.PP
Josh Coalson99060562002-12-21 03:28:06 +0000320metaflac(1).
321.PP
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000322The programs are documented fully by HTML format documentation, available in \fI/usr/share/doc/flac/html\fR on Debian GNU/Linux systems.
Josh Coalsonca30b372002-07-03 05:49:13 +0000323.SH "AUTHOR"
324.PP
Josh Coalsonb0468ee2006-10-10 03:47:36 +0000325This manual page was written by Matt Zimmerman <mdz@debian.org> for the Debian GNU/Linux system (but may be used by others).