annotate src/flac-1.2.1/man/flac.sgml @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 98c1576536ae
children
rev   line source
cannam@86 1 <!doctype refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
cannam@86 2
cannam@86 3 <!-- Fill in your name for FIRSTNAME and SURNAME. -->
cannam@86 4 <!ENTITY dhfirstname "<firstname>Matt</firstname>">
cannam@86 5 <!ENTITY dhsurname "<surname>Zimmerman</surname>">
cannam@86 6 <!-- Please adjust the date whenever revising the manpage. -->
cannam@86 7 <!ENTITY dhdate "<date>Nov 4, 2006</date>">
cannam@86 8 <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
cannam@86 9 allowed: see man(7), man(1). -->
cannam@86 10 <!ENTITY dhsection "<manvolnum>1</manvolnum>">
cannam@86 11 <!ENTITY dhemail "<email>mdz@debian.org</email>">
cannam@86 12 <!ENTITY dhusername "Matt Zimmerman">
cannam@86 13 <!ENTITY dhucpackage "<refentrytitle>FLAC</refentrytitle>">
cannam@86 14 <!ENTITY dhpackage "flac">
cannam@86 15
cannam@86 16 <!ENTITY debian "<productname>Debian GNU/Linux</productname>">
cannam@86 17 <!ENTITY gnu "<acronym>GNU</acronym>">
cannam@86 18 ]>
cannam@86 19
cannam@86 20 <refentry>
cannam@86 21 <docinfo>
cannam@86 22 <address>
cannam@86 23 &dhemail;
cannam@86 24 </address>
cannam@86 25 <author>
cannam@86 26 &dhfirstname;
cannam@86 27 &dhsurname;
cannam@86 28 </author>
cannam@86 29 <copyright>
cannam@86 30 <year>2002,2003,2004,2005</year>
cannam@86 31 <holder>&dhusername;</holder>
cannam@86 32 </copyright>
cannam@86 33 &dhdate;
cannam@86 34 </docinfo>
cannam@86 35 <refmeta>
cannam@86 36 &dhucpackage;
cannam@86 37
cannam@86 38 &dhsection;
cannam@86 39 </refmeta>
cannam@86 40 <refnamediv>
cannam@86 41 <refname>&dhpackage;</refname>
cannam@86 42
cannam@86 43 <refpurpose>Free Lossless Audio Codec</refpurpose>
cannam@86 44 </refnamediv>
cannam@86 45 <refsynopsisdiv>
cannam@86 46 <cmdsynopsis>
cannam@86 47 <command>flac</command>
cannam@86 48 <arg choice=opt><replaceable>OPTIONS</replaceable></arg>
cannam@86 49 <group rep=repeat>
cannam@86 50 <arg><replaceable>infile.wav</replaceable></arg>
cannam@86 51 <arg><replaceable>infile.aiff</replaceable></arg>
cannam@86 52 <arg><replaceable>infile.raw</replaceable></arg>
cannam@86 53 <arg><replaceable>infile.flac</replaceable></arg>
cannam@86 54 <arg><replaceable>infile.oga</replaceable></arg>
cannam@86 55 <arg><replaceable>infile.ogg</replaceable></arg>
cannam@86 56 <arg>-</arg>
cannam@86 57 </group>
cannam@86 58 </cmdsynopsis>
cannam@86 59 <cmdsynopsis>
cannam@86 60 <command>flac</command>
cannam@86 61 <group>
cannam@86 62 <arg>-d</arg> <arg>--decode</arg>
cannam@86 63 <arg>-t</arg> <arg>--test</arg>
cannam@86 64 <arg>-a</arg> <arg>--analyze</arg>
cannam@86 65 </group>
cannam@86 66 <arg choice=opt><replaceable>OPTIONS</replaceable></arg>
cannam@86 67 <group rep=repeat>
cannam@86 68 <arg><replaceable>infile.flac</replaceable></arg>
cannam@86 69 <arg><replaceable>infile.oga</replaceable></arg>
cannam@86 70 <arg><replaceable>infile.ogg</replaceable></arg>
cannam@86 71 <arg>-</arg>
cannam@86 72 </group>
cannam@86 73 </cmdsynopsis>
cannam@86 74 </refsynopsisdiv>
cannam@86 75 <refsect1>
cannam@86 76 <title>DESCRIPTION</title>
cannam@86 77
cannam@86 78 <para><command>flac</command> is a command-line tool for encoding, decoding, testing and analyzing FLAC streams.</para>
cannam@86 79
cannam@86 80 </refsect1>
cannam@86 81 <refsect1>
cannam@86 82 <title>OPTIONS</title>
cannam@86 83
cannam@86 84 <para>A summary of options is included below. For a complete
cannam@86 85 description, see the HTML documentation.</para>
cannam@86 86
cannam@86 87 <refsect2>
cannam@86 88 <title>General Options</title>
cannam@86 89
cannam@86 90 <variablelist>
cannam@86 91 <varlistentry>
cannam@86 92 <term><option>-v</option>, <option>--version</option></term>
cannam@86 93 <listitem>
cannam@86 94 <para>Show the flac version number</para>
cannam@86 95 </listitem>
cannam@86 96 </varlistentry>
cannam@86 97
cannam@86 98 <varlistentry>
cannam@86 99 <term><option>-h</option>, <option>--help</option>
cannam@86 100 </term>
cannam@86 101 <listitem>
cannam@86 102 <para>Show basic usage and a list of all options</para>
cannam@86 103 </listitem>
cannam@86 104 </varlistentry>
cannam@86 105
cannam@86 106 <varlistentry>
cannam@86 107 <term><option>-H</option>, <option>--explain</option>
cannam@86 108 </term>
cannam@86 109 <listitem>
cannam@86 110 <para>Show detailed explanation of usage and all options</para>
cannam@86 111 </listitem>
cannam@86 112 </varlistentry>
cannam@86 113
cannam@86 114 <varlistentry>
cannam@86 115 <term><option>-d</option>, <option>--decode</option>
cannam@86 116 </term>
cannam@86 117 <listitem>
cannam@86 118 <para>Decode (the default behavior is to encode)</para>
cannam@86 119 </listitem>
cannam@86 120 </varlistentry>
cannam@86 121
cannam@86 122 <varlistentry>
cannam@86 123 <term><option>-t</option>, <option>--test</option>
cannam@86 124 </term>
cannam@86 125 <listitem>
cannam@86 126 <para>Test a flac encoded file (same as -d except no decoded file is written)</para>
cannam@86 127 </listitem>
cannam@86 128 </varlistentry>
cannam@86 129
cannam@86 130 <varlistentry>
cannam@86 131 <term><option>-a</option>, <option>--analyze</option>
cannam@86 132 </term>
cannam@86 133 <listitem>
cannam@86 134 <para>Analyze a FLAC encoded file (same as -d except an analysis file is written)</para>
cannam@86 135 </listitem>
cannam@86 136 </varlistentry>
cannam@86 137
cannam@86 138 <varlistentry>
cannam@86 139 <term><option>-c</option>, <option>--stdout</option>
cannam@86 140 </term>
cannam@86 141 <listitem>
cannam@86 142 <para>Write output to stdout</para>
cannam@86 143 </listitem>
cannam@86 144 </varlistentry>
cannam@86 145
cannam@86 146 <varlistentry>
cannam@86 147 <term><option>-s</option>, <option>--silent</option>
cannam@86 148 </term>
cannam@86 149 <listitem>
cannam@86 150 <para>Silent mode (do not write runtime encode/decode statistics to stderr)</para>
cannam@86 151 </listitem>
cannam@86 152 </varlistentry>
cannam@86 153
cannam@86 154 <varlistentry>
cannam@86 155 <term><option>--totally-silent</option>
cannam@86 156 </term>
cannam@86 157 <listitem>
cannam@86 158 <para>Do not print anything of any kind, including warnings or errors. The exit code will be the only way to determine successful completion.</para>
cannam@86 159 </listitem>
cannam@86 160 </varlistentry>
cannam@86 161
cannam@86 162 <varlistentry>
cannam@86 163 <term><option>--no-utf8-convert</option>
cannam@86 164 </term>
cannam@86 165 <listitem>
cannam@86 166 <para>Do not convert tags from local charset to UTF-8. This is useful for scripts, and setting tags in situations where the locale is wrong. This option must appear before any tag options!</para>
cannam@86 167 </listitem>
cannam@86 168 </varlistentry>
cannam@86 169
cannam@86 170 <varlistentry>
cannam@86 171 <term><option>-w</option>, <option>--warnings-as-errors</option>
cannam@86 172 </term>
cannam@86 173 <listitem>
cannam@86 174 <para>Treat all warnings as errors (which cause flac to terminate with a non-zero exit code).</para>
cannam@86 175 </listitem>
cannam@86 176 </varlistentry>
cannam@86 177
cannam@86 178 <varlistentry>
cannam@86 179 <term><option>-f</option>, <option>--force</option>
cannam@86 180 </term>
cannam@86 181 <listitem>
cannam@86 182 <para>Force overwriting of output files. By default, flac warns that the output file already exists and continues to the next file.</para>
cannam@86 183 </listitem>
cannam@86 184 </varlistentry>
cannam@86 185
cannam@86 186 <varlistentry>
cannam@86 187 <term><option>-o</option> <replaceable>filename</replaceable>, <option>--output-name</option>=<replaceable>filename</replaceable></term>
cannam@86 188 <listitem>
cannam@86 189 <para>Force 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.</para>
cannam@86 190 </listitem>
cannam@86 191 </varlistentry>
cannam@86 192
cannam@86 193 <varlistentry>
cannam@86 194 <term><option>--output-prefix</option>=<replaceable>string</replaceable></term>
cannam@86 195 <listitem>
cannam@86 196 <para>Prefix 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).</para>
cannam@86 197 </listitem>
cannam@86 198 </varlistentry>
cannam@86 199
cannam@86 200 <varlistentry>
cannam@86 201 <term><option>--delete-input-file</option>
cannam@86 202 </term>
cannam@86 203 <listitem>
cannam@86 204 <para>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.</para>
cannam@86 205 </listitem>
cannam@86 206 </varlistentry>
cannam@86 207
cannam@86 208 <varlistentry>
cannam@86 209 <term><option>--keep-foreign-metadata</option>
cannam@86 210 </term>
cannam@86 211 <listitem>
cannam@86 212 <para>If encoding, save WAVE or AIFF non-audio chunks in FLAC metadata. If decoding, restore any saved non-audio chunks from FLAC metadata when writing the decoded file. Foreign metadata cannot be transcoded, e.g. WAVE chunks saved in a FLAC file cannot be restored when decoding to AIFF. Input and output must be regular files (not stdin or stdout).</para>
cannam@86 213 </listitem>
cannam@86 214 </varlistentry>
cannam@86 215
cannam@86 216 <varlistentry>
cannam@86 217 <term><option>--skip</option>={<replaceable>#</replaceable>|<replaceable>mm:ss.ss</replaceable>}</term>
cannam@86 218 <listitem>
cannam@86 219 <para>Skip 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.</para>
cannam@86 220 </listitem>
cannam@86 221 </varlistentry>
cannam@86 222
cannam@86 223 <varlistentry>
cannam@86 224 <term><option>--until</option>={<replaceable>#</replaceable>|[<replaceable>+</replaceable>|<replaceable>-</replaceable>]<replaceable>mm:ss.ss</replaceable>}</term>
cannam@86 225 <listitem>
cannam@86 226 <para>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 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.</para>
cannam@86 227 </listitem>
cannam@86 228 </varlistentry>
cannam@86 229
cannam@86 230 <varlistentry>
cannam@86 231 <term><option>--ogg</option></term>
cannam@86 232
cannam@86 233 <listitem>
cannam@86 234 <para>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 '.oga' extension and will still be decodable by flac.</para>
cannam@86 235 <para>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 '.oga' or '.ogg'.</para>
cannam@86 236 </listitem>
cannam@86 237 </varlistentry>
cannam@86 238
cannam@86 239 <varlistentry>
cannam@86 240 <term><option>--serial-number</option>=<replaceable>#</replaceable></term>
cannam@86 241
cannam@86 242 <listitem>
cannam@86 243 <para>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, 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.</para>
cannam@86 244 </listitem>
cannam@86 245 </varlistentry>
cannam@86 246
cannam@86 247 </variablelist>
cannam@86 248 </refsect2>
cannam@86 249
cannam@86 250 <refsect2>
cannam@86 251 <title>Analysis Options</title>
cannam@86 252
cannam@86 253 <variablelist>
cannam@86 254 <varlistentry>
cannam@86 255 <term><option>--residual-text</option>
cannam@86 256 </term>
cannam@86 257 <listitem>
cannam@86 258 <para>Includes the residual signal in the analysis file. This will make the file very big, much larger than even the decoded file.</para>
cannam@86 259 </listitem>
cannam@86 260 </varlistentry>
cannam@86 261
cannam@86 262 <varlistentry>
cannam@86 263 <term><option>--residual-gnuplot</option>
cannam@86 264 </term>
cannam@86 265 <listitem>
cannam@86 266 <para>Generates a gnuplot file for every subframe; each file will contain the residual distribution of the subframe. This will create a lot of files.</para>
cannam@86 267 </listitem>
cannam@86 268 </varlistentry>
cannam@86 269
cannam@86 270 </variablelist>
cannam@86 271 </refsect2>
cannam@86 272
cannam@86 273 <refsect2>
cannam@86 274 <title>Decoding Options</title>
cannam@86 275
cannam@86 276 <variablelist>
cannam@86 277 <varlistentry>
cannam@86 278 <term><option>--cue=[<replaceable>#.#</replaceable>][-[<replaceable>#.#</replaceable>]]</option></term>
cannam@86 279 <listitem>
cannam@86 280 <para>Set 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.</para>
cannam@86 281 </listitem>
cannam@86 282 </varlistentry>
cannam@86 283
cannam@86 284 <varlistentry>
cannam@86 285 <term><option>-F</option>, <option>--decode-through-errors</option>
cannam@86 286 </term>
cannam@86 287 <listitem>
cannam@86 288 <para>By 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.</para>
cannam@86 289 </listitem>
cannam@86 290 </varlistentry>
cannam@86 291
cannam@86 292 </variablelist>
cannam@86 293 </refsect2>
cannam@86 294
cannam@86 295 <refsect2>
cannam@86 296 <title>Encoding Options</title>
cannam@86 297
cannam@86 298 <variablelist>
cannam@86 299 <varlistentry>
cannam@86 300 <term><option>-V</option>, <option>--verify</option></term>
cannam@86 301
cannam@86 302 <listitem>
cannam@86 303 <para>Verify a correct encoding by decoding the output in parallel and comparing to the original</para>
cannam@86 304 </listitem>
cannam@86 305 </varlistentry>
cannam@86 306
cannam@86 307 <varlistentry>
cannam@86 308 <term><option>--lax</option></term>
cannam@86 309
cannam@86 310 <listitem>
cannam@86 311 <para>Allow 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.</para>
cannam@86 312 </listitem>
cannam@86 313 </varlistentry>
cannam@86 314
cannam@86 315 <varlistentry>
cannam@86 316 <term><option>--replay-gain</option></term>
cannam@86 317
cannam@86 318 <listitem>
cannam@86 319 <para>Calculate 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).</para>
cannam@86 320 </listitem>
cannam@86 321 </varlistentry>
cannam@86 322
cannam@86 323 <varlistentry>
cannam@86 324 <term><option>--cuesheet</option>=<replaceable>filename</replaceable></term>
cannam@86 325
cannam@86 326 <listitem>
cannam@86 327 <para>Import 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.</para>
cannam@86 328 </listitem>
cannam@86 329 </varlistentry>
cannam@86 330
cannam@86 331 <varlistentry>
cannam@86 332 <term><option>--picture</option>={<replaceable>FILENAME</replaceable>|<replaceable>SPECIFICATION</replaceable>}</term>
cannam@86 333
cannam@86 334 <listitem>
cannam@86 335 <para>Import 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</para>
cannam@86 336 <para>[TYPE]|[MIME-TYPE]|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE</para>
cannam@86 337 <para>TYPE is optional; it is a number from one of:</para>
cannam@86 338 <para>0: Other</para>
cannam@86 339 <para>1: 32x32 pixels 'file icon' (PNG only)</para>
cannam@86 340 <para>2: Other file icon</para>
cannam@86 341 <para>3: Cover (front)</para>
cannam@86 342 <para>4: Cover (back)</para>
cannam@86 343 <para>5: Leaflet page</para>
cannam@86 344 <para>6: Media (e.g. label side of CD)</para>
cannam@86 345 <para>7: Lead artist/lead performer/soloist</para>
cannam@86 346 <para>8: Artist/performer</para>
cannam@86 347 <para>9: Conductor</para>
cannam@86 348 <para>10: Band/Orchestra</para>
cannam@86 349 <para>11: Composer</para>
cannam@86 350 <para>12: Lyricist/text writer</para>
cannam@86 351 <para>13: Recording Location</para>
cannam@86 352 <para>14: During recording</para>
cannam@86 353 <para>15: During performance</para>
cannam@86 354 <para>16: Movie/video screen capture</para>
cannam@86 355 <para>17: A bright coloured fish</para>
cannam@86 356 <para>18: Illustration</para>
cannam@86 357 <para>19: Band/artist logotype</para>
cannam@86 358 <para>20: Publisher/Studio logotype</para>
cannam@86 359 <para>The default is 3 (front cover). There may only be one picture each of type 1 and 2 in a file.</para>
cannam@86 360
cannam@86 361 <para>MIME-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 --&gt; to mean that FILE is actually a URL to an image, though this use is discouraged.</para>
cannam@86 362
cannam@86 363 <para>DESCRIPTION is optional; the default is an empty string.</para>
cannam@86 364
cannam@86 365 <para>The 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.</para>
cannam@86 366
cannam@86 367 <para>FILE is the path to the picture file to be imported, or the URL if MIME type is --&gt;</para>
cannam@86 368
cannam@86 369 <para>For 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.</para>
cannam@86 370
cannam@86 371 <para>The 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.</para>
cannam@86 372 </listitem>
cannam@86 373 </varlistentry>
cannam@86 374
cannam@86 375 <varlistentry>
cannam@86 376 <term><option>--sector-align</option></term>
cannam@86 377
cannam@86 378 <listitem>
cannam@86 379 <para>Align encoding of multiple CD format files on sector boundaries. See the HTML documentation for more information.</para>
cannam@86 380 </listitem>
cannam@86 381 </varlistentry>
cannam@86 382
cannam@86 383 <varlistentry>
cannam@86 384 <term><option>-S</option> {<replaceable>#</replaceable>|<replaceable>X</replaceable>|<replaceable>#x</replaceable>|<replaceable>#s</replaceable>}, <option>--seekpoint</option>={<replaceable>#</replaceable>|<replaceable>X</replaceable>|<replaceable>#x</replaceable>|<replaceable>#s</replaceable>}</term>
cannam@86 385
cannam@86 386 <listitem>
cannam@86 387 <para>Include 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).</para>
cannam@86 388 </listitem>
cannam@86 389 </varlistentry>
cannam@86 390
cannam@86 391 <varlistentry>
cannam@86 392 <term><option>-P</option> <replaceable>#</replaceable>, <option>--padding</option>=<replaceable>#</replaceable></term>
cannam@86 393
cannam@86 394 <listitem>
cannam@86 395 <para>Tell 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).</para>
cannam@86 396 </listitem>
cannam@86 397 </varlistentry>
cannam@86 398
cannam@86 399 <varlistentry>
cannam@86 400 <term><option>-T</option> <replaceable>FIELD=VALUE</replaceable>, <option>--tag</option>=<replaceable>FIELD=VALUE</replaceable></term>
cannam@86 401
cannam@86 402 <listitem>
cannam@86 403 <para>Add 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.</para>
cannam@86 404 </listitem>
cannam@86 405 </varlistentry>
cannam@86 406
cannam@86 407 <varlistentry>
cannam@86 408 <term><option>--tag-from-file</option>=<replaceable>FIELD=FILENAME</replaceable></term>
cannam@86 409
cannam@86 410 <listitem>
cannam@86 411 <para>Like --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.</para>
cannam@86 412 </listitem>
cannam@86 413 </varlistentry>
cannam@86 414
cannam@86 415 <varlistentry>
cannam@86 416 <term><option>-b</option> <replaceable>#</replaceable>, <option>--blocksize</option>=<replaceable>#</replaceable></term>
cannam@86 417
cannam@86 418 <listitem>
cannam@86 419 <para>Specify 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 &gt;48kHz).</para>
cannam@86 420 </listitem>
cannam@86 421 </varlistentry>
cannam@86 422
cannam@86 423 <varlistentry>
cannam@86 424 <term><option>-m</option>, <option>--mid-side</option></term>
cannam@86 425
cannam@86 426 <listitem>
cannam@86 427 <para>Try mid-side coding for each frame (stereo input only)</para>
cannam@86 428 </listitem>
cannam@86 429 </varlistentry>
cannam@86 430
cannam@86 431 <varlistentry>
cannam@86 432 <term><option>-M</option>, <option>--adaptive-mid-side</option></term>
cannam@86 433
cannam@86 434 <listitem>
cannam@86 435 <para>Adaptive mid-side coding for all frames (stereo input only)</para>
cannam@86 436 </listitem>
cannam@86 437 </varlistentry>
cannam@86 438
cannam@86 439 <varlistentry>
cannam@86 440 <term><option>-0</option>..<option>-8</option>, <option>--compression-level-0</option>..<option>--compression-level-8</option></term>
cannam@86 441
cannam@86 442 <listitem>
cannam@86 443 <para>Fastest compression..highest compression (default is -5). These are synonyms for other options:</para>
cannam@86 444
cannam@86 445 <variablelist>
cannam@86 446 <varlistentry>
cannam@86 447 <term><option>-0</option>, <option>--compression-level-0</option></term>
cannam@86 448
cannam@86 449 <listitem>
cannam@86 450 <para>Synonymous with -l 0 -b 1152 -r 3</para>
cannam@86 451 </listitem>
cannam@86 452 </varlistentry>
cannam@86 453
cannam@86 454 <varlistentry>
cannam@86 455 <term><option>-1</option>, <option>--compression-level-1</option></term>
cannam@86 456
cannam@86 457 <listitem>
cannam@86 458 <para>Synonymous with -l 0 -b 1152 -M -r 3</para>
cannam@86 459 </listitem>
cannam@86 460 </varlistentry>
cannam@86 461
cannam@86 462 <varlistentry>
cannam@86 463 <term><option>-2</option>, <option>--compression-level-2</option></term>
cannam@86 464
cannam@86 465 <listitem>
cannam@86 466 <para>Synonymous with -l 0 -b 1152 -m -r 3</para>
cannam@86 467 </listitem>
cannam@86 468 </varlistentry>
cannam@86 469
cannam@86 470 <varlistentry>
cannam@86 471 <term><option>-3</option>, <option>--compression-level-3</option></term>
cannam@86 472
cannam@86 473 <listitem>
cannam@86 474 <para>Synonymous with -l 6 -b 4096 -r 4</para>
cannam@86 475 </listitem>
cannam@86 476 </varlistentry>
cannam@86 477
cannam@86 478 <varlistentry>
cannam@86 479 <term><option>-4</option>, <option>--compression-level-4</option></term>
cannam@86 480
cannam@86 481 <listitem>
cannam@86 482 <para>Synonymous with -l 8 -b 4096 -M -r 4</para>
cannam@86 483 </listitem>
cannam@86 484 </varlistentry>
cannam@86 485
cannam@86 486 <varlistentry>
cannam@86 487 <term><option>-5</option>, <option>--compression-level-5</option></term>
cannam@86 488
cannam@86 489 <listitem>
cannam@86 490 <para>Synonymous with -l 8 -b 4096 -m -r 5</para>
cannam@86 491 </listitem>
cannam@86 492 </varlistentry>
cannam@86 493
cannam@86 494 <varlistentry>
cannam@86 495 <term><option>-6</option>, <option>--compression-level-6</option></term>
cannam@86 496
cannam@86 497 <listitem>
cannam@86 498 <para>Synonymous with -l 8 -b 4096 -m -r 6</para>
cannam@86 499 </listitem>
cannam@86 500 </varlistentry>
cannam@86 501
cannam@86 502 <varlistentry>
cannam@86 503 <term><option>-7</option>, <option>--compression-level-7</option></term>
cannam@86 504
cannam@86 505 <listitem>
cannam@86 506 <para>Synonymous with -l 8 -b 4096 -m -e -r 6</para>
cannam@86 507 </listitem>
cannam@86 508 </varlistentry>
cannam@86 509
cannam@86 510 <varlistentry>
cannam@86 511 <term><option>-8</option>, <option>--compression-level-8</option></term>
cannam@86 512
cannam@86 513 <listitem>
cannam@86 514 <para>Synonymous with -l 12 -b 4096 -m -e -r 6</para>
cannam@86 515 </listitem>
cannam@86 516 </varlistentry>
cannam@86 517 </variablelist>
cannam@86 518
cannam@86 519 </listitem>
cannam@86 520
cannam@86 521 </varlistentry>
cannam@86 522
cannam@86 523 <varlistentry>
cannam@86 524 <term><option>--fast</option></term>
cannam@86 525
cannam@86 526 <listitem>
cannam@86 527 <para>Fastest compression. Currently synonymous with -0.</para>
cannam@86 528 </listitem>
cannam@86 529 </varlistentry>
cannam@86 530
cannam@86 531 <varlistentry>
cannam@86 532 <term><option>--best</option></term>
cannam@86 533
cannam@86 534 <listitem>
cannam@86 535 <para>Highest compression. Currently synonymous with -8.</para>
cannam@86 536 </listitem>
cannam@86 537 </varlistentry>
cannam@86 538
cannam@86 539 <varlistentry>
cannam@86 540 <term><option>-e</option>, <option>--exhaustive-model-search</option></term>
cannam@86 541
cannam@86 542 <listitem>
cannam@86 543 <para>Do exhaustive model search (expensive!)</para>
cannam@86 544 </listitem>
cannam@86 545 </varlistentry>
cannam@86 546
cannam@86 547 <varlistentry>
cannam@86 548 <term><option>-A</option> <replaceable>function</replaceable>, <option>--apodization</option>=<replaceable>function</replaceable></term>
cannam@86 549
cannam@86 550 <listitem>
cannam@86 551 <para>Window 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.</para>
cannam@86 552 <para>For gauss(STDDEV), STDDEV is the standard deviation (0&lt;STDDEV&lt;=0.5).</para>
cannam@86 553 <para>For tukey(P), P specifies the fraction of the window that is tapered (0&lt;=P&lt;=1; P=0 corresponds to "rectangle" and P=1 corresponds to "hann").</para>
cannam@86 554 <para>More 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).</para>
cannam@86 555 <para>When 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.</para>
cannam@86 556 </listitem>
cannam@86 557 </varlistentry>
cannam@86 558
cannam@86 559 <varlistentry>
cannam@86 560 <term><option>-l</option> <replaceable>#</replaceable>, <option>--max-lpc-order</option>=<replaceable>#</replaceable></term>
cannam@86 561
cannam@86 562 <listitem>
cannam@86 563 <para>Specifies the maximum LPC order. This number must be &lt;= 32. For Subset streams, it must be &lt;=12 if the sample rate is &lt;=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.</para>
cannam@86 564 </listitem>
cannam@86 565 </varlistentry>
cannam@86 566
cannam@86 567 <varlistentry>
cannam@86 568 <term><option>-p</option>, <option>--qlp-coeff-precision-search</option></term>
cannam@86 569
cannam@86 570 <listitem>
cannam@86 571 <para>Do exhaustive search of LP coefficient quantization (expensive!). Overrides -q; does nothing if using -l 0</para>
cannam@86 572 </listitem>
cannam@86 573 </varlistentry>
cannam@86 574
cannam@86 575 <varlistentry>
cannam@86 576 <term><option>-q</option> <replaceable>#</replaceable>, <option>--qlp-coeff-precision</option>=<replaceable>#</replaceable></term>
cannam@86 577
cannam@86 578 <listitem>
cannam@86 579 <para>Precision of the quantized linear-predictor coefficients, 0 => let encoder decide (min is 5, default is 0)</para>
cannam@86 580 </listitem>
cannam@86 581 </varlistentry>
cannam@86 582
cannam@86 583 <varlistentry>
cannam@86 584 <term><option>-r</option> [<replaceable>#</replaceable>,]<replaceable>#</replaceable>, <option>--rice-partition-order</option>=[<replaceable>#</replaceable>,]<replaceable>#</replaceable></term>
cannam@86 585
cannam@86 586 <listitem>
cannam@86 587 <para>Set the [min,]max residual partition order (0..16). min defaults to 0 if unspecified. Default is -r 5.</para>
cannam@86 588 </listitem>
cannam@86 589 </varlistentry>
cannam@86 590
cannam@86 591 </variablelist>
cannam@86 592
cannam@86 593 </refsect2>
cannam@86 594 <refsect2>
cannam@86 595 <title>Format Options</title>
cannam@86 596
cannam@86 597 <variablelist>
cannam@86 598 <varlistentry>
cannam@86 599 <term><option>--endian</option>={<replaceable>big</replaceable>|<replaceable>little</replaceable>}</term>
cannam@86 600
cannam@86 601 <listitem>
cannam@86 602 <para>Set the byte order for samples</para>
cannam@86 603 </listitem>
cannam@86 604 </varlistentry>
cannam@86 605
cannam@86 606 <varlistentry>
cannam@86 607 <term><option>--channels</option>=<replaceable>#</replaceable></term>
cannam@86 608
cannam@86 609 <listitem>
cannam@86 610 <para>Set number of channels.</para>
cannam@86 611 </listitem>
cannam@86 612 </varlistentry>
cannam@86 613
cannam@86 614 <varlistentry>
cannam@86 615 <term><option>--bps</option>=<replaceable>#</replaceable></term>
cannam@86 616
cannam@86 617 <listitem>
cannam@86 618 <para>Set bits per sample.</para>
cannam@86 619 </listitem>
cannam@86 620 </varlistentry>
cannam@86 621
cannam@86 622 <varlistentry>
cannam@86 623 <term><option>--sample-rate</option>=<replaceable>#</replaceable></term>
cannam@86 624
cannam@86 625 <listitem>
cannam@86 626 <para>Set sample rate (in Hz).</para>
cannam@86 627 </listitem>
cannam@86 628 </varlistentry>
cannam@86 629
cannam@86 630 <varlistentry>
cannam@86 631 <term><option>--sign</option>={<replaceable>signed</replaceable>|<replaceable>unsigned</replaceable>}</term>
cannam@86 632
cannam@86 633 <listitem>
cannam@86 634 <para>Set the sign of samples (the default is signed).</para>
cannam@86 635 </listitem>
cannam@86 636 </varlistentry>
cannam@86 637
cannam@86 638 <varlistentry>
cannam@86 639 <term><option>--input-size</option>=<replaceable>#</replaceable></term>
cannam@86 640
cannam@86 641 <listitem>
cannam@86 642 <para>Specify 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.</para>
cannam@86 643 </listitem>
cannam@86 644 </varlistentry>
cannam@86 645
cannam@86 646 <varlistentry>
cannam@86 647 <term><option>--force-aiff-format</option></term>
cannam@86 648
cannam@86 649 <listitem>
cannam@86 650 <para>Force the decoder to output AIFF format. This option is not needed if the output filename (as set by -o) ends with <filename>.aiff</filename>. Also, this option has no effect when encoding since input AIFF is auto-detected.</para>
cannam@86 651 </listitem>
cannam@86 652 </varlistentry>
cannam@86 653
cannam@86 654 <varlistentry>
cannam@86 655 <term><option>--force-raw-format</option></term>
cannam@86 656
cannam@86 657 <listitem>
cannam@86 658 <para>Force input (when encoding) or output (when decoding) to be treated as raw samples (even if filename ends in <filename>.wav</filename>).</para>
cannam@86 659 </listitem>
cannam@86 660 </varlistentry>
cannam@86 661
cannam@86 662 </variablelist>
cannam@86 663 </refsect2>
cannam@86 664
cannam@86 665 <refsect2>
cannam@86 666 <title>Negative Options</title>
cannam@86 667
cannam@86 668 <variablelist>
cannam@86 669 <varlistentry>
cannam@86 670 <term><option>--no-adaptive-mid-side</option></term>
cannam@86 671 <term><option>--no-decode-through-errors</option></term>
cannam@86 672 <term><option>--no-delete-input-file</option></term>
cannam@86 673 <term><option>--no-exhaustive-model-search</option></term>
cannam@86 674 <term><option>--no-lax</option></term>
cannam@86 675 <term><option>--no-mid-side</option></term>
cannam@86 676 <term><option>--no-ogg</option></term>
cannam@86 677 <term><option>--no-padding</option></term>
cannam@86 678 <term><option>--no-qlp-coeff-precision-search</option></term>
cannam@86 679 <term><option>--no-residual-gnuplot</option></term>
cannam@86 680 <term><option>--no-residual-text</option></term>
cannam@86 681 <term><option>--no-sector-align</option></term>
cannam@86 682 <term><option>--no-seektable</option></term>
cannam@86 683 <term><option>--no-silent</option></term>
cannam@86 684 <term><option>--no-verify</option></term>
cannam@86 685 <term><option>--no-warnings-as-errors</option></term>
cannam@86 686 <listitem>
cannam@86 687 <para>These flags can be used to invert the sense of the corresponding normal option.</para>
cannam@86 688 </listitem>
cannam@86 689 </varlistentry>
cannam@86 690 </variablelist>
cannam@86 691
cannam@86 692 </refsect2>
cannam@86 693
cannam@86 694 </refsect1>
cannam@86 695 <refsect1>
cannam@86 696 <title>SEE ALSO</title>
cannam@86 697
cannam@86 698 <para>metaflac(1).</para>
cannam@86 699
cannam@86 700 <para>The programs are documented fully by HTML format documentation, available in <filename>/usr/share/doc/flac/html</filename> on &debian; systems.</para>
cannam@86 701 </refsect1>
cannam@86 702 <refsect1>
cannam@86 703 <title>AUTHOR</title>
cannam@86 704
cannam@86 705 <para>This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others).</para>
cannam@86 706
cannam@86 707 <!-- <para>Permission is granted to copy, distribute and/or modify this document under the terms of the <acronym>GNU</acronym> Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license can be found under <filename>/usr/share/common-licenses/FDL</filename>.</para> -->
cannam@86 708
cannam@86 709 </refsect1>
cannam@86 710 </refentry>
cannam@86 711
cannam@86 712 <!-- Keep this comment at the end of the file
cannam@86 713 Local variables:
cannam@86 714 mode: sgml
cannam@86 715 sgml-omittag:t
cannam@86 716 sgml-shorttag:t
cannam@86 717 sgml-minimize-attributes:nil
cannam@86 718 sgml-always-quote-attributes:t
cannam@86 719 sgml-indent-step:2
cannam@86 720 sgml-indent-data:t
cannam@86 721 sgml-parent-document:nil
cannam@86 722 sgml-default-dtd-file:nil
cannam@86 723 sgml-exposed-tags:nil
cannam@86 724 sgml-local-catalogs:nil
cannam@86 725 sgml-local-ecat-files:nil
cannam@86 726 End:
cannam@86 727 -->