Blame man/metaflac.1

Packit 8f7830
.\" This manpage has been automatically generated by docbook2man 
Packit 8f7830
.\" from a DocBook document.  This tool can be found at:
Packit 8f7830
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
Packit 8f7830
.\" Please send any bug reports, improvements, comments, patches, 
Packit 8f7830
.\" etc. to Steve Cheng <steve@ggi-project.org>.
Packit 8f7830
.TH "METAFLAC" "1" "2013/04/30" "" ""
Packit 8f7830
Packit 8f7830
.SH NAME
Packit 8f7830
metaflac \- program to list, add, remove, or edit metadata in one or more FLAC files.
Packit 8f7830
.SH SYNOPSIS
Packit 8f7830
Packit 8f7830
\fBmetaflac\fR [ \fB\fIoptions\fB\fR ] [ \fB\fIoperations\fB\fR ] \fB\fIFLACfile\fB\fR\fI ...\fR
Packit 8f7830
Packit 8f7830
.SH "DESCRIPTION"
Packit 8f7830
.PP
Packit 8f7830
Use \fBmetaflac\fR to list, add, remove, or edit
Packit 8f7830
metadata in one or more FLAC files.  You may perform one major operation,
Packit 8f7830
or many shorthand operations at a time.
Packit 8f7830
.SH "OPTIONS"
Packit 8f7830
.TP
Packit 8f7830
\fB--preserve-modtime\fR
Packit 8f7830
Preserve the original modification time in spite of edits.
Packit 8f7830
.TP
Packit 8f7830
\fB--with-filename\fR
Packit 8f7830
Prefix each output line with the FLAC file name (the default if
Packit 8f7830
more than one FLAC file is specified).
Packit 8f7830
.TP
Packit 8f7830
\fB--no-filename\fR
Packit 8f7830
Do not prefix each output line with the FLAC file name (the default
Packit 8f7830
if only one FLAC file is specified).
Packit 8f7830
.TP
Packit 8f7830
\fB--no-utf8-convert\fR
Packit 8f7830
Do not convert tags from UTF-8 to local charset, or vice versa. This is
Packit 8f7830
useful for scripts, and setting tags in situations where the locale is wrong.
Packit 8f7830
.TP
Packit 8f7830
\fB--dont-use-padding\fR
Packit 8f7830
By default metaflac tries to use padding where possible to avoid
Packit 8f7830
rewriting the entire file if the metadata size changes.  Use this
Packit 8f7830
option to tell metaflac to not take advantage of padding this way.
Packit 8f7830
.SH "SHORTHAND OPERATIONS"
Packit 8f7830
.TP
Packit 8f7830
\fB--show-md5sum\fR
Packit 8f7830
Show the MD5 signature from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-min-blocksize\fR
Packit 8f7830
Show the minimum block size from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-max-blocksize\fR
Packit 8f7830
Show the maximum block size from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-min-framesize\fR
Packit 8f7830
Show the minimum frame size from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-max-framesize\fR
Packit 8f7830
Show the maximum frame size from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-sample-rate\fR
Packit 8f7830
Show the sample rate from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-channels\fR
Packit 8f7830
Show the number of channels from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-bps\fR
Packit 8f7830
Show the # of bits per sample from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-total-samples\fR
Packit 8f7830
Show the total # of samples from the STREAMINFO block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-vendor-tag\fR
Packit 8f7830
Show the vendor string from the VORBIS_COMMENT block.
Packit 8f7830
.TP
Packit 8f7830
\fB--show-tag=name\fR
Packit 8f7830
Show all tags where the field name matches 'name'.
Packit 8f7830
.TP
Packit 8f7830
\fB--remove-tag=name\fR
Packit 8f7830
Remove all tags whose field name is 'name'.
Packit 8f7830
.TP
Packit 8f7830
\fB--remove-first-tag=name\fR
Packit 8f7830
Remove first tag whose field name is 'name'.
Packit 8f7830
.TP
Packit 8f7830
\fB--remove-all-tags\fR
Packit 8f7830
Remove all tags, leaving only the vendor string.
Packit 8f7830
.TP
Packit 8f7830
\fB--set-tag=field\fR
Packit 8f7830
Add a tag.  The field must comply with the
Packit 8f7830
Vorbis comment spec, of the form "NAME=VALUE".  If there is
Packit 8f7830
currently no tag block, one will be created.
Packit 8f7830
.TP
Packit 8f7830
\fB--set-tag-from-file=field\fR
Packit 8f7830
Like --set-tag, except the VALUE is a filename whose
Packit 8f7830
contents will be read verbatim to set the tag value.
Packit 8f7830
Unless --no-utf8-convert is specified, the contents will be
Packit 8f7830
converted to UTF-8 from the local charset.  This can be used
Packit 8f7830
to store a cuesheet in a tag (e.g.
Packit 8f7830
--set-tag-from-file="CUESHEET=image.cue").  Do not try to
Packit 8f7830
store binary data in tag fields!  Use APPLICATION blocks for
Packit 8f7830
that.
Packit 8f7830
.TP
Packit 8f7830
\fB--import-tags-from=file\fR
Packit 8f7830
Import tags from a file.  Use '-' for stdin.  Each
Packit 8f7830
line should be of the form NAME=VALUE.  Multi-line comments
Packit 8f7830
are currently not supported.  Specify --remove-all-tags and/or
Packit 8f7830
--no-utf8-convert before --import-tags-from if necessary.  If
Packit 8f7830
FILE is '-' (stdin), only one FLAC file may be specified.
Packit 8f7830
.TP
Packit 8f7830
\fB--export-tags-to=file\fR
Packit 8f7830
Export tags to a file.  Use '-' for stdout.  Each
Packit 8f7830
line will be of the form NAME=VALUE.  Specify
Packit 8f7830
--no-utf8-convert if necessary.
Packit 8f7830
.TP
Packit 8f7830
\fB--import-cuesheet-from=file\fR
Packit 8f7830
Import a cuesheet from a file.  Use '-' for stdin.  Only one
Packit 8f7830
FLAC file may be specified.  A seekpoint will be added for each
Packit 8f7830
index point in the cuesheet to the SEEKTABLE unless
Packit 8f7830
--no-cued-seekpoints is specified.
Packit 8f7830
.TP
Packit 8f7830
\fB--export-cuesheet-to=file\fR
Packit 8f7830
Export CUESHEET block to a cuesheet file, suitable for use by
Packit 8f7830
CD authoring software.  Use '-' for stdout.  Only one FLAC file
Packit 8f7830
may be specified on the command line.
Packit 8f7830
.TP
Packit 8f7830
\fB--import-picture-from={\fIFILENAME\fB|\fISPECIFICATION\fB}\fR
Packit 8f7830
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
Packit 8f7830
Packit 8f7830
[TYPE]|[MIME-TYPE]|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE
Packit 8f7830
Packit 8f7830
TYPE is optional; it is a number from one of:
Packit 8f7830
Packit 8f7830
0: Other
Packit 8f7830
Packit 8f7830
1: 32x32 pixels 'file icon' (PNG only)
Packit 8f7830
Packit 8f7830
2: Other file icon
Packit 8f7830
Packit 8f7830
3: Cover (front)
Packit 8f7830
Packit 8f7830
4: Cover (back)
Packit 8f7830
Packit 8f7830
5: Leaflet page
Packit 8f7830
Packit 8f7830
6: Media (e.g. label side of CD)
Packit 8f7830
Packit 8f7830
7: Lead artist/lead performer/soloist
Packit 8f7830
Packit 8f7830
8: Artist/performer
Packit 8f7830
Packit 8f7830
9: Conductor
Packit 8f7830
Packit 8f7830
10: Band/Orchestra
Packit 8f7830
Packit 8f7830
11: Composer
Packit 8f7830
Packit 8f7830
12: Lyricist/text writer
Packit 8f7830
Packit 8f7830
13: Recording Location
Packit 8f7830
Packit 8f7830
14: During recording
Packit 8f7830
Packit 8f7830
15: During performance
Packit 8f7830
Packit 8f7830
16: Movie/video screen capture
Packit 8f7830
Packit 8f7830
17: A bright coloured fish
Packit 8f7830
Packit 8f7830
18: Illustration
Packit 8f7830
Packit 8f7830
19: Band/artist logotype
Packit 8f7830
Packit 8f7830
20: Publisher/Studio logotype
Packit 8f7830
Packit 8f7830
The default is 3 (front cover).  There may only be one picture each of type 1 and 2 in a file.
Packit 8f7830
Packit 8f7830
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.
Packit 8f7830
Packit 8f7830
DESCRIPTION is optional; the default is an empty string.
Packit 8f7830
Packit 8f7830
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.
Packit 8f7830
Packit 8f7830
FILE is the path to the picture file to be imported, or the URL if MIME type is -->
Packit 8f7830
Packit 8f7830
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.
Packit 8f7830
Packit 8f7830
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.
Packit 8f7830
.TP
Packit 8f7830
\fB--export-picture-to=file\fR
Packit 8f7830
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.
Packit 8f7830
.TP
Packit 8f7830
\fB--add-replay-gain\fR
Packit 8f7830
Calculates the title and album gains/peaks of the given FLAC
Packit 8f7830
files as if all the files were part of one album, then stores
Packit 8f7830
them as FLAC tags.  The tags are the same as
Packit 8f7830
those used by vorbisgain.  Existing ReplayGain tags will be
Packit 8f7830
replaced.  If only one FLAC file is given, the album and title
Packit 8f7830
gains will be the same.  Since this operation requires two
Packit 8f7830
passes, it is always executed last, after all other operations
Packit 8f7830
have been completed and written to disk.  All FLAC files
Packit 8f7830
specified must have the same resolution, sample rate, and
Packit 8f7830
number of channels.  The sample rate must be one of 8, 11.025,
Packit 8f7830
12, 16, 18.9, 22.05, 24, 28, 32, 37.8, 44.1, 48, 56, 64, 88.2,
Packit 8f7830
96, 112, 128, 144, 176.4, or 192kHz.
Packit 8f7830
.TP
Packit 8f7830
\fB--scan-replay-gain\fR
Packit 8f7830
Like --add-replay-gain, but only analyzes the files rather than
Packit 8f7830
writing them to the tags.
Packit 8f7830
.TP
Packit 8f7830
\fB--remove-replay-gain\fR
Packit 8f7830
Removes the ReplayGain tags.
Packit 8f7830
.TP
Packit 8f7830
\fB--add-seekpoint={\fI#\fB|\fIX\fB|\fI#x\fB|\fI#s\fB}\fR
Packit 8f7830
Add seek points to a SEEKTABLE block.  Using #, a seek point at
Packit 8f7830
that sample number is added.  Using X, a placeholder point is
Packit 8f7830
added at the end of a the table.  Using #x, # evenly spaced seek
Packit 8f7830
points will be added, the first being at sample 0.  Using #s, a
Packit 8f7830
seekpoint will be added every # seconds (# does not have to be a
Packit 8f7830
whole number; it can be, for example, 9.5, meaning a seekpoint
Packit 8f7830
every 9.5 seconds).  If no SEEKTABLE block exists, one will be
Packit 8f7830
created.  If one already exists, points will be added to the
Packit 8f7830
existing table, and any duplicates will be turned into placeholder
Packit 8f7830
points.  You may use many --add-seekpoint options; the resulting
Packit 8f7830
SEEKTABLE will be the unique-ified union of all such values.
Packit 8f7830
Example: --add-seekpoint=100x --add-seekpoint=3.5s will add 100
Packit 8f7830
evenly spaced seekpoints and a seekpoint every 3.5 seconds.
Packit 8f7830
.TP
Packit 8f7830
\fB--add-padding=length\fR
Packit 8f7830
Add a padding block of the given length (in bytes).  The overall
Packit 8f7830
length of the new block will be 4 + length; the extra 4 bytes is
Packit 8f7830
for the metadata block header.
Packit 8f7830
.SH "MAJOR OPERATIONS"
Packit 8f7830
.TP
Packit 8f7830
\fB--list\fR
Packit 8f7830
List the contents of one or more metadata blocks to stdout.  By
Packit 8f7830
default, all metadata blocks are listed in text format.  Use the
Packit 8f7830
following options to change this behavior:
Packit 8f7830
.RS
Packit 8f7830
.TP
Packit 8f7830
\fB--block-number=#[,#[...]]\fR
Packit 8f7830
An optional comma-separated list of block numbers to display.
Packit 8f7830
The first block, the STREAMINFO block, is block 0.
Packit 8f7830
.TP
Packit 8f7830
\fB--block-type=type[,type[...]]\fR
Packit 8f7830
.TP
Packit 8f7830
\fB--except-block-type=type[,type[...]]\fR
Packit 8f7830
An optional comma-separated list of block types to be included
Packit 8f7830
or ignored with this option.  Use only one of --block-type or
Packit 8f7830
--except-block-type.  The valid block types are: STREAMINFO,
Packit 8f7830
PADDING, APPLICATION, SEEKTABLE, VORBIS_COMMENT, PICTURE.  You
Packit 8f7830
may narrow down the types of APPLICATION blocks displayed as
Packit 8f7830
follows:
Packit 8f7830
Packit 8f7830
APPLICATION:abcd        The APPLICATION block(s) whose textual repre-
Packit 8f7830
sentation of the 4-byte ID is "abcd"
Packit 8f7830
APPLICATION:0xXXXXXXXX  The APPLICATION block(s) whose hexadecimal big-
Packit 8f7830
endian representation of the 4-byte ID is
Packit 8f7830
"0xXXXXXXXX".  For the example "abcd" above the
Packit 8f7830
hexadecimal equivalalent is 0x61626364
Packit 8f7830
.sp
Packit 8f7830
.RS
Packit 8f7830
.B "Note:"
Packit 8f7830
if both --block-number and --[except-]block-type are
Packit 8f7830
specified, the result is the logical AND of both
Packit 8f7830
arguments.
Packit 8f7830
.RE
Packit 8f7830
.TP
Packit 8f7830
\fB--application-data-format=hexdump|text\fR
Packit 8f7830
If the application block you are displaying contains binary
Packit 8f7830
data but your --data-format=text, you can display a hex dump
Packit 8f7830
of the application data contents instead using
Packit 8f7830
--application-data-format=hexdump.
Packit 8f7830
.RE
Packit 8f7830
.TP
Packit 8f7830
\fB--remove\fR
Packit 8f7830
Remove one or more metadata blocks from the metadata.  Unless
Packit 8f7830
--dont-use-padding is specified, the blocks will be replaced with
Packit 8f7830
padding.  You may not remove the STREAMINFO block.
Packit 8f7830
.RS
Packit 8f7830
.TP
Packit 8f7830
\fB--block-number=#[,#[...]]\fR
Packit 8f7830
.TP
Packit 8f7830
\fB--block-type=type[,type[...]]\fR
Packit 8f7830
.TP
Packit 8f7830
\fB--except-block-type=type[,type[...]]\fR
Packit 8f7830
See --list above for usage.
Packit 8f7830
.sp
Packit 8f7830
.RS
Packit 8f7830
.B "Note:"
Packit 8f7830
if both --block-number and --[except-]block-type are
Packit 8f7830
specified, the result is the logical AND of both arguments.
Packit 8f7830
.RE
Packit 8f7830
.RE
Packit 8f7830
.TP
Packit 8f7830
\fB--remove-all\fR
Packit 8f7830
Remove all metadata blocks (except the STREAMINFO block) from the
Packit 8f7830
metadata.  Unless --dont-use-padding is specified, the blocks will
Packit 8f7830
be replaced with padding.
Packit 8f7830
.TP
Packit 8f7830
\fB--merge-padding\fR
Packit 8f7830
Merge adjacent PADDING blocks into single blocks.
Packit 8f7830
.TP
Packit 8f7830
\fB--sort-padding\fR
Packit 8f7830
Move all PADDING blocks to the end of the metadata and merge them
Packit 8f7830
into a single block.
Packit 8f7830
.SH "SEE ALSO"
Packit 8f7830
.PP
Packit 8f7830
flac(1).