Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 1 | .\" 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>. |
Martijn van Beurden | 733efde | 2013-09-18 18:51:17 +0200 | [diff] [blame] | 6 | .TH "FLAC" "1" "2013/09/18" "" "" |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 7 | |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 8 | .SH NAME |
| 9 | flac \- Free Lossless Audio Codec |
| 10 | .SH SYNOPSIS |
| 11 | |
Erik de Castro Lopo | a2923e6 | 2012-09-19 18:06:49 +1000 | [diff] [blame] | 12 | \fBflac\fR [ \fB\fIOPTIONS\fB\fR ] [ \fB\fIinfile.wav\fB\fR | \fB\fIinfile.rf64\fB\fR | \fB\fIinfile.aiff\fB\fR | \fB\fIinfile.raw\fB\fR | \fB\fIinfile.flac\fB\fR | \fB\fIinfile.oga\fB\fR | \fB\fIinfile.ogg\fB\fR | \fB-\fR\fI ...\fR ] |
Josh Coalson | 0c68bb9 | 2004-07-30 00:28:48 +0000 | [diff] [blame] | 13 | |
| 14 | |
Josh Coalson | 3038f52 | 2007-09-14 15:04:49 +0000 | [diff] [blame] | 15 | \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.oga\fB\fR | \fB\fIinfile.ogg\fB\fR | \fB-\fR\fI ...\fR ] |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 16 | |
| 17 | .SH "DESCRIPTION" |
| 18 | .PP |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 19 | \fBflac\fR is a command-line tool for encoding, decoding, testing and analyzing FLAC streams. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 20 | .SH "OPTIONS" |
| 21 | .PP |
| 22 | A summary of options is included below. For a complete |
| 23 | description, see the HTML documentation. |
Josh Coalson | 9906056 | 2002-12-21 03:28:06 +0000 | [diff] [blame] | 24 | .SS "GENERAL OPTIONS" |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 25 | .TP |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 26 | \fB-v, --version\fR |
Josh Coalson | 3cf909c | 2002-08-20 03:57:59 +0000 | [diff] [blame] | 27 | Show the flac version number |
| 28 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 29 | \fB-h, --help \fR |
| 30 | Show basic usage and a list of all options |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 31 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 32 | \fB-H, --explain \fR |
| 33 | Show detailed explanation of usage and all options |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 34 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 35 | \fB-d, --decode \fR |
| 36 | Decode (the default behavior is to encode) |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 37 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 38 | \fB-t, --test \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 39 | Test a flac encoded file (same as -d except no decoded file is written) |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 40 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 41 | \fB-a, --analyze \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 42 | Analyze a FLAC encoded file (same as -d except an analysis file is written) |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 43 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 44 | \fB-c, --stdout \fR |
| 45 | Write output to stdout |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 46 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 47 | \fB-s, --silent \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 48 | Silent mode (do not write runtime encode/decode statistics to stderr) |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 49 | .TP |
Josh Coalson | 0c68bb9 | 2004-07-30 00:28:48 +0000 | [diff] [blame] | 50 | \fB--totally-silent \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 51 | Do not print anything of any kind, including warnings or errors. The exit code will be the only way to determine successful completion. |
Josh Coalson | 0c68bb9 | 2004-07-30 00:28:48 +0000 | [diff] [blame] | 52 | .TP |
Josh Coalson | 3038f52 | 2007-09-14 15:04:49 +0000 | [diff] [blame] | 53 | \fB--no-utf8-convert \fR |
| 54 | 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! |
| 55 | .TP |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 56 | \fB-w, --warnings-as-errors \fR |
| 57 | Treat all warnings as errors (which cause flac to terminate with a non-zero exit code). |
| 58 | .TP |
Josh Coalson | 0c68bb9 | 2004-07-30 00:28:48 +0000 | [diff] [blame] | 59 | \fB-f, --force \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 60 | Force overwriting of output files. By default, flac warns that the output file already exists and continues to the next file. |
Josh Coalson | 0c68bb9 | 2004-07-30 00:28:48 +0000 | [diff] [blame] | 61 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 62 | \fB-o \fIfilename\fB, --output-name=\fIfilename\fB\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 63 | 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. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 64 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 65 | \fB--output-prefix=\fIstring\fB\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 66 | 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). |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 67 | .TP |
| 68 | \fB--delete-input-file \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 69 | 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. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 70 | .TP |
Erik de Castro Lopo | a2923e6 | 2012-09-19 18:06:49 +1000 | [diff] [blame] | 71 | \fB--preserve-modtime \fR |
| 72 | 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. |
| 73 | .TP |
Josh Coalson | 3038f52 | 2007-09-14 15:04:49 +0000 | [diff] [blame] | 74 | \fB--keep-foreign-metadata \fR |
Erik de Castro Lopo | a2923e6 | 2012-09-19 18:06:49 +1000 | [diff] [blame] | 75 | 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). |
Josh Coalson | 3038f52 | 2007-09-14 15:04:49 +0000 | [diff] [blame] | 76 | .TP |
Josh Coalson | 9906056 | 2002-12-21 03:28:06 +0000 | [diff] [blame] | 77 | \fB--skip={\fI#\fB|\fImm:ss.ss\fB}\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 78 | 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. |
Josh Coalson | 9906056 | 2002-12-21 03:28:06 +0000 | [diff] [blame] | 79 | .TP |
| 80 | \fB--until={\fI#\fB|[\fI+\fB|\fI-\fB]\fImm:ss.ss\fB}\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 81 | 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. |
Josh Coalson | f391132 | 2002-09-20 05:53:10 +0000 | [diff] [blame] | 82 | .TP |
| 83 | \fB--ogg\fR |
Josh Coalson | 3038f52 | 2007-09-14 15:04:49 +0000 | [diff] [blame] | 84 | 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. |
Josh Coalson | f391132 | 2002-09-20 05:53:10 +0000 | [diff] [blame] | 85 | |
Josh Coalson | 3038f52 | 2007-09-14 15:04:49 +0000 | [diff] [blame] | 86 | 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'. |
Josh Coalson | f391132 | 2002-09-20 05:53:10 +0000 | [diff] [blame] | 87 | .TP |
| 88 | \fB--serial-number=\fI#\fB\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 89 | 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. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 90 | .SS "ANALYSIS OPTIONS" |
| 91 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 92 | \fB--residual-text \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 93 | Includes the residual signal in the analysis file. This will make the file very big, much larger than even the decoded file. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 94 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 95 | \fB--residual-gnuplot \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 96 | Generates a gnuplot file for every subframe; each file will contain the residual distribution of the subframe. This will create a lot of files. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 97 | .SS "DECODING OPTIONS" |
| 98 | .TP |
Josh Coalson | 0c68bb9 | 2004-07-30 00:28:48 +0000 | [diff] [blame] | 99 | \fB--cue=[\fI#.#\fB][-[\fI#.#\fB]]\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 100 | 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. |
Josh Coalson | 0c68bb9 | 2004-07-30 00:28:48 +0000 | [diff] [blame] | 101 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 102 | \fB-F, --decode-through-errors \fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 103 | 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. |
Erik de Castro Lopo | 6ed3809 | 2013-04-28 15:48:41 +1000 | [diff] [blame] | 104 | .TP |
| 105 | \fB--apply-replaygain-which-is-not-lossless[=<specification>] \fR |
| 106 | Applies ReplayGain values while decoding. |
| 107 | |
| 108 | WARNING: THIS IS NOT LOSSLESS. DECODED AUDIO WILL NOT BE IDENTICAL TO THE ORIGINAL WITH THIS OPTION. |
| 109 | |
| 110 | The equals sign and <specification> is optional. If omitted, the default is 0aLn1. |
| 111 | |
| 112 | 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: |
| 113 | |
| 114 | [<preamp>][a|t][l|L][n{0|1|2|3}] |
| 115 | .RS |
| 116 | .TP |
| 117 | \fBpreamp\fR |
| 118 | A floating point number in dB. This is added to the existing gain value. |
| 119 | .TP |
| 120 | \fBa|t\fR |
| 121 | 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. |
| 122 | .TP |
| 123 | \fBl|L\fR |
| 124 | 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. |
| 125 | .TP |
| 126 | \fBn{0|1|2|3}\fR |
| 127 | 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'. |
| 128 | .RE |
| 129 | |
| 130 | For example, the default of 0aLn1 means 0dB preamp, use album gain, 6dB hard limit, low noise shaping. |
| 131 | |
| 132 | --apply-replaygain-which-is-not-lossless=3 means 3dB preamp, use album gain, no limiting, no noise shaping. |
| 133 | |
| 134 | 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. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 135 | .SS "ENCODING OPTIONS" |
| 136 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 137 | \fB-V, --verify\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 138 | Verify a correct encoding by decoding the output in parallel and comparing to the original |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 139 | .TP |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 140 | \fB--lax\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 141 | 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. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 142 | .TP |
Josh Coalson | 853d79c | 2002-10-31 06:16:45 +0000 | [diff] [blame] | 143 | \fB--replay-gain\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 144 | 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). |
Josh Coalson | 853d79c | 2002-10-31 06:16:45 +0000 | [diff] [blame] | 145 | .TP |
Josh Coalson | 9906056 | 2002-12-21 03:28:06 +0000 | [diff] [blame] | 146 | \fB--cuesheet=\fIfilename\fB\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 147 | 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. |
| 148 | .TP |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 149 | \fB--picture={\fIFILENAME\fB|\fISPECIFICATION\fB}\fR |
| 150 | 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 |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 151 | |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 152 | [TYPE]|[MIME-TYPE]|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 153 | |
| 154 | TYPE is optional; it is a number from one of: |
| 155 | |
| 156 | 0: Other |
| 157 | |
| 158 | 1: 32x32 pixels 'file icon' (PNG only) |
| 159 | |
| 160 | 2: Other file icon |
| 161 | |
| 162 | 3: Cover (front) |
| 163 | |
| 164 | 4: Cover (back) |
| 165 | |
| 166 | 5: Leaflet page |
| 167 | |
| 168 | 6: Media (e.g. label side of CD) |
| 169 | |
| 170 | 7: Lead artist/lead performer/soloist |
| 171 | |
| 172 | 8: Artist/performer |
| 173 | |
| 174 | 9: Conductor |
| 175 | |
| 176 | 10: Band/Orchestra |
| 177 | |
| 178 | 11: Composer |
| 179 | |
| 180 | 12: Lyricist/text writer |
| 181 | |
| 182 | 13: Recording Location |
| 183 | |
| 184 | 14: During recording |
| 185 | |
| 186 | 15: During performance |
| 187 | |
| 188 | 16: Movie/video screen capture |
| 189 | |
| 190 | 17: A bright coloured fish |
| 191 | |
| 192 | 18: Illustration |
| 193 | |
| 194 | 19: Band/artist logotype |
| 195 | |
| 196 | 20: Publisher/Studio logotype |
| 197 | |
| 198 | The default is 3 (front cover). There may only be one picture each of type 1 and 2 in a file. |
| 199 | |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 200 | 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. |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 201 | |
| 202 | DESCRIPTION is optional; the default is an empty string. |
| 203 | |
| 204 | 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. |
| 205 | |
| 206 | FILE is the path to the picture file to be imported, or the URL if MIME type is --> |
| 207 | |
| 208 | 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. |
| 209 | |
| 210 | 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. |
Josh Coalson | 9906056 | 2002-12-21 03:28:06 +0000 | [diff] [blame] | 211 | .TP |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 212 | \fB--sector-align\fR |
Erik de Castro Lopo | a2923e6 | 2012-09-19 18:06:49 +1000 | [diff] [blame] | 213 | 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. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 214 | .TP |
Erik de Castro Lopo | 03b9d5d | 2013-04-28 14:30:05 +1000 | [diff] [blame] | 215 | \fB--ignore-chunk-sizes\fR |
| 216 | 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. |
| 217 | |
| 218 | 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. |
| 219 | .TP |
Josh Coalson | 47a81d1 | 2002-12-03 06:32:38 +0000 | [diff] [blame] | 220 | \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 Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 221 | 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). |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 222 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 223 | \fB-P \fI#\fB, --padding=\fI#\fB\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 224 | 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). |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 225 | .TP |
Josh Coalson | f391132 | 2002-09-20 05:53:10 +0000 | [diff] [blame] | 226 | \fB-T \fIFIELD=VALUE\fB, --tag=\fIFIELD=VALUE\fB\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 227 | 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. |
| 228 | .TP |
| 229 | \fB--tag-from-file=\fIFIELD=FILENAME\fB\fR |
| 230 | 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. |
Josh Coalson | f391132 | 2002-09-20 05:53:10 +0000 | [diff] [blame] | 231 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 232 | \fB-b \fI#\fB, --blocksize=\fI#\fB\fR |
Josh Coalson | 86325ef | 2006-11-17 16:06:15 +0000 | [diff] [blame] | 233 | 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). |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 234 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 235 | \fB-m, --mid-side\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 236 | Try mid-side coding for each frame (stereo input only) |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 237 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 238 | \fB-M, --adaptive-mid-side\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 239 | Adaptive mid-side coding for all frames (stereo input only) |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 240 | .TP |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 241 | \fB-0\&..-8, --compression-level-0\&..--compression-level-8\fR |
| 242 | Fastest compression..highest compression (default is -5). These are synonyms for other options: |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 243 | .RS |
| 244 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 245 | \fB-0, --compression-level-0\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 246 | Synonymous with -l 0 -b 1152 -r 3 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 247 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 248 | \fB-1, --compression-level-1\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 249 | Synonymous with -l 0 -b 1152 -M -r 3 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 250 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 251 | \fB-2, --compression-level-2\fR |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 252 | Synonymous with -l 0 -b 1152 -m -r 3 |
| 253 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 254 | \fB-3, --compression-level-3\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 255 | Synonymous with -l 6 -b 4096 -r 4 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 256 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 257 | \fB-4, --compression-level-4\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 258 | Synonymous with -l 8 -b 4096 -M -r 4 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 259 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 260 | \fB-5, --compression-level-5\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 261 | Synonymous with -l 8 -b 4096 -m -r 5 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 262 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 263 | \fB-6, --compression-level-6\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 264 | Synonymous with -l 8 -b 4096 -m -r 6 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 265 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 266 | \fB-7, --compression-level-7\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 267 | Synonymous with -l 8 -b 4096 -m -e -r 6 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 268 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 269 | \fB-8, --compression-level-8\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 270 | Synonymous with -l 12 -b 4096 -m -e -r 6 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 271 | .RE |
| 272 | .TP |
| 273 | \fB--fast\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 274 | Fastest compression. Currently synonymous with -0. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 275 | .TP |
| 276 | \fB--best\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 277 | Highest compression. Currently synonymous with -8. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 278 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 279 | \fB-e, --exhaustive-model-search\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 280 | Do exhaustive model search (expensive!) |
| 281 | .TP |
| 282 | \fB-A \fIfunction\fB, --apodization=\fIfunction\fB\fR |
Martijn van Beurden | 29a2833 | 2014-08-10 10:59:29 +0200 | [diff] [blame] | 283 | 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. |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 284 | |
| 285 | For gauss(STDDEV), STDDEV is the standard deviation (0<STDDEV<=0.5). |
| 286 | |
| 287 | 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"). |
| 288 | |
Martijn van Beurden | 29a2833 | 2014-08-10 10:59:29 +0200 | [diff] [blame] | 289 | 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. |
| 290 | |
| 291 | Please note that P, STDDEV and ov are locale specific, so a comma as decimal separator might be required instead of a dot. |
| 292 | |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 293 | 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). |
| 294 | |
| 295 | 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. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 296 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 297 | \fB-l \fI#\fB, --max-lpc-order=\fI#\fB\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 298 | 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. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 299 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 300 | \fB-p, --qlp-coeff-precision-search\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 301 | Do exhaustive search of LP coefficient quantization (expensive!). Overrides -q; does nothing if using -l 0 |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 302 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 303 | \fB-q \fI#\fB, --qlp-coeff-precision=\fI#\fB\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 304 | Precision of the quantized linear-predictor coefficients, 0 => let encoder decide (min is 5, default is 0) |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 305 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 306 | \fB-r [\fI#\fB,]\fI#\fB, --rice-partition-order=[\fI#\fB,]\fI#\fB\fR |
Martijn van Beurden | 733efde | 2013-09-18 18:51:17 +0200 | [diff] [blame] | 307 | Set the [min,]max residual partition order (0..15). min defaults to 0 if unspecified. Default is -r 5. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 308 | .SS "FORMAT OPTIONS" |
| 309 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 310 | \fB--endian={\fIbig\fB|\fIlittle\fB}\fR |
| 311 | Set the byte order for samples |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 312 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 313 | \fB--channels=\fI#\fB\fR |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 314 | Set number of channels. |
| 315 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 316 | \fB--bps=\fI#\fB\fR |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 317 | Set bits per sample. |
| 318 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 319 | \fB--sample-rate=\fI#\fB\fR |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 320 | Set sample rate (in Hz). |
| 321 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 322 | \fB--sign={\fIsigned\fB|\fIunsigned\fB}\fR |
| 323 | Set the sign of samples (the default is signed). |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 324 | .TP |
Josh Coalson | 91ccea9 | 2005-02-02 04:35:49 +0000 | [diff] [blame] | 325 | \fB--input-size=\fI#\fB\fR |
Miroslav Lichvar | 1ec6e3a | 2013-03-27 17:49:19 +0100 | [diff] [blame] | 326 | 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. |
Josh Coalson | 91ccea9 | 2005-02-02 04:35:49 +0000 | [diff] [blame] | 327 | .TP |
Josh Coalson | eb20903 | 2002-08-20 20:37:26 +0000 | [diff] [blame] | 328 | \fB--force-raw-format\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 329 | Force input (when encoding) or output (when decoding) to be treated as raw samples (even if filename ends in \fI\&.wav\fR). |
Erik de Castro Lopo | a2923e6 | 2012-09-19 18:06:49 +1000 | [diff] [blame] | 330 | .TP |
| 331 | \fB--force-aiff-format\fR |
| 332 | Force the decoder to output AIFF format. This option is not needed if the output filename (as set by -o) ends with \fI\&.aif\fR or \fI\&.aiff\fR\&. Also, this option has no effect when encoding since input AIFF is auto-detected. |
| 333 | .TP |
| 334 | \fB--force-rf64-format\fR |
| 335 | Force the decoder to output RF64 format. This option is not needed if the output filename (as set by -o) ends with \fI\&.rf64\fR\&. Also, this option has no effect when encoding since input RF64 is auto-detected. |
| 336 | .TP |
| 337 | \fB--force-wave64-format\fR |
| 338 | Force the decoder to output Wave64 format. This option is not needed if the output filename (as set by -o) ends with \fI\&.w64\fR\&. Also, this option has no effect when encoding since input Wave64 is auto-detected. |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 339 | .SS "NEGATIVE OPTIONS" |
| 340 | .TP |
| 341 | \fB--no-adaptive-mid-side\fR |
| 342 | .TP |
Miroslav Lichvar | 1ec6e3a | 2013-03-27 17:49:19 +0100 | [diff] [blame] | 343 | \fB--no-cued-seekpoints\fR |
| 344 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 345 | \fB--no-decode-through-errors\fR |
| 346 | .TP |
| 347 | \fB--no-delete-input-file\fR |
| 348 | .TP |
Erik de Castro Lopo | a2923e6 | 2012-09-19 18:06:49 +1000 | [diff] [blame] | 349 | \fB--no-preserve-modtime\fR |
| 350 | .TP |
| 351 | \fB--no-keep-foreign-metadata\fR |
| 352 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 353 | \fB--no-exhaustive-model-search\fR |
| 354 | .TP |
Miroslav Lichvar | b61825d | 2012-11-30 16:38:28 +0100 | [diff] [blame] | 355 | \fB--no-force\fR |
| 356 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 357 | \fB--no-lax\fR |
| 358 | .TP |
| 359 | \fB--no-mid-side\fR |
| 360 | .TP |
| 361 | \fB--no-ogg\fR |
| 362 | .TP |
| 363 | \fB--no-padding\fR |
| 364 | .TP |
Miroslav Lichvar | 1ec6e3a | 2013-03-27 17:49:19 +0100 | [diff] [blame] | 365 | \fB--no-qlp-coeff-prec-search\fR |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 366 | .TP |
Miroslav Lichvar | b61825d | 2012-11-30 16:38:28 +0100 | [diff] [blame] | 367 | \fB--no-replay-gain\fR |
| 368 | .TP |
Josh Coalson | e6eff86 | 2002-08-13 21:18:27 +0000 | [diff] [blame] | 369 | \fB--no-residual-gnuplot\fR |
| 370 | .TP |
| 371 | \fB--no-residual-text\fR |
| 372 | .TP |
| 373 | \fB--no-sector-align\fR |
| 374 | .TP |
| 375 | \fB--no-seektable\fR |
| 376 | .TP |
| 377 | \fB--no-silent\fR |
| 378 | .TP |
| 379 | \fB--no-verify\fR |
Josh Coalson | 9c17e6e | 2007-02-14 01:28:01 +0000 | [diff] [blame] | 380 | .TP |
| 381 | \fB--no-warnings-as-errors\fR |
Josh Coalson | b0468ee | 2006-10-10 03:47:36 +0000 | [diff] [blame] | 382 | These flags can be used to invert the sense of the corresponding normal option. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 383 | .SH "SEE ALSO" |
| 384 | .PP |
Martijn van Beurden | 733efde | 2013-09-18 18:51:17 +0200 | [diff] [blame] | 385 | metaflac(1) |
Josh Coalson | 9906056 | 2002-12-21 03:28:06 +0000 | [diff] [blame] | 386 | .PP |
Erik de Castro Lopo | 2273cb9 | 2013-04-30 17:47:49 +1000 | [diff] [blame] | 387 | The programs are documented fully by HTML format documentation, available in \fI/usr/share/doc/libflac-doc/html\fR on Debian GNU/Linux systems. |
Josh Coalson | ca30b37 | 2002-07-03 05:49:13 +0000 | [diff] [blame] | 388 | .SH "AUTHOR" |
| 389 | .PP |
Martijn van Beurden | 733efde | 2013-09-18 18:51:17 +0200 | [diff] [blame] | 390 | This manual page was initially written by Matt Zimmerman <mdz@debian.org> for the Debian GNU/Linux system (but may be used by others). It has been kept up-to-date by the Xiph.org Foundation. |