Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 1 | <!doctype refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [ |
| 2 | |
| 3 | <!-- Fill in your name for FIRSTNAME and SURNAME. --> |
| 4 | <!ENTITY dhfirstname "<firstname>Matt</firstname>"> |
| 5 | <!ENTITY dhsurname "<surname>Zimmerman</surname>"> |
| 6 | <!-- Please adjust the date whenever revising the manpage. --> |
Martijn van Beurden | 733efde | 2013-09-18 18:51:17 +0200 | [diff] [blame] | 7 | <!ENTITY dhdate "<date>2013/09/18</date>"> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 8 | <!-- SECTION should be 1-8, maybe w/ subsection other parameters are |
| 9 | allowed: see man(7), man(1). --> |
| 10 | <!ENTITY dhsection "<manvolnum>1</manvolnum>"> |
| 11 | <!ENTITY dhemail "<email>mdz@debian.org</email>"> |
| 12 | <!ENTITY dhusername "Matt Zimmerman"> |
| 13 | <!ENTITY dhucpackage "<refentrytitle>FLAC</refentrytitle>"> |
| 14 | <!ENTITY dhpackage "flac"> |
| 15 | |
| 16 | <!ENTITY debian "<productname>Debian GNU/Linux</productname>"> |
| 17 | <!ENTITY gnu "<acronym>GNU</acronym>"> |
| 18 | ]> |
| 19 | |
| 20 | <refentry> |
| 21 | <docinfo> |
| 22 | <address> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 23 | &dhemail; |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 24 | </address> |
| 25 | <author> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 26 | &dhfirstname; |
| 27 | &dhsurname; |
| 28 | </author> |
| 29 | <copyright> |
Erik de Castro Lopo | b1982fb | 2013-05-25 17:11:19 +1000 | [diff] [blame] | 30 | <year>2002-2005, 2011-2013</year> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 31 | <holder>&dhusername;</holder> |
| 32 | </copyright> |
| 33 | &dhdate; |
| 34 | </docinfo> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 35 | <refmeta> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 36 | &dhucpackage; |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 37 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 38 | &dhsection; |
| 39 | </refmeta> |
| 40 | <refnamediv> |
| 41 | <refname>&dhpackage;</refname> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 42 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 43 | <refpurpose>Free Lossless Audio Codec</refpurpose> |
| 44 | </refnamediv> |
| 45 | <refsynopsisdiv> |
| 46 | <cmdsynopsis> |
| 47 | <command>flac</command> |
Josh Coalson | c28efe2 | 2006-11-04 03:04:21 +0000 | [diff] [blame] | 48 | <arg choice=opt><replaceable>OPTIONS</replaceable></arg> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 49 | <group rep=repeat> |
| 50 | <arg><replaceable>infile.wav</replaceable></arg> |
Josh Coalson | 7617cac | 2008-09-09 07:24:23 +0000 | [diff] [blame] | 51 | <arg><replaceable>infile.rf64</replaceable></arg> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 52 | <arg><replaceable>infile.aiff</replaceable></arg> |
| 53 | <arg><replaceable>infile.raw</replaceable></arg> |
| 54 | <arg><replaceable>infile.flac</replaceable></arg> |
Josh Coalson | 12d3a41 | 2007-08-01 03:02:00 +0000 | [diff] [blame] | 55 | <arg><replaceable>infile.oga</replaceable></arg> |
Josh Coalson | c28efe2 | 2006-11-04 03:04:21 +0000 | [diff] [blame] | 56 | <arg><replaceable>infile.ogg</replaceable></arg> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 57 | <arg>-</arg> |
| 58 | </group> |
| 59 | </cmdsynopsis> |
| 60 | <cmdsynopsis> |
| 61 | <command>flac</command> |
| 62 | <group> |
| 63 | <arg>-d</arg> <arg>--decode</arg> |
| 64 | <arg>-t</arg> <arg>--test</arg> |
| 65 | <arg>-a</arg> <arg>--analyze</arg> |
| 66 | </group> |
| 67 | <arg choice=opt><replaceable>OPTIONS</replaceable></arg> |
Josh Coalson | c28efe2 | 2006-11-04 03:04:21 +0000 | [diff] [blame] | 68 | <group rep=repeat> |
| 69 | <arg><replaceable>infile.flac</replaceable></arg> |
Josh Coalson | 12d3a41 | 2007-08-01 03:02:00 +0000 | [diff] [blame] | 70 | <arg><replaceable>infile.oga</replaceable></arg> |
Josh Coalson | c28efe2 | 2006-11-04 03:04:21 +0000 | [diff] [blame] | 71 | <arg><replaceable>infile.ogg</replaceable></arg> |
| 72 | <arg>-</arg> |
| 73 | </group> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 74 | </cmdsynopsis> |
| 75 | </refsynopsisdiv> |
| 76 | <refsect1> |
| 77 | <title>DESCRIPTION</title> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 78 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 79 | <para><command>flac</command> is a command-line tool for encoding, decoding, testing and analyzing FLAC streams.</para> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 80 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 81 | </refsect1> |
| 82 | <refsect1> |
| 83 | <title>OPTIONS</title> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 84 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 85 | <para>A summary of options is included below. For a complete |
| 86 | description, see the HTML documentation.</para> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 87 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 88 | <refsect2> |
| 89 | <title>General Options</title> |
| 90 | |
| 91 | <variablelist> |
| 92 | <varlistentry> |
| 93 | <term><option>-v</option>, <option>--version</option></term> |
| 94 | <listitem> |
| 95 | <para>Show the flac version number</para> |
| 96 | </listitem> |
| 97 | </varlistentry> |
| 98 | |
| 99 | <varlistentry> |
| 100 | <term><option>-h</option>, <option>--help</option> |
| 101 | </term> |
| 102 | <listitem> |
| 103 | <para>Show basic usage and a list of all options</para> |
| 104 | </listitem> |
| 105 | </varlistentry> |
| 106 | |
| 107 | <varlistentry> |
| 108 | <term><option>-H</option>, <option>--explain</option> |
| 109 | </term> |
| 110 | <listitem> |
| 111 | <para>Show detailed explanation of usage and all options</para> |
| 112 | </listitem> |
| 113 | </varlistentry> |
| 114 | |
| 115 | <varlistentry> |
| 116 | <term><option>-d</option>, <option>--decode</option> |
| 117 | </term> |
| 118 | <listitem> |
| 119 | <para>Decode (the default behavior is to encode)</para> |
| 120 | </listitem> |
| 121 | </varlistentry> |
| 122 | |
| 123 | <varlistentry> |
| 124 | <term><option>-t</option>, <option>--test</option> |
| 125 | </term> |
| 126 | <listitem> |
| 127 | <para>Test a flac encoded file (same as -d except no decoded file is written)</para> |
| 128 | </listitem> |
| 129 | </varlistentry> |
| 130 | |
| 131 | <varlistentry> |
| 132 | <term><option>-a</option>, <option>--analyze</option> |
| 133 | </term> |
| 134 | <listitem> |
| 135 | <para>Analyze a FLAC encoded file (same as -d except an analysis file is written)</para> |
| 136 | </listitem> |
| 137 | </varlistentry> |
| 138 | |
| 139 | <varlistentry> |
| 140 | <term><option>-c</option>, <option>--stdout</option> |
| 141 | </term> |
| 142 | <listitem> |
| 143 | <para>Write output to stdout</para> |
| 144 | </listitem> |
| 145 | </varlistentry> |
| 146 | |
| 147 | <varlistentry> |
| 148 | <term><option>-s</option>, <option>--silent</option> |
| 149 | </term> |
| 150 | <listitem> |
| 151 | <para>Silent mode (do not write runtime encode/decode statistics to stderr)</para> |
| 152 | </listitem> |
| 153 | </varlistentry> |
| 154 | |
| 155 | <varlistentry> |
| 156 | <term><option>--totally-silent</option> |
| 157 | </term> |
| 158 | <listitem> |
| 159 | <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> |
| 160 | </listitem> |
| 161 | </varlistentry> |
| 162 | |
| 163 | <varlistentry> |
Josh Coalson | 21a4b6b | 2007-07-26 07:57:51 +0000 | [diff] [blame] | 164 | <term><option>--no-utf8-convert</option> |
| 165 | </term> |
| 166 | <listitem> |
| 167 | <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> |
| 168 | </listitem> |
| 169 | </varlistentry> |
| 170 | |
| 171 | <varlistentry> |
Josh Coalson | b05d4ee | 2007-02-06 01:43:58 +0000 | [diff] [blame] | 172 | <term><option>-w</option>, <option>--warnings-as-errors</option> |
| 173 | </term> |
| 174 | <listitem> |
| 175 | <para>Treat all warnings as errors (which cause flac to terminate with a non-zero exit code).</para> |
| 176 | </listitem> |
| 177 | </varlistentry> |
| 178 | |
| 179 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 180 | <term><option>-f</option>, <option>--force</option> |
| 181 | </term> |
| 182 | <listitem> |
| 183 | <para>Force overwriting of output files. By default, flac warns that the output file already exists and continues to the next file.</para> |
| 184 | </listitem> |
| 185 | </varlistentry> |
| 186 | |
| 187 | <varlistentry> |
| 188 | <term><option>-o</option> <replaceable>filename</replaceable>, <option>--output-name</option>=<replaceable>filename</replaceable></term> |
| 189 | <listitem> |
| 190 | <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> |
| 191 | </listitem> |
| 192 | </varlistentry> |
| 193 | |
| 194 | <varlistentry> |
| 195 | <term><option>--output-prefix</option>=<replaceable>string</replaceable></term> |
| 196 | <listitem> |
| 197 | <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> |
| 198 | </listitem> |
| 199 | </varlistentry> |
| 200 | |
| 201 | <varlistentry> |
| 202 | <term><option>--delete-input-file</option> |
| 203 | </term> |
| 204 | <listitem> |
| 205 | <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> |
| 206 | </listitem> |
| 207 | </varlistentry> |
| 208 | |
| 209 | <varlistentry> |
Josh Coalson | 08ef65e | 2007-10-02 00:11:45 +0000 | [diff] [blame] | 210 | <term><option>--preserve-modtime</option> |
| 211 | </term> |
| 212 | <listitem> |
| 213 | <para>Output files have their timestamps/permissions set to match those of their inputs (this is default). Use --no-preserve-modtime to make output files have the current time and default permissions.</para> |
| 214 | </listitem> |
| 215 | </varlistentry> |
| 216 | |
| 217 | <varlistentry> |
Josh Coalson | 908e5c8 | 2007-09-12 01:04:40 +0000 | [diff] [blame] | 218 | <term><option>--keep-foreign-metadata</option> |
| 219 | </term> |
| 220 | <listitem> |
Josh Coalson | 7617cac | 2008-09-09 07:24:23 +0000 | [diff] [blame] | 221 | <para>If encoding, save WAVE, RF64, 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> |
Josh Coalson | 908e5c8 | 2007-09-12 01:04:40 +0000 | [diff] [blame] | 222 | </listitem> |
| 223 | </varlistentry> |
| 224 | |
| 225 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 226 | <term><option>--skip</option>={<replaceable>#</replaceable>|<replaceable>mm:ss.ss</replaceable>}</term> |
| 227 | <listitem> |
| 228 | <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> |
| 229 | </listitem> |
| 230 | </varlistentry> |
| 231 | |
| 232 | <varlistentry> |
| 233 | <term><option>--until</option>={<replaceable>#</replaceable>|[<replaceable>+</replaceable>|<replaceable>-</replaceable>]<replaceable>mm:ss.ss</replaceable>}</term> |
| 234 | <listitem> |
| 235 | <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> |
| 236 | </listitem> |
| 237 | </varlistentry> |
| 238 | |
| 239 | <varlistentry> |
| 240 | <term><option>--ogg</option></term> |
| 241 | |
| 242 | <listitem> |
Josh Coalson | 12d3a41 | 2007-08-01 03:02:00 +0000 | [diff] [blame] | 243 | <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> |
| 244 | <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> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 245 | </listitem> |
| 246 | </varlistentry> |
| 247 | |
| 248 | <varlistentry> |
| 249 | <term><option>--serial-number</option>=<replaceable>#</replaceable></term> |
| 250 | |
| 251 | <listitem> |
| 252 | <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> |
| 253 | </listitem> |
| 254 | </varlistentry> |
| 255 | |
| 256 | </variablelist> |
| 257 | </refsect2> |
| 258 | |
| 259 | <refsect2> |
| 260 | <title>Analysis Options</title> |
| 261 | |
| 262 | <variablelist> |
| 263 | <varlistentry> |
| 264 | <term><option>--residual-text</option> |
| 265 | </term> |
| 266 | <listitem> |
| 267 | <para>Includes the residual signal in the analysis file. This will make the file very big, much larger than even the decoded file.</para> |
| 268 | </listitem> |
| 269 | </varlistentry> |
| 270 | |
| 271 | <varlistentry> |
| 272 | <term><option>--residual-gnuplot</option> |
| 273 | </term> |
| 274 | <listitem> |
| 275 | <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> |
| 276 | </listitem> |
| 277 | </varlistentry> |
| 278 | |
| 279 | </variablelist> |
| 280 | </refsect2> |
| 281 | |
| 282 | <refsect2> |
| 283 | <title>Decoding Options</title> |
| 284 | |
| 285 | <variablelist> |
| 286 | <varlistentry> |
| 287 | <term><option>--cue=[<replaceable>#.#</replaceable>][-[<replaceable>#.#</replaceable>]]</option></term> |
| 288 | <listitem> |
| 289 | <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> |
| 290 | </listitem> |
| 291 | </varlistentry> |
| 292 | |
| 293 | <varlistentry> |
| 294 | <term><option>-F</option>, <option>--decode-through-errors</option> |
| 295 | </term> |
| 296 | <listitem> |
| 297 | <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> |
| 298 | </listitem> |
| 299 | </varlistentry> |
| 300 | |
Erik de Castro Lopo | 6ed3809 | 2013-04-28 15:48:41 +1000 | [diff] [blame] | 301 | <varlistentry> |
| 302 | <term><option>--apply-replaygain-which-is-not-lossless[=<specification>]</option> |
| 303 | </term> |
| 304 | <listitem> |
| 305 | <para>Applies ReplayGain values while decoding.</para> |
| 306 | <para>WARNING: THIS IS NOT LOSSLESS. DECODED AUDIO WILL NOT BE IDENTICAL TO THE ORIGINAL WITH THIS OPTION.</para> |
| 307 | <para>The equals sign and <specification> is optional. If omitted, the default is 0aLn1.</para> |
| 308 | <para>The <specification> is a shorthand notation for describing how to apply ReplayGain. All components are optional but order is important. '[]' means 'optional'. '|' means 'or'. '{}' means required. The format is:</para> |
| 309 | <para>[<preamp>][a|t][l|L][n{0|1|2|3}]</para> |
| 310 | |
| 311 | <variablelist> |
| 312 | <varlistentry> |
| 313 | <term><option>preamp</option></term> |
| 314 | <listitem> |
| 315 | <para>A floating point number in dB. This is added to the existing gain value.</para> |
| 316 | </listitem> |
| 317 | </varlistentry> |
| 318 | |
| 319 | <varlistentry> |
| 320 | <term><option>a|t</option></term> |
| 321 | <listitem> |
| 322 | <para>Specify 'a' to use the album gain, or 't' to use the track gain. If tags for the preferred kind (album/track) do not exist but tags for the other (track/album) do, those will be used instead.</para> |
| 323 | </listitem> |
| 324 | </varlistentry> |
| 325 | |
| 326 | <varlistentry> |
| 327 | <term><option>l|L</option></term> |
| 328 | <listitem> |
| 329 | <para>Specify 'l' to peak-limit the output, so that the ReplayGain peak value is full-scale. Specify 'L' to use a 6dB hard limiter that kicks in when the signal approaches full-scale.</para> |
| 330 | </listitem> |
| 331 | </varlistentry> |
| 332 | |
| 333 | <varlistentry> |
| 334 | <term><option>n{0|1|2|3}</option></term> |
| 335 | <listitem> |
| 336 | <para>Specify the amount of noise shaping. ReplayGain synthesis happens in floating point; the result is dithered before converting back to integer. This quantization adds noise. Noise shaping tries to move the noise where you won't hear it as much. 0 means no noise shaping, 1 means 'low', 2 means 'medium', 3 means 'high'.</para> |
| 337 | </listitem> |
| 338 | </varlistentry> |
| 339 | |
| 340 | </variablelist> |
| 341 | |
| 342 | <para>For example, the default of 0aLn1 means 0dB preamp, use album gain, 6dB hard limit, low noise shaping.</para> |
| 343 | <para>--apply-replaygain-which-is-not-lossless=3 means 3dB preamp, use album gain, no limiting, no noise shaping.</para> |
| 344 | <para>flac uses the ReplayGain tags for the calculation. If a stream does not have the required tags or they can't be parsed, decoding will continue with a warning, and no ReplayGain is applied to that stream.</para> |
| 345 | </listitem> |
| 346 | </varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 347 | </variablelist> |
| 348 | </refsect2> |
| 349 | |
| 350 | <refsect2> |
| 351 | <title>Encoding Options</title> |
| 352 | |
| 353 | <variablelist> |
| 354 | <varlistentry> |
| 355 | <term><option>-V</option>, <option>--verify</option></term> |
| 356 | |
| 357 | <listitem> |
| 358 | <para>Verify a correct encoding by decoding the output in parallel and comparing to the original</para> |
| 359 | </listitem> |
| 360 | </varlistentry> |
| 361 | |
| 362 | <varlistentry> |
| 363 | <term><option>--lax</option></term> |
| 364 | |
| 365 | <listitem> |
| 366 | <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> |
| 367 | </listitem> |
| 368 | </varlistentry> |
| 369 | |
| 370 | <varlistentry> |
| 371 | <term><option>--replay-gain</option></term> |
| 372 | |
| 373 | <listitem> |
| 374 | <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> |
| 375 | </listitem> |
| 376 | </varlistentry> |
| 377 | |
| 378 | <varlistentry> |
| 379 | <term><option>--cuesheet</option>=<replaceable>filename</replaceable></term> |
| 380 | |
| 381 | <listitem> |
| 382 | <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> |
| 383 | </listitem> |
| 384 | </varlistentry> |
| 385 | |
| 386 | <varlistentry> |
Josh Coalson | b05d4ee | 2007-02-06 01:43:58 +0000 | [diff] [blame] | 387 | <term><option>--picture</option>={<replaceable>FILENAME</replaceable>|<replaceable>SPECIFICATION</replaceable>}</term> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 388 | |
| 389 | <listitem> |
Josh Coalson | b05d4ee | 2007-02-06 01:43:58 +0000 | [diff] [blame] | 390 | <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> |
| 391 | <para>[TYPE]|[MIME-TYPE]|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 392 | <para>TYPE is optional; it is a number from one of:</para> |
| 393 | <para>0: Other</para> |
| 394 | <para>1: 32x32 pixels 'file icon' (PNG only)</para> |
| 395 | <para>2: Other file icon</para> |
| 396 | <para>3: Cover (front)</para> |
| 397 | <para>4: Cover (back)</para> |
| 398 | <para>5: Leaflet page</para> |
| 399 | <para>6: Media (e.g. label side of CD)</para> |
| 400 | <para>7: Lead artist/lead performer/soloist</para> |
| 401 | <para>8: Artist/performer</para> |
| 402 | <para>9: Conductor</para> |
| 403 | <para>10: Band/Orchestra</para> |
| 404 | <para>11: Composer</para> |
| 405 | <para>12: Lyricist/text writer</para> |
| 406 | <para>13: Recording Location</para> |
| 407 | <para>14: During recording</para> |
| 408 | <para>15: During performance</para> |
| 409 | <para>16: Movie/video screen capture</para> |
| 410 | <para>17: A bright coloured fish</para> |
| 411 | <para>18: Illustration</para> |
| 412 | <para>19: Band/artist logotype</para> |
| 413 | <para>20: Publisher/Studio logotype</para> |
| 414 | <para>The default is 3 (front cover). There may only be one picture each of type 1 and 2 in a file.</para> |
| 415 | |
Josh Coalson | b05d4ee | 2007-02-06 01:43:58 +0000 | [diff] [blame] | 416 | <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 --> to mean that FILE is actually a URL to an image, though this use is discouraged.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 417 | |
| 418 | <para>DESCRIPTION is optional; the default is an empty string.</para> |
| 419 | |
| 420 | <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> |
| 421 | |
| 422 | <para>FILE is the path to the picture file to be imported, or the URL if MIME type is --></para> |
| 423 | |
| 424 | <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> |
| 425 | |
| 426 | <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> |
| 427 | </listitem> |
| 428 | </varlistentry> |
| 429 | |
| 430 | <varlistentry> |
| 431 | <term><option>--sector-align</option></term> |
| 432 | |
| 433 | <listitem> |
Josh Coalson | 08ef65e | 2007-10-02 00:11:45 +0000 | [diff] [blame] | 434 | <para>Align encoding of multiple CD format files on sector boundaries. See the HTML documentation for more information. This option is DEPRECATED and may not exist in future versions of flac.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 435 | </listitem> |
| 436 | </varlistentry> |
| 437 | |
| 438 | <varlistentry> |
Erik de Castro Lopo | 03b9d5d | 2013-04-28 14:30:05 +1000 | [diff] [blame] | 439 | <term><option>--ignore-chunk-sizes</option></term> |
| 440 | |
| 441 | <listitem> |
| 442 | <para>When encoding to flac, ignore the file size headers in WAV and AIFF files to attempt to work around problems with over-sized or malformed files.</para> |
| 443 | <para>WAV and AIFF files both have an unsigned 32 bit numbers in the file header which specifes the length of audio data. Since this number is unsigned 32 bits, that limits the size of a valid file to being just over 4 Gigabytes. Files larger than this are mal-formed, but should be read correctly using this option.</para> |
| 444 | </listitem> |
| 445 | </varlistentry> |
| 446 | |
| 447 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 448 | <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> |
| 449 | |
| 450 | <listitem> |
| 451 | <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> |
| 452 | </listitem> |
| 453 | </varlistentry> |
| 454 | |
| 455 | <varlistentry> |
| 456 | <term><option>-P</option> <replaceable>#</replaceable>, <option>--padding</option>=<replaceable>#</replaceable></term> |
| 457 | |
| 458 | <listitem> |
Josh Coalson | 6f5568e | 2006-09-27 05:02:11 +0000 | [diff] [blame] | 459 | <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> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 460 | </listitem> |
| 461 | </varlistentry> |
| 462 | |
| 463 | <varlistentry> |
| 464 | <term><option>-T</option> <replaceable>FIELD=VALUE</replaceable>, <option>--tag</option>=<replaceable>FIELD=VALUE</replaceable></term> |
| 465 | |
| 466 | <listitem> |
| 467 | <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> |
| 468 | </listitem> |
| 469 | </varlistentry> |
| 470 | |
| 471 | <varlistentry> |
| 472 | <term><option>--tag-from-file</option>=<replaceable>FIELD=FILENAME</replaceable></term> |
| 473 | |
| 474 | <listitem> |
| 475 | <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> |
| 476 | </listitem> |
| 477 | </varlistentry> |
| 478 | |
| 479 | <varlistentry> |
| 480 | <term><option>-b</option> <replaceable>#</replaceable>, <option>--blocksize</option>=<replaceable>#</replaceable></term> |
| 481 | |
| 482 | <listitem> |
Josh Coalson | ebd7be8 | 2006-11-03 16:15:32 +0000 | [diff] [blame] | 483 | <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 >48kHz).</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 484 | </listitem> |
| 485 | </varlistentry> |
| 486 | |
| 487 | <varlistentry> |
| 488 | <term><option>-m</option>, <option>--mid-side</option></term> |
| 489 | |
| 490 | <listitem> |
| 491 | <para>Try mid-side coding for each frame (stereo input only)</para> |
| 492 | </listitem> |
| 493 | </varlistentry> |
| 494 | |
| 495 | <varlistentry> |
| 496 | <term><option>-M</option>, <option>--adaptive-mid-side</option></term> |
| 497 | |
| 498 | <listitem> |
| 499 | <para>Adaptive mid-side coding for all frames (stereo input only)</para> |
| 500 | </listitem> |
| 501 | </varlistentry> |
| 502 | |
| 503 | <varlistentry> |
| 504 | <term><option>-0</option>..<option>-8</option>, <option>--compression-level-0</option>..<option>--compression-level-8</option></term> |
| 505 | |
| 506 | <listitem> |
| 507 | <para>Fastest compression..highest compression (default is -5). These are synonyms for other options:</para> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 508 | |
| 509 | <variablelist> |
| 510 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 511 | <term><option>-0</option>, <option>--compression-level-0</option></term> |
| 512 | |
Josh Coalson | 3cf909c | 2002-08-20 03:57:59 +0000 | [diff] [blame] | 513 | <listitem> |
Josh Coalson | d83553d | 2007-02-06 04:48:26 +0000 | [diff] [blame] | 514 | <para>Synonymous with -l 0 -b 1152 -r 3</para> |
Josh Coalson | 3cf909c | 2002-08-20 03:57:59 +0000 | [diff] [blame] | 515 | </listitem> |
| 516 | </varlistentry> |
| 517 | |
| 518 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 519 | <term><option>-1</option>, <option>--compression-level-1</option></term> |
| 520 | |
Josh Coalson | c74cbef | 2001-10-31 23:15:20 +0000 | [diff] [blame] | 521 | <listitem> |
Josh Coalson | d83553d | 2007-02-06 04:48:26 +0000 | [diff] [blame] | 522 | <para>Synonymous with -l 0 -b 1152 -M -r 3</para> |
Josh Coalson | c74cbef | 2001-10-31 23:15:20 +0000 | [diff] [blame] | 523 | </listitem> |
| 524 | </varlistentry> |
| 525 | |
| 526 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 527 | <term><option>-2</option>, <option>--compression-level-2</option></term> |
| 528 | |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 529 | <listitem> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 530 | <para>Synonymous with -l 0 -b 1152 -m -r 3</para> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 531 | </listitem> |
| 532 | </varlistentry> |
| 533 | |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 534 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 535 | <term><option>-3</option>, <option>--compression-level-3</option></term> |
| 536 | |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 537 | <listitem> |
Josh Coalson | dc2b03b | 2007-02-06 05:02:46 +0000 | [diff] [blame] | 538 | <para>Synonymous with -l 6 -b 4096 -r 4</para> |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 539 | </listitem> |
| 540 | </varlistentry> |
Matt Zimmerman | cb44927 | 2001-08-17 16:31:17 +0000 | [diff] [blame] | 541 | |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 542 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 543 | <term><option>-4</option>, <option>--compression-level-4</option></term> |
| 544 | |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 545 | <listitem> |
Josh Coalson | dc2b03b | 2007-02-06 05:02:46 +0000 | [diff] [blame] | 546 | <para>Synonymous with -l 8 -b 4096 -M -r 4</para> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 547 | </listitem> |
| 548 | </varlistentry> |
| 549 | |
| 550 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 551 | <term><option>-5</option>, <option>--compression-level-5</option></term> |
| 552 | |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 553 | <listitem> |
Josh Coalson | dc2b03b | 2007-02-06 05:02:46 +0000 | [diff] [blame] | 554 | <para>Synonymous with -l 8 -b 4096 -m -r 5</para> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 555 | </listitem> |
| 556 | </varlistentry> |
| 557 | |
Josh Coalson | d9c278a | 2004-09-08 00:56:03 +0000 | [diff] [blame] | 558 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 559 | <term><option>-6</option>, <option>--compression-level-6</option></term> |
| 560 | |
Josh Coalson | d9c278a | 2004-09-08 00:56:03 +0000 | [diff] [blame] | 561 | <listitem> |
Erik de Castro Lopo | 9971e70 | 2014-11-15 09:19:19 -0800 | [diff] [blame] | 562 | <para>Synonymous with -l 8 -b 4096 -m -r 6 -A tukey(0.5) -A partial_tukey(2)</para> |
Josh Coalson | d9c278a | 2004-09-08 00:56:03 +0000 | [diff] [blame] | 563 | </listitem> |
| 564 | </varlistentry> |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 565 | |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 566 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 567 | <term><option>-7</option>, <option>--compression-level-7</option></term> |
| 568 | |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 569 | <listitem> |
Erik de Castro Lopo | 9971e70 | 2014-11-15 09:19:19 -0800 | [diff] [blame] | 570 | <para>Synonymous with -l 8 -b 4096 -m -e -r 6 -A tukey(0.5) -A partial_tukey(2)</para> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 571 | </listitem> |
| 572 | </varlistentry> |
| 573 | |
| 574 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 575 | <term><option>-8</option>, <option>--compression-level-8</option></term> |
Josh Coalson | f391132 | 2002-09-20 05:53:10 +0000 | [diff] [blame] | 576 | |
| 577 | <listitem> |
Erik de Castro Lopo | 9971e70 | 2014-11-15 09:19:19 -0800 | [diff] [blame] | 578 | <para>Synonymous with -l 12 -b 4096 -m -e -r 6 -A tukey(0.5) -A partial_tukey(2) -A punchout_tukey(3)</para> |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 579 | </listitem> |
| 580 | </varlistentry> |
| 581 | </variablelist> |
| 582 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 583 | </listitem> |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 584 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 585 | </varlistentry> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 586 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 587 | <varlistentry> |
| 588 | <term><option>--fast</option></term> |
Josh Coalson | 9906056 | 2002-12-21 03:28:06 +0000 | [diff] [blame] | 589 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 590 | <listitem> |
| 591 | <para>Fastest compression. Currently synonymous with -0.</para> |
| 592 | </listitem> |
| 593 | </varlistentry> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 594 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 595 | <varlistentry> |
| 596 | <term><option>--best</option></term> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 597 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 598 | <listitem> |
| 599 | <para>Highest compression. Currently synonymous with -8.</para> |
| 600 | </listitem> |
| 601 | </varlistentry> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 602 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 603 | <varlistentry> |
| 604 | <term><option>-e</option>, <option>--exhaustive-model-search</option></term> |
Josh Coalson | 490c287 | 2001-01-31 02:07:24 +0000 | [diff] [blame] | 605 | |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 606 | <listitem> |
| 607 | <para>Do exhaustive model search (expensive!)</para> |
| 608 | </listitem> |
| 609 | </varlistentry> |
| 610 | |
| 611 | <varlistentry> |
| 612 | <term><option>-A</option> <replaceable>function</replaceable>, <option>--apodization</option>=<replaceable>function</replaceable></term> |
| 613 | |
| 614 | <listitem> |
Martijn van Beurden | 29a2833 | 2014-08-10 10:59:29 +0200 | [diff] [blame] | 615 | <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), partial_tukey(n[/ov[/P]]), punchout_tukey(n[/ov[/P]]), welch.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 616 | <para>For gauss(STDDEV), STDDEV is the standard deviation (0<STDDEV<=0.5).</para> |
| 617 | <para>For 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").</para> |
Martijn van Beurden | 29a2833 | 2014-08-10 10:59:29 +0200 | [diff] [blame] | 618 | <para>For partial_tukey(n) and punchout_tukey(n), n apodization functions are added that span different parts of each block. Values of 2 to 6 seem to yield sane results. If necessary, an overlap can be specified, as can be the taper parameter, for example partial_tukey(2/0.2) or partial_tukey(2/0.2/0.5). ov should be smaller than 1 and can be negative.</para> |
| 619 | <para>Please note that P, STDDEV and ov are locale specific, so a comma as decimal separator might be required instead of a dot.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 620 | <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> |
| 621 | <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> |
| 622 | </listitem> |
| 623 | </varlistentry> |
| 624 | |
| 625 | <varlistentry> |
| 626 | <term><option>-l</option> <replaceable>#</replaceable>, <option>--max-lpc-order</option>=<replaceable>#</replaceable></term> |
| 627 | |
| 628 | <listitem> |
Josh Coalson | d0edb97 | 2006-10-07 06:50:08 +0000 | [diff] [blame] | 629 | <para>Specifies 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.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 630 | </listitem> |
| 631 | </varlistentry> |
| 632 | |
| 633 | <varlistentry> |
| 634 | <term><option>-p</option>, <option>--qlp-coeff-precision-search</option></term> |
| 635 | |
| 636 | <listitem> |
| 637 | <para>Do exhaustive search of LP coefficient quantization (expensive!). Overrides -q; does nothing if using -l 0</para> |
| 638 | </listitem> |
| 639 | </varlistentry> |
| 640 | |
| 641 | <varlistentry> |
| 642 | <term><option>-q</option> <replaceable>#</replaceable>, <option>--qlp-coeff-precision</option>=<replaceable>#</replaceable></term> |
| 643 | |
| 644 | <listitem> |
| 645 | <para>Precision of the quantized linear-predictor coefficients, 0 => let encoder decide (min is 5, default is 0)</para> |
| 646 | </listitem> |
| 647 | </varlistentry> |
| 648 | |
| 649 | <varlistentry> |
| 650 | <term><option>-r</option> [<replaceable>#</replaceable>,]<replaceable>#</replaceable>, <option>--rice-partition-order</option>=[<replaceable>#</replaceable>,]<replaceable>#</replaceable></term> |
| 651 | |
| 652 | <listitem> |
Martijn van Beurden | 733efde | 2013-09-18 18:51:17 +0200 | [diff] [blame] | 653 | <para>Set the [min,]max residual partition order (0..15). min defaults to 0 if unspecified. Default is -r 5.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 654 | </listitem> |
| 655 | </varlistentry> |
| 656 | |
| 657 | </variablelist> |
| 658 | |
| 659 | </refsect2> |
| 660 | <refsect2> |
| 661 | <title>Format Options</title> |
| 662 | |
| 663 | <variablelist> |
| 664 | <varlistentry> |
| 665 | <term><option>--endian</option>={<replaceable>big</replaceable>|<replaceable>little</replaceable>}</term> |
| 666 | |
| 667 | <listitem> |
| 668 | <para>Set the byte order for samples</para> |
| 669 | </listitem> |
| 670 | </varlistentry> |
| 671 | |
| 672 | <varlistentry> |
| 673 | <term><option>--channels</option>=<replaceable>#</replaceable></term> |
| 674 | |
| 675 | <listitem> |
| 676 | <para>Set number of channels.</para> |
| 677 | </listitem> |
| 678 | </varlistentry> |
| 679 | |
| 680 | <varlistentry> |
| 681 | <term><option>--bps</option>=<replaceable>#</replaceable></term> |
| 682 | |
| 683 | <listitem> |
| 684 | <para>Set bits per sample.</para> |
| 685 | </listitem> |
| 686 | </varlistentry> |
| 687 | |
| 688 | <varlistentry> |
| 689 | <term><option>--sample-rate</option>=<replaceable>#</replaceable></term> |
| 690 | |
| 691 | <listitem> |
| 692 | <para>Set sample rate (in Hz).</para> |
| 693 | </listitem> |
| 694 | </varlistentry> |
| 695 | |
| 696 | <varlistentry> |
| 697 | <term><option>--sign</option>={<replaceable>signed</replaceable>|<replaceable>unsigned</replaceable>}</term> |
| 698 | |
| 699 | <listitem> |
| 700 | <para>Set the sign of samples (the default is signed).</para> |
| 701 | </listitem> |
| 702 | </varlistentry> |
| 703 | |
| 704 | <varlistentry> |
| 705 | <term><option>--input-size</option>=<replaceable>#</replaceable></term> |
| 706 | |
| 707 | <listitem> |
Miroslav Lichvar | 1ec6e3a | 2013-03-27 17:49:19 +0100 | [diff] [blame] | 708 | <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, --cuesheet, 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> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 709 | </listitem> |
| 710 | </varlistentry> |
| 711 | |
| 712 | <varlistentry> |
Josh Coalson | d7f5344 | 2008-09-09 07:49:19 +0000 | [diff] [blame] | 713 | <term><option>--force-raw-format</option></term> |
| 714 | |
| 715 | <listitem> |
| 716 | <para>Force input (when encoding) or output (when decoding) to be treated as raw samples (even if filename ends in <filename>.wav</filename>).</para> |
| 717 | </listitem> |
| 718 | </varlistentry> |
| 719 | |
| 720 | <varlistentry> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 721 | <term><option>--force-aiff-format</option></term> |
| 722 | |
| 723 | <listitem> |
Josh Coalson | 7617cac | 2008-09-09 07:24:23 +0000 | [diff] [blame] | 724 | <para>Force the decoder to output AIFF format. This option is not needed if the output filename (as set by -o) ends with <filename>.aif</filename> or <filename>.aiff</filename>. Also, this option has no effect when encoding since input AIFF is auto-detected.</para> |
| 725 | </listitem> |
| 726 | </varlistentry> |
| 727 | |
| 728 | <varlistentry> |
| 729 | <term><option>--force-rf64-format</option></term> |
| 730 | |
| 731 | <listitem> |
| 732 | <para>Force the decoder to output RF64 format. This option is not needed if the output filename (as set by -o) ends with <filename>.rf64</filename>. Also, this option has no effect when encoding since input RF64 is auto-detected.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 733 | </listitem> |
| 734 | </varlistentry> |
| 735 | |
| 736 | <varlistentry> |
Josh Coalson | d7f5344 | 2008-09-09 07:49:19 +0000 | [diff] [blame] | 737 | <term><option>--force-wave64-format</option></term> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 738 | |
| 739 | <listitem> |
Josh Coalson | d7f5344 | 2008-09-09 07:49:19 +0000 | [diff] [blame] | 740 | <para>Force the decoder to output Wave64 format. This option is not needed if the output filename (as set by -o) ends with <filename>.w64</filename>. Also, this option has no effect when encoding since input Wave64 is auto-detected.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 741 | </listitem> |
| 742 | </varlistentry> |
| 743 | |
| 744 | </variablelist> |
| 745 | </refsect2> |
| 746 | |
| 747 | <refsect2> |
| 748 | <title>Negative Options</title> |
| 749 | |
| 750 | <variablelist> |
| 751 | <varlistentry> |
| 752 | <term><option>--no-adaptive-mid-side</option></term> |
Miroslav Lichvar | 1ec6e3a | 2013-03-27 17:49:19 +0100 | [diff] [blame] | 753 | <term><option>--no-cued-seekpoints</option></term> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 754 | <term><option>--no-decode-through-errors</option></term> |
| 755 | <term><option>--no-delete-input-file</option></term> |
Josh Coalson | 08ef65e | 2007-10-02 00:11:45 +0000 | [diff] [blame] | 756 | <term><option>--no-preserve-modtime</option></term> |
| 757 | <term><option>--no-keep-foreign-metadata</option></term> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 758 | <term><option>--no-exhaustive-model-search</option></term> |
Miroslav Lichvar | b61825d | 2012-11-30 16:38:28 +0100 | [diff] [blame] | 759 | <term><option>--no-force</option></term> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 760 | <term><option>--no-lax</option></term> |
| 761 | <term><option>--no-mid-side</option></term> |
| 762 | <term><option>--no-ogg</option></term> |
| 763 | <term><option>--no-padding</option></term> |
Miroslav Lichvar | 1ec6e3a | 2013-03-27 17:49:19 +0100 | [diff] [blame] | 764 | <term><option>--no-qlp-coeff-prec-search</option></term> |
Miroslav Lichvar | b61825d | 2012-11-30 16:38:28 +0100 | [diff] [blame] | 765 | <term><option>--no-replay-gain</option></term> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 766 | <term><option>--no-residual-gnuplot</option></term> |
| 767 | <term><option>--no-residual-text</option></term> |
| 768 | <term><option>--no-sector-align</option></term> |
| 769 | <term><option>--no-seektable</option></term> |
| 770 | <term><option>--no-silent</option></term> |
| 771 | <term><option>--no-verify</option></term> |
Josh Coalson | b05d4ee | 2007-02-06 01:43:58 +0000 | [diff] [blame] | 772 | <term><option>--no-warnings-as-errors</option></term> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 773 | <listitem> |
| 774 | <para>These flags can be used to invert the sense of the corresponding normal option.</para> |
| 775 | </listitem> |
| 776 | </varlistentry> |
| 777 | </variablelist> |
| 778 | |
| 779 | </refsect2> |
| 780 | |
| 781 | </refsect1> |
| 782 | <refsect1> |
| 783 | <title>SEE ALSO</title> |
| 784 | |
Martijn van Beurden | 733efde | 2013-09-18 18:51:17 +0200 | [diff] [blame] | 785 | <para>metaflac(1)</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 786 | |
Ulrich Klauer | 9aa4032 | 2013-04-11 22:05:17 +0200 | [diff] [blame] | 787 | <para>The programs are documented fully by HTML format documentation, available in <filename>/usr/share/doc/libflac-doc/html</filename> on &debian; systems.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 788 | </refsect1> |
| 789 | <refsect1> |
| 790 | <title>AUTHOR</title> |
| 791 | |
Martijn van Beurden | 733efde | 2013-09-18 18:51:17 +0200 | [diff] [blame] | 792 | <para>This manual page was initially written by &dhusername; &dhemail; for the &debian; system (but may be used by others). It has been kept up-to-date by the Xiph.org Foundation.</para> |
Josh Coalson | 291d9fc | 2006-09-25 05:15:04 +0000 | [diff] [blame] | 793 | |
| 794 | <!-- <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> --> |
| 795 | |
| 796 | </refsect1> |
| 797 | </refentry> |
| 798 | |
| 799 | <!-- Keep this comment at the end of the file |
| 800 | Local variables: |
| 801 | mode: sgml |
| 802 | sgml-omittag:t |
| 803 | sgml-shorttag:t |
| 804 | sgml-minimize-attributes:nil |
| 805 | sgml-always-quote-attributes:t |
| 806 | sgml-indent-step:2 |
| 807 | sgml-indent-data:t |
| 808 | sgml-parent-document:nil |
| 809 | sgml-default-dtd-file:nil |
| 810 | sgml-exposed-tags:nil |
| 811 | sgml-local-catalogs:nil |
| 812 | sgml-local-ecat-files:nil |
| 813 | End: |
| 814 | --> |