2009-12-26 21:16:03 +00:00
'\" t
2009-08-10 19:22:09 +00:00
. \" Title: mkvinfo
. \" Author: Moritz Bunkus <moritz@bunkus.org>
2016-02-21 16:03:35 +00:00
. \" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
2016-11-29 18:48:40 +00:00
. \" Date: 2016-11-29
2009-08-10 19:22:09 +00:00
. \" Manual: User Commands
2016-11-29 18:48:40 +00:00
. \" Source: MKVToolNix 9.6.0
2009-12-26 21:16:03 +00:00
. \" Language: English
2009-08-10 19:22:09 +00:00
. \"
2016-11-29 18:48:40 +00:00
.TH "MKVINFO" "1" "2016\-11\-29" "MKVToolNix 9\&.6\&.0" "User Commands"
2010-06-05 12:22:07 +00:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
2009-12-26 21:16:03 +00:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-08-10 19:22:09 +00:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-12-26 21:16:03 +00:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
2009-08-10 19:22:09 +00:00
.SH "NAME"
2009-12-26 21:16:03 +00:00
mkvinfo \- Print information about elements in Matroska(TM) files
2009-08-10 19:22:09 +00:00
.SH "SYNOPSIS"
2009-12-26 21:16:03 +00:00
.HP \w '\fBmkvinfo\fR\ 'u
2009-08-10 19:22:09 +00:00
\fB mkvinfo\fR [options] {source\- filename}
.SH "DESCRIPTION"
.PP
This program lists all elements contained in a
Matroska(TM)\& . The output can be limited to a list of tracks in the file including information about the codecs used\& .
.PP
\fB \- g\fR , \fB \- \- gui\fR
.RS 4
Start the
GUI\& . This option is only available if mkvinfo was compiled with
GUI
support\& .
.RE
.PP
\fB \- c\fR , \fB \- \- checksums\fR
.RS 4
Calculates and display the
\fB Adler32\fR
checksum for each frame\& . Useful for debugging only\& .
.RE
.PP
\fB \- s\fR , \fB \- \- summary\fR
.RS 4
Only show a terse summary of what
\fB mkvinfo\fR (1)
finds and not each element\& .
.RE
.PP
2011-01-21 11:14:12 +00:00
\fB \- t\fR , \fB \- \- track\- info\fR
.RS 4
Show statistics for each track in verbose mode\& . Also sets verbosity to 1 if it was at level 0 before\& .
.RE
.PP
2010-05-22 13:27:12 +00:00
\fB \- x\fR , \fB \- \- hexdump\fR
.RS 4
Show the first 16 bytes of each frame as a hex dump\& .
.RE
.PP
\fB \- X\fR , \fB \- \- full\- hexdump\fR
.RS 4
Show all bytes of each frame as a hex dump\& .
.RE
.PP
\fB \- z\fR , \fB \- \- size\fR
.RS 4
Show the size of each element including its header\& .
.RE
.PP
2009-08-10 19:22:09 +00:00
\fB \- \- command\- line\- charset\fR \fI character\- set\fR
.RS 4
2010-06-05 12:22:07 +00:00
Sets the character set to convert strings given on the command line from\& . It defaults to the character set given by system\* (Aqs current locale\& .
2009-08-10 19:22:09 +00:00
.RE
.PP
\fB \- \- output\- charset\fR \fI character\- set\fR
.RS 4
2010-06-05 12:22:07 +00:00
Sets the character set to which strings are converted that are to be output\& . It defaults to the character set given by system\* (Aqs current locale\& .
2009-08-10 19:22:09 +00:00
.RE
.PP
\fB \- r\fR , \fB \- \- redirect\- output\fR \fI file\- name\fR
.RS 4
Writes all messages to the file
\fI file\- name\fR
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
\fB \- \- output\- charset\fR
is honored\& .
.RE
.PP
\fB \- \- ui\- language\fR \fI code\fR
.RS 4
Forces the translations for the language
\fI code\fR
2016-04-27 08:26:53 +00:00
to be used (e\& .g\& . \* (Aqde_DE\* (Aq for the German translations)\& . Entering \* (Aqlist\* (Aq as the
2009-08-10 19:22:09 +00:00
\fI code\fR
2016-04-27 08:26:53 +00:00
will cause the program to output a list of available translations\& .
2009-08-10 19:22:09 +00:00
.RE
.PP
2012-02-25 11:44:18 +00:00
\fB \- \- debug\fR \fI topic\fR
.RS 4
Turn on debugging for a specific feature\& . This option is only useful for developers\& .
.RE
.PP
\fB \- \- engage\fR \fI feature\fR
.RS 4
Turn on experimental features\& . A list of available features can be requested with
\fB mkvinfo \- \- engage list\fR \& . These features are not meant to be used in normal situations\& .
.RE
.PP
2013-12-31 21:00:32 +00:00
\fB \- \- gui\- mode\fR
.RS 4
Turns on GUI mode\& . In this mode specially\- formatted lines may be output that can tell a controlling GUI what\* (Aqs happening\& . These messages follow the format \* (Aq#GUI#message\* (Aq\& . The message may be followed by key/value pairs as in \* (Aq#GUI#message#key1=value1#key2=value2\& ...\* (Aq\& . Neither the messages nor the keys are ever translated and always output in English\& .
.sp
This switch has nothing to do with the
\fB \- \- gui\fR
parameter which causes mkvinfo to display its own GUI\& .
.RE
.PP
2009-08-10 19:22:09 +00:00
\fB \- v\fR , \fB \- \- verbose\fR
.RS 4
Be more verbose\& . See the section about
verbosity levels
for a description which information will be output at which level\& .
.RE
.PP
\fB \- h\fR , \fB \- \- help\fR
.RS 4
Show usage information and exit\& .
.RE
.PP
\fB \- V\fR , \fB \- \- version\fR
.RS 4
Show version information and exit\& .
.RE
.PP
2010-12-23 15:07:34 +00:00
\fB \- \- check\- for\- updates\fR
.RS 4
Checks online for new releases by downloading the URL
2012-09-29 21:35:28 +00:00
\m[blue]\fBhttp://mkvtoolnix\-releases\&.bunkus\&.org/latest\-release\&.xml\fR\m[] \& . Four lines will be output in
2010-12-23 15:07:34 +00:00
key=value
style: the URL from where the information was retrieved (key
version_check_url), the currently running version (key
2010-12-25 22:21:52 +00:00
running_version), the latest release\* (Aqs version (key
available_version) and the download URL (key
download_url)\& .
2010-12-23 15:07:34 +00:00
.sp
Afterwards the program exists with an exit code of 0 if no newer release is available, with 1 if a newer release is available and with 2 if an error occured (e\& .g\& . if the update information could not be retrieved)\& .
.sp
This option is only available if the program was built with support for libcurl\& .
.RE
.PP
2011-11-06 16:58:35 +00:00
\fB @\fR \fI options\- file\fR
2009-08-10 19:22:09 +00:00
.RS 4
Reads additional command line arguments from the file
2010-12-20 19:12:59 +00:00
\fI options\- file\fR \& . Lines whose first non\- whitespace character is a hash mark (\* (Aq#\* (Aq) are treated as comments and ignored\& . White spaces at the start and end of a line will be stripped\& . Each line must contain exactly one option\& .
.sp
Several chars can be escaped, e\& .g\& . if you need to start a non\- comment line with \* (Aq#\* (Aq\& . The rules are described in
the section about escaping text\& .
2009-08-10 19:22:09 +00:00
.sp
2010-06-05 12:22:07 +00:00
The command line \* (Aq\fB mkvinfo \- v \- v input\& .mkv \- \- redirect\- output info\& .txt\fR \* (Aq could be converted into the following option file:
2009-08-10 19:22:09 +00:00
.sp
2009-12-26 21:16:03 +00:00
.if n \{ \
2009-08-10 19:22:09 +00:00
.RS 4
2009-12-26 21:16:03 +00:00
. \}
2009-08-10 19:22:09 +00:00
.nf
# Be more verbose
\- v
\- v
# Parse input\& .mkv
input\& .mkv
# and write the output to info\& .txt
\- \- redirect\- output
info\& .txt
.fi
2009-12-26 21:16:03 +00:00
.if n \{ \
2009-08-10 19:22:09 +00:00
.RE
2009-12-26 21:16:03 +00:00
. \}
2009-08-10 19:22:09 +00:00
.RE
.SH "VERBOSITY LEVELS"
.PP
The
\fB \- v\fR
option can be used to increase
2010-06-05 12:22:07 +00:00
\fB mkvinfo\fR (1)\* (Aqs verbosity level and print more information about the current file\& .
2009-08-10 19:22:09 +00:00
.PP
At level 0
\fB mkvinfo\fR (1)
will print only the track headers it finds and their types\& .
\fB mkvinfo\fR (1)
2010-06-05 12:22:07 +00:00
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\* (Aqre located in front of the track information\& .
2009-08-10 19:22:09 +00:00
.PP
At level 1
\fB mkvinfo\fR (1)
will also print all
Matroska(TM)
elements encountered for the complete file but the seek head entries and the cue entries\& . If the summary mode is enabled then
\fB mkvinfo\fR (1)
will output the frame position as well\& .
.PP
At level 2
\fB mkvinfo\fR (1)
will also print the seek head entries, the cue entries and the file position at which each
Matroska(TM)
element can be found at\& .
.PP
At level 3 and above
\fB mkvinfo\fR (1)
will print some information that is not directly connected to a
Matroska(TM)
2010-06-05 12:22:07 +00:00
element\& . All other elements only print stuff about the elements that were just found\& . Level 3 adds meta information to ease debugging (read: it\* (Aqs intended for developers only)\& . All lines written by level 3 are enclosed in square brackets to make filtering them out easy\& .
2014-01-21 20:34:18 +00:00
.SH "TEXT FILES AND CHARACTER SET CONVERSIONS"
.PP
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
\fB mkvmerge\fR (1)
man page\& .
2009-08-10 19:22:09 +00:00
.SH "EXIT CODES"
.PP
\fB mkvinfo\fR (1)
exits with one of three exit codes:
.sp
.RS 4
2009-12-26 21:16:03 +00:00
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-08-10 19:22:09 +00:00
\fB 0\fR
\- \- This exit codes means that the run has completed successfully\& .
.RE
.sp
.RS 4
2009-12-26 21:16:03 +00:00
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-08-10 19:22:09 +00:00
\fB 1\fR
\- \- In this case
\fB mkvinfo\fR (1)
2010-06-05 12:22:07 +00:00
has output at least one warning, but the run did continue\& . A warning is prefixed with the text \* (AqWarning:\* (Aq\& .
2009-08-10 19:22:09 +00:00
.RE
.sp
.RS 4
2009-12-26 21:16:03 +00:00
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-08-10 19:22:09 +00:00
\fB 2\fR
2010-03-29 11:39:24 +00:00
\- \- This exit code is used after an error occurred\& .
2009-08-10 19:22:09 +00:00
\fB mkvinfo\fR (1)
aborts right after outputting the error message\& . Error messages range from wrong command line arguments over read/write errors to broken files\& .
.RE
2010-12-20 19:12:59 +00:00
.SH "ESCAPING SPECIAL CHARS IN TEXT"
.PP
There are a few places in which special characters in text must or should be escaped\& . The rules for escaping are simple: each character that needs escaping is replaced with a backslash followed by another character\& .
.PP
2011-11-06 16:58:35 +00:00
The rules are: \* (Aq \* (Aq (a space) becomes \* (Aq\e s\* (Aq, \* (Aq"\* (Aq (double quotes) becomes \* (Aq\e 2\* (Aq, \* (Aq:\* (Aq becomes \* (Aq\e c\* (Aq, \* (Aq#\* (Aq becomes \* (Aq\e h\* (Aq and \* (Aq\e \* (Aq (a single backslash) itself becomes \* (Aq\e \e \* (Aq\& .
2012-02-25 11:44:18 +00:00
.SH "ENVIRONMENT VARIABLES"
.PP
\fB mkvinfo\fR (1)
uses the default variables that determine the system\* (Aqs locale (e\& .g\& .
\fI LANG\fR
and the
\fI LC_*\fR
family)\& . Additional variables:
.PP
2015-08-17 20:42:26 +00:00
\fI MKVINFO_DEBUG\fR , \fI MKVTOOLNIX_DEBUG\fR and its short form \fI MTX_DEBUG\fR
2012-02-25 11:44:18 +00:00
.RS 4
The content is treated as if it had been passed via the
\fB \- \- debug\fR
option\& .
.RE
.PP
2015-08-17 20:42:26 +00:00
\fI MKVINFO_ENGAGE\fR , \fI MKVTOOLNIX_ENGAGE\fR and its short form \fI MTX_ENGAGE\fR
2012-02-25 11:44:18 +00:00
.RS 4
The content is treated as if it had been passed via the
\fB \- \- engage\fR
option\& .
.RE
2012-02-25 14:09:02 +00:00
.PP
2015-08-17 20:42:26 +00:00
\fI MKVINFO_OPTIONS\fR , \fI MKVTOOLNIX_OPTIONS\fR and its short form \fI MTX_OPTIONS\fR
2012-02-25 14:09:02 +00:00
.RS 4
The content is split on white space\& . The resulting partial strings are treated as if it had been passed as command line options\& . If you need to pass special characters (e\& .g\& . spaces) then you have to escape them (see
the section about escaping special characters in text)\& .
.RE
2009-08-10 19:22:09 +00:00
.SH "SEE ALSO"
.PP
\fB mkvmerge\fR (1),
\fB mkvextract\fR (1),
2009-08-16 11:26:29 +00:00
\fB mkvpropedit\fR (1),
2015-08-15 17:27:46 +00:00
\fB mkvtoolnix-gui\fR (1)
2009-08-10 19:22:09 +00:00
.SH "WWW"
.PP
The latest version can always be found at
2009-12-26 21:16:03 +00:00
\m[blue]\fBthe MKVToolNix homepage\fR\m[]\&\s-2\u[1] \d \s +2\& .
2009-08-10 19:22:09 +00:00
.SH "AUTHOR"
.PP
\fB Moritz Bunkus\fR <\& moritz@bunkus\& .org\& >
2009-12-26 21:16:03 +00:00
.RS 4
2009-08-10 19:22:09 +00:00
Developer
2009-12-26 21:16:03 +00:00
.RE
2009-08-10 19:22:09 +00:00
.SH "NOTES"
.IP " 1." 4
the MKVToolNix homepage
.RS 4
2015-11-22 10:13:59 +00:00
\% https://mkvtoolnix.download/
2009-08-10 19:22:09 +00:00
.RE