1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
[
<!ENTITY product "mkvinfo">
<!ENTITY version "97.0">
<!ENTITY date "2026-01-02">
<!ENTITY mkvmerge "<citerefentry><refentrytitle>mkvmerge</refentrytitle><manvolnum>1</manvolnum></citerefentry>">
<!ENTITY mkvinfo "<citerefentry><refentrytitle>mkvinfo</refentrytitle><manvolnum>1</manvolnum></citerefentry>">
<!ENTITY mkvextract "<citerefentry><refentrytitle>mkvextract</refentrytitle><manvolnum>1</manvolnum></citerefentry>">
<!ENTITY mkvpropedit "<citerefentry><refentrytitle>mkvpropedit</refentrytitle><manvolnum>1</manvolnum></citerefentry>">
<!ENTITY mtxgui "<citerefentry><refentrytitle>mkvtoolnix-gui</refentrytitle><manvolnum>1</manvolnum></citerefentry>">
<!ENTITY matroska "<productname>Matroska</productname>">
<!ENTITY oggvorbis "<productname>OggVorbis</productname>">
<!ENTITY xml "<abbrev>XML</abbrev>">
]>
<refentry lang="en" id="mkvinfo">
<refentryinfo>
<productname>&product;</productname>
<date>&date;</date>
<authorgroup>
<author>
<contrib>Developer</contrib>
<firstname>Moritz</firstname>
<surname>Bunkus</surname>
<email>moritz@bunkus.org</email>
</author>
</authorgroup>
</refentryinfo>
<refmeta>
<refentrytitle>&product;</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="version">&version;</refmiscinfo>
<refmiscinfo class="date">&date;</refmiscinfo>
<refmiscinfo class="source">MKVToolNix</refmiscinfo>
<refmiscinfo class="manual">User Commands</refmiscinfo>
</refmeta>
<refnamediv>
<refname>&product;</refname>
<refpurpose>Print information about elements in &matroska; files</refpurpose>
</refnamediv>
<refsynopsisdiv id="mkvinfo.synopsis">
<title>Synopsis</title>
<cmdsynopsis>
<command>mkvinfo</command>
<arg>options</arg>
<arg choice="req">source-filename</arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="mkvinfo.description">
<title>Description</title>
<para>
This program lists all elements contained in a &matroska;. The output can be limited to a list of tracks in the file including
information about the codecs used.
</para>
<variablelist>
<varlistentry id="mkvinfo.description.all">
<term><option>-a</option>, <option>--all</option></term>
<listitem>
<para>
By default &mkvinfo; stops when it encounters the first cluster. Additionally it doesn't show certain often occurring elements. With
this option &mkvinfo; will continue processing regardless of the verbosity level and show all elements.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.checksums">
<term><option>-c</option>, <option>--checksums</option></term>
<listitem>
<para>
Calculates and display the <function>Adler-32</function> checksum for each frame. Useful for debugging only.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.continue">
<term><option>-o</option>, <option>--continue</option></term>
<listitem>
<para>
By default &mkvinfo; stops when it encounters the first cluster. With this option &mkvinfo; will continue processing regardless of
the verbosity level.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.hex_positions">
<term><option>-p</option>, <option>--hex-positions</option></term>
<listitem>
<para>
Show the positions of all elements in hexadecimal regardless of the verbosity level.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.positions">
<term><option>-P</option>, <option>--positions</option></term>
<listitem>
<para>
Show the positions of all elements in decimal regardless of the verbosity level.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.summary">
<term><option>-s</option>, <option>--summary</option></term>
<listitem>
<para>
Only show a terse summary of what &mkvinfo; finds and not each element.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.track_info">
<term><option>-t</option>, <option>--track-info</option></term>
<listitem>
<para>
Show statistics for each track in verbose mode. Also sets verbosity to 1 if it was at level 0 before.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.hexdump">
<term><option>-x</option>, <option>--hexdump</option></term>
<listitem>
<para>
Show the first 16 bytes of each frame as a hex dump.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.full_hexdump">
<term><option>-X</option>, <option>--full-hexdump</option></term>
<listitem>
<para>
Show all bytes of each frame as a hex dump.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.size">
<term><option>-z</option>, <option>--size</option></term>
<listitem>
<para>
Show the size of each element including its header.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.command_line_charset">
<term><option>--command-line-charset</option> <parameter>character-set</parameter></term>
<listitem>
<para>
Sets the character set to convert strings given on the command line from. It defaults to the character set given by system's current
locale.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.output_charset">
<term><option>--output-charset</option> <parameter>character-set</parameter></term>
<listitem>
<para>
Sets the character set to which strings are converted that are to be output. It defaults to the character set given by system's
current locale.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.redirect_output">
<term><option>-r</option>, <option>--redirect-output</option> <parameter>file-name</parameter></term>
<listitem>
<para>
Writes all messages to the file <parameter>file-name</parameter> instead of to the console. While this can be done easily with
output redirection there are cases in which this option is needed: when the terminal reinterprets the output before writing it to a
file. The character set set with <link
linkend="mkvinfo.description.output_charset"><option>--output-charset</option></link> is honored.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.no_bom">
<term><option>--no-bom</option></term>
<listitem>
<para>
Normally text files that are created & encoded in one of the UTF variants will start with a byte order marker (BOM). Using this
option disables writing that byte order marker.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.ui_language">
<term><option>--ui-language</option> <parameter>code</parameter></term>
<listitem>
<para>
Forces the translations for the language <parameter>code</parameter> to be used (e.g. '<literal>de_DE</literal>' for the German
translations). Entering '<literal>list</literal>' as the <parameter>code</parameter> will cause the program to output a list of
available translations.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.abort_on_warnings">
<term><option>--abort-on-warnings</option></term>
<listitem>
<para>
Tells the program to abort after the first warning is emitted. The program's exit code will be 1.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.debug">
<term><option>--debug</option> <parameter>topic</parameter></term>
<listitem>
<para>
Turn on debugging for a specific feature. This option is only useful for developers.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.engage">
<term><option>--engage</option> <parameter>feature</parameter></term>
<listitem>
<para>
Turn on experimental features. A list of available features can be requested with <command>mkvinfo --engage list</command>. These
features are not meant to be used in normal situations.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.gui_mode">
<term><option>--gui-mode</option></term>
<listitem>
<para>
Turns on GUI mode. In this mode specially-formatted lines may be output that can tell a controlling GUI what's happening. These
messages follow the format '<literal>#GUI#message</literal>'. The message may be followed by key/value pairs as in
'<literal>#GUI#message#key1=value1#key2=value2…</literal>'. Neither the messages nor the keys are ever translated and always output
in English.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.verbose">
<term><option>-v</option>, <option>--verbose</option></term>
<listitem>
<para>
Be more verbose. See the section about <link linkend="mkvinfo.verbosity_levels">verbosity levels</link> for a description which
information will be output at which level.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.help">
<term><option>-h</option>, <option>--help</option></term>
<listitem>
<para>
Show usage information and exit.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.version">
<term><option>-V</option>, <option>--version</option></term>
<listitem>
<para>
Show version information and exit.
</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.description.options_file">
<term><option>@</option><parameter>options-file.json</parameter></term>
<listitem>
<para>
Reads additional command line arguments from the file <parameter>options-file</parameter>. For a full explanation on the supported
formats for such files see the section called "Option files" in the &mkvmerge; man page.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 id="mkvinfo.verbosity_levels">
<title>Verbosity levels</title>
<para>
The <link linkend="mkvinfo.description.verbose"><option>-v</option></link> option can be used to increase &mkvinfo;'s verbosity level
and print more information about the current file.
</para>
<para>
At level 0 &mkvinfo; will print only the track headers it finds and their types. &mkvinfo; will exit as soon as the headers are parsed
completely (more technical: as soon as the first cluster is encountered). In this level the seek head entries and the cues will not be
displayed -- even if they're located in front of the track information.
</para>
<para>
At level 1 &mkvinfo; will also print all &matroska; elements encountered for the complete file but the seek head entries and the cue
entries. If the summary mode is enabled then &mkvinfo; will output the frame position as well.
</para>
<para>
The same effect can be achieved with the option <option>--continue</option>.
</para>
<para>
At level 2 &mkvinfo; will also print the seek head entries, the cue entries and the file position at which each &matroska; element can be
found at.
</para>
<para>
The same effect can be achieved with the options <option>--all --positions</option>.
</para>
<para>
At level 3 and above &mkvinfo; will print some information that is not directly connected to a &matroska; element. All other elements
only print stuff about the elements that were just found. Level 3 adds meta information to ease debugging (read: it's intended for
developers only). All lines written by level 3 are enclosed in square brackets to make filtering them out easy.
</para>
</refsect1>
<refsect1 id="mkvinfo.text_files_and_charsets">
<title>Text files and character set conversions</title>
<para>
For an in-depth discussion about how all tools in the MKVToolNix suite handle character set conversions, input/output encoding, command
line encoding and console encoding please see the identically-named section in the &mkvmerge; man page.
</para>
</refsect1>
<refsect1>
<title>Exit codes</title>
<para>
&mkvinfo; exits with one of three exit codes:
</para>
<itemizedlist>
<listitem>
<para>
<constant>0</constant> -- This exit code means that the run has completed successfully.
</para>
</listitem>
<listitem>
<para>
<constant>1</constant> -- In this case &mkvinfo; has output at least one warning, but the run did continue. A warning is
prefixed with the text '<literal>Warning:</literal>'.
</para>
</listitem>
<listitem>
<para>
<constant>2</constant> -- This exit code is used after an error occurred. &mkvinfo; aborts right after outputting the error message.
Error messages range from wrong command line arguments over read/write errors to broken files.
</para>
</listitem>
</itemizedlist>
</refsect1>
<refsect1 id="mkvinfo.environment_variables">
<title>Environment variables</title>
<para>
&mkvinfo; uses the default variables that determine the system's locale (e.g. <varname>LANG</varname> and the <varname>LC_*</varname>
family). Additional variables:
</para>
<variablelist>
<varlistentry id="mkvinfo.environment_variables.debug">
<term><varname>MKVINFO_DEBUG</varname>, <varname>MKVTOOLNIX_DEBUG</varname> and its short form <varname>MTX_DEBUG</varname></term>
<listitem>
<para>The content is treated as if it had been passed via the <link
linkend="mkvinfo.description.debug"><option>--debug</option></link> option.</para>
</listitem>
</varlistentry>
<varlistentry id="mkvinfo.environment_variables.engage">
<term><varname>MKVINFO_ENGAGE</varname>, <varname>MKVTOOLNIX_ENGAGE</varname> and its short form <varname>MTX_ENGAGE</varname></term>
<listitem>
<para>The content is treated as if it had been passed via the <link
linkend="mkvinfo.description.engage"><option>--engage</option></link> option.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 id="mkvinfo.seealso">
<title>See also</title>
<para>
&mkvmerge;, &mkvextract;, &mkvpropedit;, &mtxgui;
</para>
</refsect1>
<refsect1 id="mkvinfo.www">
<title>WWW</title>
<para>
The latest version can always be found at <ulink url="https://mkvtoolnix.download/">the MKVToolNix homepage</ulink>.
</para>
</refsect1>
</refentry>
|