annotate src/flac-1.2.1/man/metaflac.1 @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 05aa0afa9217
children
rev   line source
Chris@1 1 .\" This manpage has been automatically generated by docbook2man
Chris@1 2 .\" from a DocBook document. This tool can be found at:
Chris@1 3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
Chris@1 4 .\" Please send any bug reports, improvements, comments, patches,
Chris@1 5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
Chris@1 6 .TH "METAFLAC" "1" "14 September 2007" "" ""
Chris@1 7
Chris@1 8 .SH NAME
Chris@1 9 metaflac \- program to list, add, remove, or edit metadata in one or more FLAC files.
Chris@1 10 .SH SYNOPSIS
Chris@1 11
Chris@1 12 \fBmetaflac\fR [ \fB\fIoptions\fB\fR ] [ \fB\fIoperations\fB\fR ] \fB\fIFLACfile\fB\fR\fI ...\fR
Chris@1 13
Chris@1 14 .SH "DESCRIPTION"
Chris@1 15 .PP
Chris@1 16 Use \fBmetaflac\fR to list, add, remove, or edit
Chris@1 17 metadata in one or more FLAC files. You may perform one major operation,
Chris@1 18 or many shorthand operations at a time.
Chris@1 19 .SH "OPTIONS"
Chris@1 20 .TP
Chris@1 21 \fB--preserve-modtime\fR
Chris@1 22 Preserve the original modification time in spite of edits.
Chris@1 23 .TP
Chris@1 24 \fB--with-filename\fR
Chris@1 25 Prefix each output line with the FLAC file name (the default if
Chris@1 26 more than one FLAC file is specified).
Chris@1 27 .TP
Chris@1 28 \fB--no-filename\fR
Chris@1 29 Do not prefix each output line with the FLAC file name (the default
Chris@1 30 if only one FLAC file is specified).
Chris@1 31 .TP
Chris@1 32 \fB--no-utf8-convert\fR
Chris@1 33 Do not convert tags from UTF-8 to local charset, or vice versa. This is
Chris@1 34 useful for scripts, and setting tags in situations where the locale is wrong.
Chris@1 35 .TP
Chris@1 36 \fB--dont-use-padding\fR
Chris@1 37 By default metaflac tries to use padding where possible to avoid
Chris@1 38 rewriting the entire file if the metadata size changes. Use this
Chris@1 39 option to tell metaflac to not take advantage of padding this way.
Chris@1 40 .SH "SHORTHAND OPERATIONS"
Chris@1 41 .TP
Chris@1 42 \fB--show-md5sum\fR
Chris@1 43 Show the MD5 signature from the STREAMINFO block.
Chris@1 44 .TP
Chris@1 45 \fB--show-min-blocksize\fR
Chris@1 46 Show the minimum block size from the STREAMINFO block.
Chris@1 47 .TP
Chris@1 48 \fB--show-max-blocksize\fR
Chris@1 49 Show the maximum block size from the STREAMINFO block.
Chris@1 50 .TP
Chris@1 51 \fB--show-min-framesize\fR
Chris@1 52 Show the minimum frame size from the STREAMINFO block.
Chris@1 53 .TP
Chris@1 54 \fB--show-max-framesize\fR
Chris@1 55 Show the maximum frame size from the STREAMINFO block.
Chris@1 56 .TP
Chris@1 57 \fB--show-sample-rate\fR
Chris@1 58 Show the sample rate from the STREAMINFO block.
Chris@1 59 .TP
Chris@1 60 \fB--show-channels\fR
Chris@1 61 Show the number of channels from the STREAMINFO block.
Chris@1 62 .TP
Chris@1 63 \fB--show-bps\fR
Chris@1 64 Show the # of bits per sample from the STREAMINFO block.
Chris@1 65 .TP
Chris@1 66 \fB--show-total-samples\fR
Chris@1 67 Show the total # of samples from the STREAMINFO block.
Chris@1 68 .TP
Chris@1 69 \fB--show-vendor-tag\fR
Chris@1 70 Show the vendor string from the VORBIS_COMMENT block.
Chris@1 71 .TP
Chris@1 72 \fB--show-tag=name\fR
Chris@1 73 Show all tags where the the field name matches 'name'.
Chris@1 74 .TP
Chris@1 75 \fB--remove-tag=name\fR
Chris@1 76 Remove all tags whose field name is 'name'.
Chris@1 77 .TP
Chris@1 78 \fB--remove-first-tag=name\fR
Chris@1 79 Remove first tag whose field name is 'name'.
Chris@1 80 .TP
Chris@1 81 \fB--remove-all-tags\fR
Chris@1 82 Remove all tags, leaving only the vendor string.
Chris@1 83 .TP
Chris@1 84 \fB--set-tag=field\fR
Chris@1 85 Add a tag. The field must comply with the
Chris@1 86 Vorbis comment spec, of the form "NAME=VALUE". If there is
Chris@1 87 currently no tag block, one will be created.
Chris@1 88 .TP
Chris@1 89 \fB--set-tag-from-file=field\fR
Chris@1 90 Like --set-tag, except the VALUE is a filename whose
Chris@1 91 contents will be read verbatim to set the tag value.
Chris@1 92 Unless --no-utf8-convert is specified, the contents will be
Chris@1 93 converted to UTF-8 from the local charset. This can be used
Chris@1 94 to store a cuesheet in a tag (e.g.
Chris@1 95 --set-tag-from-file="CUESHEET=image.cue"). Do not try to
Chris@1 96 store binary data in tag fields! Use APPLICATION blocks for
Chris@1 97 that.
Chris@1 98 .TP
Chris@1 99 \fB--import-tags-from=file\fR
Chris@1 100 Import tags from a file. Use '-' for stdin. Each
Chris@1 101 line should be of the form NAME=VALUE. Multi-line comments
Chris@1 102 are currently not supported. Specify --remove-all-tags and/or
Chris@1 103 --no-utf8-convert before --import-tags-from if necessary. If
Chris@1 104 FILE is '-' (stdin), only one FLAC file may be specified.
Chris@1 105 .TP
Chris@1 106 \fB--export-tags-to=file\fR
Chris@1 107 Export tags to a file. Use '-' for stdout. Each
Chris@1 108 line will be of the form NAME=VALUE. Specify
Chris@1 109 --no-utf8-convert if necessary.
Chris@1 110 .TP
Chris@1 111 \fB--import-cuesheet-from=file\fR
Chris@1 112 Import a cuesheet from a file. Use '-' for stdin. Only one
Chris@1 113 FLAC file may be specified. A seekpoint will be added for each
Chris@1 114 index point in the cuesheet to the SEEKTABLE unless
Chris@1 115 --no-cued-seekpoints is specified.
Chris@1 116 .TP
Chris@1 117 \fB--export-cuesheet-to=file\fR
Chris@1 118 Export CUESHEET block to a cuesheet file, suitable for use by
Chris@1 119 CD authoring software. Use '-' for stdout. Only one FLAC file
Chris@1 120 may be specified on the command line.
Chris@1 121 .TP
Chris@1 122 \fB--import-picture-from={\fIFILENAME\fB|\fISPECIFICATION\fB}\fR
Chris@1 123 Import a picture and store it in a PICTURE metadata block. More than one --import-picture-from 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
Chris@1 124
Chris@1 125 [TYPE]|[MIME-TYPE]|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE
Chris@1 126
Chris@1 127 TYPE is optional; it is a number from one of:
Chris@1 128
Chris@1 129 0: Other
Chris@1 130
Chris@1 131 1: 32x32 pixels 'file icon' (PNG only)
Chris@1 132
Chris@1 133 2: Other file icon
Chris@1 134
Chris@1 135 3: Cover (front)
Chris@1 136
Chris@1 137 4: Cover (back)
Chris@1 138
Chris@1 139 5: Leaflet page
Chris@1 140
Chris@1 141 6: Media (e.g. label side of CD)
Chris@1 142
Chris@1 143 7: Lead artist/lead performer/soloist
Chris@1 144
Chris@1 145 8: Artist/performer
Chris@1 146
Chris@1 147 9: Conductor
Chris@1 148
Chris@1 149 10: Band/Orchestra
Chris@1 150
Chris@1 151 11: Composer
Chris@1 152
Chris@1 153 12: Lyricist/text writer
Chris@1 154
Chris@1 155 13: Recording Location
Chris@1 156
Chris@1 157 14: During recording
Chris@1 158
Chris@1 159 15: During performance
Chris@1 160
Chris@1 161 16: Movie/video screen capture
Chris@1 162
Chris@1 163 17: A bright coloured fish
Chris@1 164
Chris@1 165 18: Illustration
Chris@1 166
Chris@1 167 19: Band/artist logotype
Chris@1 168
Chris@1 169 20: Publisher/Studio logotype
Chris@1 170
Chris@1 171 The default is 3 (front cover). There may only be one picture each of type 1 and 2 in a file.
Chris@1 172
Chris@1 173 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.
Chris@1 174
Chris@1 175 DESCRIPTION is optional; the default is an empty string.
Chris@1 176
Chris@1 177 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.
Chris@1 178
Chris@1 179 FILE is the path to the picture file to be imported, or the URL if MIME type is -->
Chris@1 180
Chris@1 181 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.
Chris@1 182
Chris@1 183 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.
Chris@1 184 .TP
Chris@1 185 \fB--export-picture-to=file\fR
Chris@1 186 Export PICTURE block to a file. Use '-' for stdout. Only one FLAC file may be specified on the command line. The first PICTURE block will be exported unless --export-picture-to is preceded by a --block-number=# option to specify the exact metadata block to extract. Note that the block number is the one shown by --list.
Chris@1 187 .TP
Chris@1 188 \fB--add-replay-gain\fR
Chris@1 189 Calculates the title and album gains/peaks of the given FLAC
Chris@1 190 files as if all the files were part of one album, then stores
Chris@1 191 them as FLAC tags. The tags are the same as
Chris@1 192 those used by vorbisgain. Existing ReplayGain tags will be
Chris@1 193 replaced. If only one FLAC file is given, the album and title
Chris@1 194 gains will be the same. Since this operation requires two
Chris@1 195 passes, it is always executed last, after all other operations
Chris@1 196 have been completed and written to disk. All FLAC files
Chris@1 197 specified must have the same resolution, sample rate, and
Chris@1 198 number of channels. The sample rate must be one of 8, 11.025,
Chris@1 199 12, 16, 22.05, 24, 32, 44.1, or 48 kHz.
Chris@1 200 .TP
Chris@1 201 \fB--remove-replay-gain\fR
Chris@1 202 Removes the ReplayGain tags.
Chris@1 203 .TP
Chris@1 204 \fB--add-seekpoint={\fI#\fB|\fIX\fB|\fI#x\fB|\fI#s\fB}\fR
Chris@1 205 Add seek points to a SEEKTABLE block. Using #, a seek point at
Chris@1 206 that sample number is added. Using X, a placeholder point is
Chris@1 207 added at the end of a the table. Using #x, # evenly spaced seek
Chris@1 208 points will be added, the first being at sample 0. Using #s, a
Chris@1 209 seekpoint will be added every # seconds (# does not have to be a
Chris@1 210 whole number; it can be, for example, 9.5, meaning a seekpoint
Chris@1 211 every 9.5 seconds). If no SEEKTABLE block exists, one will be
Chris@1 212 created. If one already exists, points will be added to the
Chris@1 213 existing table, and any duplicates will be turned into placeholder
Chris@1 214 points. You may use many --add-seekpoint options; the resulting
Chris@1 215 SEEKTABLE will be the unique-ified union of all such values.
Chris@1 216 Example: --add-seekpoint=100x --add-seekpoint=3.5s will add 100
Chris@1 217 evenly spaced seekpoints and a seekpoint every 3.5 seconds.
Chris@1 218 .TP
Chris@1 219 \fB--add-padding=length\fR
Chris@1 220 Add a padding block of the given length (in bytes). The overall
Chris@1 221 length of the new block will be 4 + length; the extra 4 bytes is
Chris@1 222 for the metadata block header.
Chris@1 223 .SH "MAJOR OPERATIONS"
Chris@1 224 .TP
Chris@1 225 \fB--list\fR
Chris@1 226 List the contents of one or more metadata blocks to stdout. By
Chris@1 227 default, all metadata blocks are listed in text format. Use the
Chris@1 228 following options to change this behavior:
Chris@1 229 .RS
Chris@1 230 .TP
Chris@1 231 \fB--block-number=#[,#[...]]\fR
Chris@1 232 An optional comma-separated list of block numbers to display.
Chris@1 233 The first block, the STREAMINFO block, is block 0.
Chris@1 234 .TP
Chris@1 235 \fB--block-type=type[,type[...]]\fR
Chris@1 236 .TP
Chris@1 237 \fB--except-block-type=type[,type[...]]\fR
Chris@1 238 An optional comma-separated list of block types to be included
Chris@1 239 or ignored with this option. Use only one of --block-type or
Chris@1 240 --except-block-type. The valid block types are: STREAMINFO,
Chris@1 241 PADDING, APPLICATION, SEEKTABLE, VORBIS_COMMENT. You may
Chris@1 242 narrow down the types of APPLICATION blocks displayed as
Chris@1 243 follows:
Chris@1 244
Chris@1 245 APPLICATION:abcd The APPLICATION block(s) whose textual repre-
Chris@1 246 sentation of the 4-byte ID is "abcd"
Chris@1 247 APPLICATION:0xXXXXXXXX The APPLICATION block(s) whose hexadecimal big-
Chris@1 248 endian representation of the 4-byte ID is
Chris@1 249 "0xXXXXXXXX". For the example "abcd" above the
Chris@1 250 hexadecimal equivalalent is 0x61626364
Chris@1 251 .sp
Chris@1 252 .RS
Chris@1 253 .B "Note:"
Chris@1 254 if both --block-number and --[except-]block-type are
Chris@1 255 specified, the result is the logical AND of both
Chris@1 256 arguments.
Chris@1 257 .RE
Chris@1 258 .TP
Chris@1 259 \fB--application-data-format=hexdump|text\fR
Chris@1 260 If the application block you are displaying contains binary
Chris@1 261 data but your --data-format=text, you can display a hex dump
Chris@1 262 of the application data contents instead using
Chris@1 263 --application-data-format=hexdump.
Chris@1 264 .RE
Chris@1 265 .TP
Chris@1 266 \fB--remove\fR
Chris@1 267 Remove one or more metadata blocks from the metadata. Unless
Chris@1 268 --dont-use-padding is specified, the blocks will be replaced with
Chris@1 269 padding. You may not remove the STREAMINFO block.
Chris@1 270 .RS
Chris@1 271 .TP
Chris@1 272 \fB--block-number=#[,#[...]]\fR
Chris@1 273 .TP
Chris@1 274 \fB--block-type=type[,type[...]]\fR
Chris@1 275 .TP
Chris@1 276 \fB--except-block-type=type[,type[...]]\fR
Chris@1 277 See --list above for usage.
Chris@1 278 .sp
Chris@1 279 .RS
Chris@1 280 .B "Note:"
Chris@1 281 if both --block-number and --[except-]block-type are
Chris@1 282 specified, the result is the logical AND of both arguments.
Chris@1 283 .RE
Chris@1 284 .RE
Chris@1 285 .TP
Chris@1 286 \fB--remove-all\fR
Chris@1 287 Remove all metadata blocks (except the STREAMINFO block) from the
Chris@1 288 metadata. Unless --dont-use-padding is specified, the blocks will
Chris@1 289 be replaced with padding.
Chris@1 290 .TP
Chris@1 291 \fB--merge-padding\fR
Chris@1 292 Merge adjacent PADDING blocks into single blocks.
Chris@1 293 .TP
Chris@1 294 \fB--sort-padding\fR
Chris@1 295 Move all PADDING blocks to the end of the metadata and merge them
Chris@1 296 into a single block.
Chris@1 297 .SH "SEE ALSO"
Chris@1 298 .PP
Chris@1 299 flac(1).