Properly close HTML comments
[platform/upstream/flac.git] / doc / html / documentation_tools_metaflac.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <!-- Copyright (c) 2000-2009  Josh Coalson -->
3 <!-- Copyright (c) 2011-2013  Xiph.Org Foundation -->
4 <!-- Permission is granted to copy, distribute and/or modify this document -->
5 <!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
6 <!-- or any later version published by the Free Software Foundation; -->
7 <!-- with no invariant sections. -->
8 <!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
9 <html>
10 <head>
11         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
12         <meta name="author" content="Josh Coalson" />
13         <meta name="description" content="A free, open source codec for lossless audio compression and decompression" />
14         <meta name="keywords" content="free,lossless,audio,codec,encoder,decoder,compression,compressor,archival,archive,archiving,backup,music" />
15         <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
16         <link rel="stylesheet" type="text/css" href="flac.css" />
17         <title>FLAC - documentation</title>
18 </head>
19
20 <body>
21
22 <div class="logo">
23         <a href="http://flac.sourceforge.net/"><img src="images/logo130.gif" alt="FLAC Logo" align="middle" border="0" hspace="0" /></a>
24 </div>
25
26 <div class="above_nav"></div>
27
28 <div class="navbar">
29         &nbsp;<a href="index.html">home</a>&nbsp;&nbsp;|
30         &nbsp;<a href="faq.html">faq</a>&nbsp;&nbsp;|
31         &nbsp;<a href="news.html">news</a>&nbsp;&nbsp;|
32         &nbsp;<a href="download.html">download</a>&nbsp;&nbsp;|
33         &nbsp;<a href="documentation.html">documentation</a>&nbsp;&nbsp;|
34         &nbsp;<a href="comparison.html">comparison</a>&nbsp;&nbsp;|
35         &nbsp;<a href="changelog.html">changelog</a>&nbsp;&nbsp;|
36         &nbsp;<a href="links.html">links</a>&nbsp;&nbsp;|
37         &nbsp;<a href="developers.html">developers</a>&nbsp;
38 </div>
39
40 <div class="langbar">
41         &nbsp;english&nbsp;&nbsp;|
42         &nbsp;<a href="ru/documentation.html">russian</a>&nbsp;
43 </div>
44
45 <div class="below_nav"></div>
46
47 <div class="box">
48         <div class="box_title">
49                 <a name="metaflac">metaflac</a>
50         </div>
51         <div class="box_header"></div>
52         <div class="box_body">
53                 <a name="toc"><font size="+1"><b><u>Table of Contents</u></b></font></a>
54                 <ul>
55                         <li><a href="#usage">General Usage</a></li>
56                         <li><a href="#global_options">Global Options</a></li>
57                         <li><a href="#shorthand_operations">Shorthand Operations</a></li>
58                         <li><a href="#major_operations">Major Operations</a></li>
59                         <li><a href="#option_index">Option Index</a></li>
60                 </ul>
61                 <a name="usage"><font size="+1"><b><u>General Usage</u></b></font></a><br />
62                 <br />
63                 <span class="commandname">metaflac</span> is the command-line <span class="code">.flac</span> file metadata editor.  You can use it to list the contents of metadata blocks, edit, delete or insert blocks, and manage padding.<br />
64                 <br />
65                 <span class="commandname">metaflac</span> takes a set of "options" (though some are not optional) and a set of FLAC files to operate on.  There are three kinds of "options":
66                 <ul>
67                         <li>
68                                 Major operations, which specify a mode of operation like listing blocks, removing blocks, etc.  These will have sub-operations describing exactly what is to be done.
69                         </li>
70                         <li>
71                                 Shorthand operations, which are convenient synonyms for major operations.  For example, there is a shorthand operation <span class="argument">--show-sample-rate</span> that shows just the sample rate field from the <span class="code">STREAMINFO</span> metadata block.
72                         </li>
73                         <li>
74                                 Global options, which affect all the operations.
75                         </li>
76                 </ul>
77                 All of these are described in the tables below.  At least one shorthand or major operation must be supplied.  You can use multiple shorthand operations to do more than one thing to a file or set of files.  Most of the common things to do to metadata have shorthand operations.  As an example, here is how to show the MD5 signatures for a set of three FLAC files:<br />
78                 <br />
79                 <span class="code">metaflac --show-md5sum file1.flac file2.flac file3.flac</span><br />
80                 <br />
81                 Another example; this removes all DESCRIPTION and COMMENT tags in a set of FLAC files, and uses the <span class="argument">--preserve-modtime</span> global option to keep the FLAC file modification times the same (usually when files are edited the modification time is set to the current time):<br />
82                 <br />
83                 <span class="code">metaflac --preserve-modtime --remove-tag=DESCRIPTION --remove-tag=COMMENT file1.flac file2.flac file3.flac</span><br />
84                 <br />
85
86                 <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EEEED4"><tr><td>
87                 <table width="100%" border="1" bgcolor="#EEEED4">
88                         <tr>
89                                 <td colspan="2" bgcolor="#D3D4C5">
90                                         <a name="global_options"><font size="+1"><b>Global Options</b></font></a>
91                                 </td>
92                         </tr>
93                         <tr>
94                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
95                                         <a name="metaflac_options_preserve_modtime" />
96                                         <span class="argument">--preserve-modtime</span>
97                                 </td>
98                                 <td>
99                                         Preserve the original modification time in spite of edits.
100                                 </td>
101                         </tr>
102                         <tr>
103                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
104                                         <a name="metaflac_options_with_filename" />
105                                         <span class="argument">--with-filename</span>
106                                 </td>
107                                 <td>
108                                         Prefix each output line with the FLAC file name (the default if more than one FLAC file is specified).
109                                 </td>
110                         </tr>
111                         <tr>
112                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
113                                         <a name="metaflac_options_no_filename" />
114                                         <span class="argument">--no-filename</span>
115                                 </td>
116                                 <td>
117                                         Do not prefix each output line with the FLAC file name (the default if only one FLAC file is specified)
118                                 </td>
119                         </tr>
120                         <tr>
121                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
122                                         <a name="metaflac_options_no_utf8_convert" />
123                                         <span class="argument">--no-utf8-convert</span>
124                                 </td>
125                                 <td>
126                                         Do not convert tags from UTF-8 to local charset, or vice versa.  This is useful for scripts, and setting tags in situations where the locale is wrong.
127                                 </td>
128                         </tr>
129                         <tr>
130                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
131                                         <a name="metaflac_options_dont_use_padding" />
132                                         <span class="argument">--dont-use-padding</span>
133                                 </td>
134                                 <td>
135                                         By default <span class="commandname">metaflac</span> tries to use padding where possible to avoid rewriting the entire file if the metadata size changes.  Use this option to tell metaflac to not take advantage of padding this way.
136                                 </td>
137                         </tr>
138                 </table>
139                 </td></tr></table>
140
141                 <br />
142
143                 <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EEEED4"><tr><td>
144                 <table width="100%" border="1" bgcolor="#EEEED4">
145                         <tr>
146                                 <td colspan="2" bgcolor="#D3D4C5">
147                                         <a name="shorthand_operations"><font size="+1"><b>Shorthand Operations</b></font></a>
148                                 </td>
149                         </tr>
150                         <tr>
151                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
152                                         <a name="metaflac_shorthand_show_md5sum" />
153                                         <span class="argument">--show-md5sum</span>
154                                 </td>
155                                 <td>
156                                         Show the MD5 signature from the <span class="code">STREAMINFO</span> block.
157                                 </td>
158                         </tr>
159                         <tr>
160                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
161                                         <a name="metaflac_shorthand_show_min_blocksize" />
162                                         <span class="argument">--show-min-blocksize</span>
163                                 </td>
164                                 <td>
165                                         Show the minimum block size from the <span class="code">STREAMINFO</span> block.
166                                 </td>
167                         </tr>
168                         <tr>
169                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
170                                         <a name="metaflac_shorthand_show_max_blocksize" />
171                                         <span class="argument">--show-max-blocksize</span>
172                                 </td>
173                                 <td>
174                                         Show the maximum block size from the <span class="code">STREAMINFO</span> block.
175                                 </td>
176                         </tr>
177                         <tr>
178                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
179                                         <a name="metaflac_shorthand_show_min_framesize" />
180                                         <span class="argument">--show-min-framesize</span>
181                                 </td>
182                                 <td>
183                                         Show the minimum frame size from the <span class="code">STREAMINFO</span> block.
184                                 </td>
185                         </tr>
186                         <tr>
187                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
188                                         <a name="metaflac_shorthand_show_max_framesize" />
189                                         <span class="argument">--show-max-framesize</span>
190                                 </td>
191                                 <td>
192                                         Show the maximum frame size from the <span class="code">STREAMINFO</span> block.
193                                 </td>
194                         </tr>
195                         <tr>
196                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
197                                         <a name="metaflac_shorthand_show_sample_rate" />
198                                         <span class="argument">--show-sample-rate</span>
199                                 </td>
200                                 <td>
201                                         Show the sample rate from the <span class="code">STREAMINFO</span> block.
202                                 </td>
203                         </tr>
204                         <tr>
205                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
206                                         <a name="metaflac_shorthand_show_channels" />
207                                         <span class="argument">--show-channels</span>
208                                 </td>
209                                 <td>
210                                         Show the number of channels from the <span class="code">STREAMINFO</span> block.
211                                 </td>
212                         </tr>
213                         <tr>
214                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
215                                         <a name="metaflac_shorthand_show_bps" />
216                                         <span class="argument">--show-bps</span>
217                                 </td>
218                                 <td>
219                                         Show the # of bits per sample from the <span class="code">STREAMINFO</span> block.
220                                 </td>
221                         </tr>
222                         <tr>
223                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
224                                         <a name="metaflac_shorthand_show_total_samples" />
225                                         <span class="argument">--show-total-samples</span>
226                                 </td>
227                                 <td>
228                                         Show the total # of samples from the <span class="code">STREAMINFO</span> block.
229                                 </td>
230                         </tr>
231                         <tr>
232                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
233                                         <a name="metaflac_shorthand_show_vendor_tag" />
234                                         <span class="argument">--show-vendor-tag</span>
235                                 </td>
236                                 <td>
237                                         Show the vendor string from the <span class="code">VORBIS_COMMENT</span> block.
238                                 </td>
239                         </tr>
240                         <tr>
241                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
242                                         <a name="metaflac_shorthand_show_tag" />
243                                         <span class="argument">--show-tag=NAME</span>
244                                 </td>
245                                 <td>
246                                         Show all tags where the the field name matches <span class="argument">NAME</span>.
247                                 </td>
248                         </tr>
249                         <tr>
250                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
251                                         <a name="metaflac_shorthand_remove_tag" />
252                                         <span class="argument">--remove-tag=NAME</span>
253                                 </td>
254                                 <td>
255                                         Remove all tags whose field name is <span class="argument">NAME</span>.
256                                 </td>
257                         </tr>
258                         <tr>
259                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
260                                         <a name="metaflac_shorthand_remove_first_tag" />
261                                         <span class="argument">--remove-first-tag=NAME</span>
262                                 </td>
263                                 <td>
264                                         Remove first tag whose field name is <span class="argument">NAME</span>.
265                                 </td>
266                         </tr>
267                         <tr>
268                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
269                                         <a name="metaflac_shorthand_remove_all_tags" />
270                                         <span class="argument">--remove-all-tags</span>
271                                 </td>
272                                 <td>
273                                         Remove all tags, leaving only the vendor string.
274                                 </td>
275                         </tr>
276                         <tr>
277                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
278                                         <a name="metaflac_shorthand_set_tag" />
279                                         <span class="argument">--set-tag=FIELD</span>
280                                 </td>
281                                 <td>
282                                         Add a tag.  The <span class="argument">FIELD</span> must comply with the Vorbis comment spec, of the form <span class="argument">NAME=VALUE</span>.  If there is currently no tag block, one will be created.
283                                 </td>
284                         </tr>
285                         <tr>
286                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
287                                         <a name="metaflac_shorthand_set_tag_from_file" />
288                                         <span class="argument">--set-tag-from-file=FIELD</span>
289                                 </td>
290                                 <td>
291                                         Like <a href="#metaflac_shorthand_set_tag"><span class="argument">--set-tag</span></a>, except the VALUE is a filename whose contents will be read verbatim to set the tag value.  Unless <a href="#metaflac_options_no_utf8_convert"><span class="argument">--no-utf8-convert</span></a> is specified, 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. <span class="argument">--set-tag-from-file="CUESHEET=image.cue"</span>).  Do not try to store binary data in tag fields!  Use APPLICATION blocks for that.
292                                 </td>
293                         </tr>
294                         <tr>
295                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
296                                         <a name="metaflac_shorthand_import_tags_from" />
297                                         <span class="argument">--import-tags-from=FILE</span>
298                                 </td>
299                                 <td>
300                                         Import tags from a file.  Use <span class="argument">-</span> for stdin.  Each line should be of the form <span class="argument">NAME=VALUE</span>.  Multi-line comments are currently not supported.  Specify <span class="argument">--remove-all-tags</span> and/or <a href="#metaflac_options_no_utf8_convert"><span class="argument">--no-utf8-convert</span></a> before <span class="argument">--import-tags-from</span> if necessary.  If <span class="argument">FILE</span> is <span class="argument">-</span> (stdin), only one FLAC file may be specified.
301                                 </td>
302                         </tr>
303                         <tr>
304                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
305                                         <a name="metaflac_shorthand_export_tags_to" />
306                                         <span class="argument">--export-tags-to=FILE</span>
307                                 </td>
308                                 <td>
309                                         Export tags to a file.  Use <span class="argument">-</span> for stdin.  Each line will be of the form <span class="argument">NAME=VALUE</span>.  Specify <a href="#metaflac_options_no_utf8_convert"><span class="argument">--no-utf8-convert</span></a> if necessary.
310                                 </td>
311                         </tr>
312                         <tr>
313                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
314                                         <a name="metaflac_shorthand_import_cuesheet_from" />
315                                         <span class="argument">--import-cuesheet-from=FILE</span>
316                                 </td>
317                                 <td>
318                                         Import a cuesheet from a file.  Use <span class="argument">-</span> for stdin.  Only one FLAC file may be specified.  A seekpoint will be added for each index point in the cuesheet to the <span class="code">SEEKTABLE</span> unless <span class="argument">--no-cued-seekpoints</span> is specified.
319                                 </td>
320                         </tr>
321                         <tr>
322                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
323                                         <a name="metaflac_shorthand_export_cuesheet_to" />
324                                         <span class="argument">--export-cuesheet-to=FILE</span>
325                                 </td>
326                                 <td>
327                                         Export <span class="code">CUESHEET</span> block to a cuesheet file, suitable for use by CD authoring software.  Use <span class="argument">-</span> for stdout.  Only one FLAC file may be specified on the command line.
328                                 </td>
329                         </tr>
330                         <tr>
331                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
332                                         <a name="metaflac_shorthand_import_picture_from" />
333                                         <span class="argument">--import-picture-from={FILENAME|SPECIFICATION}</span>
334                                 </td>
335                                 <td>
336                                         Import a picture and store it in a <a href="format.html#def_PICTURE"><span class="code">PICTURE</span></a> metadata block.  See the <span class="commandname">flac</span> option <span class="argument"><a href="documentation_tools_flac.html#flac_options_picture">--picture</a></span> for an explanation of the <span class="argument">SPECIFICATION</span> syntax.
337                                 </td>
338                         </tr>
339                         <tr>
340                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
341                                         <a name="metaflac_shorthand_export_picture_to" />
342                                         <span class="argument">--export-picture-to=FILE</span>
343                                 </td>
344                                 <td>
345                                         Export <span class="code">PICTURE</span> block to a file.  Use <span class="argument">-</span> for stdout.  Only one FLAC file may be specified on the command line.  The first <span class="code">PICTURE</span> block will be exported unless <span class="argument">--export-picture-to</span> is preceded by a <span class="argument">--block-number=#</span> option to specify the exact metadata block to extract.  Note that the block number is the one shown by --list.
346                                 </td>
347                         </tr>
348                         <tr>
349                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
350                                         <a name="metaflac_shorthand_add_replay_gain" />
351                                         <span class="argument">--add-replay-gain</span>
352                                 </td>
353                                 <td>
354                                         Calculates the title and album gains/peaks of the given FLAC files as if all the files were part of one album, then stores them as FLAC tags.  The tags are the same as those used by <span class="commandname">vorbisgain</span>.  Existing ReplayGain tags will be replaced.  If only one FLAC file is given, the album and title gains will be the same.  Since this operation requires two passes, it is always executed last, after all other operations have been completed and written to disk.  All FLAC files specified must have the same resolution, sample rate, and number of channels.  The sample rate must be one of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, or 48 kHz.
355                                 </td>
356                         </tr>
357                         <tr>
358                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
359                                         <a name="metaflac_shorthand_remove_replay_gain" />
360                                         <span class="argument">--remove-replay-gain</span>
361                                 </td>
362                                 <td>
363                                         Removes the ReplayGain tags.
364                                 </td>
365                         </tr>
366                         <tr>
367                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
368                                         <a name="metaflac_shorthand_add_seekpoint" />
369                                         <span class="argument">--add-seekpoint={#|X|#x|#s}</span>
370                                 </td>
371                                 <td>
372                                         Add seek points to a <span class="code">SEEKTABLE</span> block:<br />
373                                         <ul>
374                                         <li>
375                                                 <span class="argument">#&nbsp;</span> : a specific sample number for a seek point
376                                         </li>
377                                         <li>
378                                                 <span class="argument">X&nbsp;</span> : a placeholder point (always goes at the end of the <span class="code">SEEKTABLE</span>)
379                                         </li>
380                                         <li>
381                                                 <span class="argument">#x</span> : # evenly spaced seekpoints, the first being at sample 0
382                                         </li>
383                                         <li>
384                                                 <span class="argument">#s</span> : a seekpoint every # seconds; # does not have to be a whole number, it can be, for example, <span class="argument">9.5</span>, meaning a seekpoint every 9.5 seconds
385                                         </li>
386                                         </ul>
387                                         If no <span class="code">SEEKTABLE</span> block exists, one will be created.  If one already exists, points will be added to the existing table, and any duplicates will be turned into placeholder points.<br />
388                                         You may use many <span class="argument">--add-seekpoint</span> options; the resulting <span class="code">SEEKTABLE</span> will be the unique-ified union of all such values.  Example: <span class="argument">--add-seekpoint=100x --add-seekpoint=3.5s</span> will add 100 evenly spaced seekpoints and a seekpoint every 3.5 seconds.<br />
389                                 </td>
390                         </tr>
391                         <tr>
392                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
393                                         <a name="metaflac_shorthand_add_padding" />
394                                         <span class="argument">--add-padding=#</span>
395                                 </td>
396                                 <td>
397                                         Add a padding block of the given length (in bytes).  The overall length of the new block will be 4 + length; the extra 4 bytes is for the metadata block header.
398                                 </td>
399                         </tr>
400                 </table>
401                 </td></tr></table>
402
403                 <br />
404
405                 <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EEEED4"><tr><td>
406                 <table width="100%" border="1" bgcolor="#EEEED4">
407                         <tr>
408                                 <td colspan="2" bgcolor="#D3D4C5">
409                                         <a name="major_operations"><font size="+1"><b>Major Operations</b></font></a>
410                                 </td>
411                         </tr>
412                         <tr>
413                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
414                                         <a name="metaflac_operations_version" />
415                                         <span class="argument">--version</span>
416                                 </td>
417                                 <td>
418                                         Show the metaflac version number.
419                                 </td>
420                         </tr>
421                         <tr>
422                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
423                                         <a name="metaflac_operations_list" />
424                                         <span class="argument">--list</span>
425                                 </td>
426                                 <td>
427                                         List the contents of one or more metadata blocks to stdout.  By default, all metadata blocks are listed in text format.  Use the following options to change this behavior:<br />
428                                         <br />
429
430                                         <span class="argument">--block-number=#[,#[...]]</span><br />
431                                         An optional comma-separated list of block numbers to display.  The first block, the <span class="code">STREAMINFO</span> block, is block 0.<br />
432                                         <br />
433
434                                         <span class="argument">--block-type=type[,type[...]]</span><br />
435                                         <span class="argument">--except-block-type=type[,type[...]]</span><br />
436                                         An optional comma-separated list of block types to be included or ignored with this option.  Use only one of <span class="argument">--block-type</span> or <span class="argument">--except-block-type</span>.  The valid block types are: <span class="code">STREAMINFO</span>, <span class="code">PADDING</span>, <span class="code">APPLICATION</span>, <span class="code">SEEKTABLE</span>, <span class="code">VORBIS_COMMENT</span>.  You may narrow down the types of <span class="code">APPLICATION</span> blocks displayed as follows:<br />
437                                         <table border="1">
438                                                 <tr>
439                                                         <td><span class="argument">APPLICATION:abcd</span></td>
440                                                         <td>The <span class="code">APPLICATION</span> block(s) whose textual representation of the 4-byte ID is "abcd"</td>
441                                                 </tr>
442                                                 <tr>
443                                                         <td><span class="argument">APPLICATION:0xXXXXXXXX</span></td>
444                                                         <td>The <span class="code">APPLICATION</span> block(s) whose hexadecimal big- endian representation of the 4-byte ID is "0xXXXXXXXX".  For the example "abcd" above the hexadecimal equivalalent is 0x61626364</td>
445                                                 </tr>
446                                         </table>
447                                         <br />
448
449                                         NOTE: if both <span class="argument">--block-number</span> and <span class="argument">--[except-]block-type</span> are specified, the result is the logical AND of both arguments.<br />
450                                         <br />
451
452                                         <span class="argument">--application-data-format=hexdump|text</span><br />
453                                         If the application block you are displaying contains binary data but your <span class="argument">--data-format=text</span>, you can display a hex dump of the application data contents instead using <span class="argument">--application-data-format=hexdump</span>.
454                                 </td>
455                         </tr>
456                         <tr>
457                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
458                                         <a name="metaflac_operations_remove" />
459                                         <span class="argument">--remove</span>
460                                 </td>
461                                 <td>
462                                         Remove one or more metadata blocks from the metadata.  Unless <span class="argument">--dont-use-padding</span> is specified, the blocks will be replaced with padding.  You may not remove the <span class="code">STREAMINFO</span> block.<br />
463                                         <br />
464
465                                         <span class="argument">--block-number=#[,#[...]]</span><br />
466                                         <span class="argument">--block-type=type[,type[...]]</span><br />
467                                         <span class="argument">--except-block-type=type[,type[...]]</span><br />
468                                         See <a href="#metaflac_operations_list"><span class="argument">--list</span></a> above for usage.<br />
469                                         <br />
470
471                                         NOTE: if both <span class="argument">--block-number</span> and <span class="argument">--[except-]block-type</span> are specified, the result is the logical AND of both arguments.
472                                 </td>
473                         </tr>
474                         <tr>
475                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
476                                         <a name="metaflac_operations_remove_all" />
477                                         <span class="argument">--remove-all</span>
478                                 </td>
479                                 <td>
480                                         Remove all metadata blocks (except the <span class="code">STREAMINFO</span> block) from the metadata.  Unless <span class="argument">--dont-use-padding</span> is specified, the blocks will be replaced with padding.
481                                 </td>
482                         </tr>
483                         <tr>
484                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
485                                         <a name="metaflac_operations_merge_padding" />
486                                         <span class="argument">--merge-padding</span>
487                                 </td>
488                                 <td>
489                                         Merge adjacent <span class="code">PADDING</span> blocks into single blocks.
490                                 </td>
491                         </tr>
492                         <tr>
493                                 <td nowrap="nowrap" align="right" valign="top" bgcolor="#F4F4CC">
494                                         <a name="metaflac_operations_sort_padding" />
495                                         <span class="argument">--sort-padding</span>
496                                 </td>
497                                 <td>
498                                         Move all <span class="code">PADDING</span> blocks to the end of the metadata and merge them into a single block.
499                                 </td>
500                         </tr>
501                 </table>
502                 </td></tr></table>
503
504                 <br />
505                 <a name="option_index"><font size="+1"><b><u>Option Index</u></b></font></a><br />
506                 <br />
507                 <a href="#metaflac_shorthand_add_padding"><span class="argument">--add-padding</span></a><br />
508                 <a href="#metaflac_shorthand_add_replay_gain"><span class="argument">--add-replay-gain</span></a><br />
509                 <a href="#metaflac_shorthand_add_seekpoint"><span class="argument">--add-seekpoint</span></a><br />
510                 <a href="#metaflac_options_dont_use_padding"><span class="argument">--dont-use-padding</span></a><br />
511                 <a href="#metaflac_shorthand_export_cuesheet_to"><span class="argument">--export-cuesheet-to</span></a><br />
512                 <a href="#metaflac_shorthand_export_picture_to"><span class="argument">--export-picture-to</span></a><br />
513                 <a href="#metaflac_shorthand_export_tags_to"><span class="argument">--export-tags-to</span></a><br />
514                 <a href="#metaflac_shorthand_import_cuesheet_from"><span class="argument">--import-cuesheet-from</span></a><br />
515                 <a href="#metaflac_shorthand_import_picture_from"><span class="argument">--import-picture-from</span></a><br />
516                 <a href="#metaflac_shorthand_import_tags_from"><span class="argument">--import-tags-from</span></a><br />
517                 <a href="#metaflac_operations_list"><span class="argument">--list</span></a><br />
518                 <a href="#metaflac_operations_merge_padding"><span class="argument">--merge-padding</span></a><br />
519                 <a href="#metaflac_options_no_filename"><span class="argument">--no-filename</span></a><br />
520                 <a href="#metaflac_options_no_utf8_convert"><span class="argument">--no-utf8-convert</span></a><br />
521                 <a href="#metaflac_options_preserve_modtime"><span class="argument">--preserve-modtime</span></a><br />
522                 <a href="#metaflac_shorthand_remove_all_tags"><span class="argument">--remove-all-tags</span></a><br />
523                 <a href="#metaflac_operations_remove_all"><span class="argument">--remove-all</span></a><br />
524                 <a href="#metaflac_shorthand_remove_first_tag"><span class="argument">--remove-first-tag</span></a><br />
525                 <a href="#metaflac_shorthand_remove_replay_gain"><span class="argument">--remove-replay-gain</span></a><br />
526                 <a href="#metaflac_shorthand_remove_tag"><span class="argument">--remove-tag</span></a><br />
527                 <a href="#metaflac_operations_remove"><span class="argument">--remove</span></a><br />
528                 <a href="#metaflac_shorthand_set_tag_from_file"><span class="argument">--set-tag-from-file</span></a><br />
529                 <a href="#metaflac_shorthand_set_tag"><span class="argument">--set-tag</span></a><br />
530                 <a href="#metaflac_shorthand_show_bps"><span class="argument">--show-bps</span></a><br />
531                 <a href="#metaflac_shorthand_show_channels"><span class="argument">--show-channels</span></a><br />
532                 <a href="#metaflac_shorthand_show_max_blocksize"><span class="argument">--show-max-blocksize</span></a><br />
533                 <a href="#metaflac_shorthand_show_max_framesize"><span class="argument">--show-max-framesize</span></a><br />
534                 <a href="#metaflac_shorthand_show_md5sum"><span class="argument">--show-md5sum</span></a><br />
535                 <a href="#metaflac_shorthand_show_min_blocksize"><span class="argument">--show-min-blocksize</span></a><br />
536                 <a href="#metaflac_shorthand_show_min_framesize"><span class="argument">--show-min-framesize</span></a><br />
537                 <a href="#metaflac_shorthand_show_sample_rate"><span class="argument">--show-sample-rate</span></a><br />
538                 <a href="#metaflac_shorthand_show_tag"><span class="argument">--show-tag</span></a><br />
539                 <a href="#metaflac_shorthand_show_total_samples"><span class="argument">--show-total-samples</span></a><br />
540                 <a href="#metaflac_shorthand_show_vendor_tag"><span class="argument">--show-vendor-tag</span></a><br />
541                 <a href="#metaflac_operations_sort_padding"><span class="argument">--sort-padding</span></a><br />
542                 <a href="#metaflac_operations_version"><span class="argument">--version</span></a><br />
543                 <a href="#metaflac_options_with_filename"><span class="argument">--with-filename</span></a><br />
544
545         </div>
546         <div class="box_footer"></div>
547 </div>
548
549
550 <div class="copyright">
551         <!-- @@@ oh so hacky -->
552         <table>
553                 <tr>
554                         <td align="left">
555                                 Copyright (c) 2000-2009  Josh Coalson
556                                 <br/>
557                                 Copyright (c) 2011-2013  Xiph.Org Foundation
558                         </td>
559                         <td width="1%" align="right">
560                                 <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=13478&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
561                         </td>
562                         <td width="1%" align="right">
563                                 <a href="http://www.eff.org/cafe/"><img src="images/cafebug.gif" alt="CAFE Logo" border="0" /></a><br />
564                         </td>
565                         <td width="1%" align="right">
566                                 <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" border="0" hspace="0" /></a>
567                         </td>
568                 </tr>
569         </table>
570 </div>
571
572 </body>
573 </html>