2010-02-09 08:13:22 +00:00
'\" t
. \" Title: mkvextract
. \" Author: Moritz Bunkus <moritz@bunkus.org>
2013-06-27 18:16:17 +00:00
. \" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
2014-10-22 16:36:19 +00:00
. \" Date: 2014-10-22
2014-05-24 18:49:37 +00:00
. \" Manual: User Commands
2014-10-22 16:36:19 +00:00
. \" Source: MKVToolNix 7.3.0
2014-05-24 18:49:37 +00:00
. \" Language: English
2010-02-09 08:13:22 +00:00
. \"
2014-10-22 16:36:19 +00:00
.TH "MKVEXTRACT" "1" "2014\-10\-22" "MKVToolNix 7\&.3\&.0" "User Commands"
2010-02-09 08:13:22 +00:00
. \" -----------------------------------------------------------------
2010-05-26 10:49:55 +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 '
. \" -----------------------------------------------------------------
2010-02-09 08:13:22 +00:00
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
2014-05-24 18:49:37 +00:00
.SH "NAME"
mkvextract \- extract tracks from Matroska(TM) files into other files
.SH "SYNOPSIS"
2010-02-09 08:13:22 +00:00
.HP \w '\fBmkvextract\fR\ 'u
2014-05-24 18:49:37 +00:00
\fB mkvextract\fR {mode} {source\- filename} [options] [extraction\- spec]
.SH "DESCRIPTION"
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
This program extracts specific parts from a
2010-02-09 08:13:22 +00:00
Matroska(TM)
2014-05-24 18:49:37 +00:00
file to other useful formats\& . The first argument,
\fB mode\fR , tells
2010-02-09 08:13:22 +00:00
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
what to extract\& . Currently supported is the extraction of
tracks,
tags,
attachments,
chapters,
CUE sheets
and
timecodes\& . The second argument is the name of the source file\& . It must be a
2010-02-09 08:13:22 +00:00
Matroska(TM)
2014-05-24 18:49:37 +00:00
file\& . All following arguments are options and extraction specifications; both of which depend on the selected mode\& .
.SS "Common options"
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
The following options are available in all modes and only described once in this section\& .
2010-02-09 08:13:22 +00:00
.PP
2010-03-13 10:46:50 +00:00
\fB \- f\fR , \fB \- \- parse\- fully\fR
.RS 4
2014-05-24 18:49:37 +00:00
Sets the parse mode to \* (Aqfull\* (Aq\& . The default mode does not parse the whole file but uses the meta seek elements for locating the required elements of a source file\& . In 99% of all cases this is enough\& . But for files that do not contain meta seek elements or which are damaged the user might have to use this mode\& . A full scan of a file can take a couple of minutes while a fast scan only takes seconds\& .
2010-03-13 10:46:50 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fB \- \- command\- line\- charset\fR \fI character\- set\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +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\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fB \- \- output\- charset\fR \fI character\- set\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +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\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fB \- r\fR , \fB \- \- redirect\- output\fR \fI file\- name\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
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
2010-02-09 08:13:22 +00:00
\fB \- \- output\- charset\fR
2014-05-24 18:49:37 +00:00
is honored\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fB \- \- ui\- language\fR \fI code\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Forces the translations for the language
\fI code\fR
to be used (e\& .g\& . \* (Aqde_DE\* (Aq for the German translations)\& . It is preferable to use the environment variables
2010-02-09 08:13:22 +00:00
\fI LANG\fR ,
\fI LC_MESSAGES\fR
2014-05-24 18:49:37 +00:00
and
2010-02-09 08:13:22 +00:00
\fI LC_ALL\fR
2014-05-24 18:49:37 +00:00
though\& . Entering \* (Aqlist\* (Aq as the
\fI code\fR
will cause
\fB mkvextract\fR (1)
to output a list of available translations\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fB \- \- debug\fR \fI topic\fR
2012-02-25 11:44:18 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Turn on debugging for a specific feature\& . This option is only useful for developers\& .
2012-02-25 11:44:18 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fB \- \- engage\fR \fI feature\fR
2012-02-25 11:44:18 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Turn on experimental features\& . A list of available features can be requested with
\fB mkvextract \- \- engage list\fR \& . These features are not meant to be used in normal situations\& .
2012-02-25 11:44:18 +00:00
.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\& .
.RE
.PP
2010-02-09 08:13:22 +00:00
\fB \- v\fR , \fB \- \- verbose\fR
.RS 4
2014-05-24 18:49:37 +00:00
Be verbose and show all the important
2010-02-09 08:13:22 +00:00
Matroska(TM)
2014-05-24 18:49:37 +00:00
elements as they\* (Aqre read\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
\fB \- h\fR , \fB \- \- help\fR
.RS 4
2014-05-24 18:49:37 +00:00
Show usage information and exit\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
\fB \- V\fR , \fB \- \- version\fR
.RS 4
2014-05-24 18:49:37 +00:00
Show version information and exit\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2010-12-23 15:07:34 +00:00
\fB \- \- check\- for\- updates\fR
.RS 4
2014-05-24 18:49:37 +00:00
Checks online for new releases by downloading the URL
\m[blue]\fBhttp://mkvtoolnix\-releases\&.bunkus\&.org/latest\-release\&.xml\fR\m[] \& . Four lines will be output in
key=value
style: the URL from where the information was retrieved (key
version_check_url), the currently running version (key
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
2014-05-24 18:49:37 +00:00
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)\& .
2010-12-23 15:07:34 +00:00
.sp
2014-05-24 18:49:37 +00:00
This option is only available if the program was built with support for libcurl\& .
2010-12-23 15:07:34 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fB @\fR \fI options\- file\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Reads additional command line arguments from the file
\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\& .
2010-12-20 19:12:59 +00:00
.sp
2014-05-24 18:49:37 +00:00
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\& .
2010-02-09 08:13:22 +00:00
.sp
2014-05-24 18:49:37 +00:00
The command line \* (Aq\fB mkvextract tracks source\& .mkv \- \- raw 1:destination\& .raw\fR \* (Aq could be converted into the following option file:
2010-02-09 08:13:22 +00:00
.sp
.if n \{ \
.RS 4
. \}
.nf
2014-05-24 18:49:37 +00:00
# Extract a track from source\& .mkv
2010-02-09 08:13:22 +00:00
tracks
2014-05-24 18:49:37 +00:00
source\& .mkv
# Output the track as raw data\& .
2010-02-09 08:13:22 +00:00
\- \- raw
2014-05-24 18:49:37 +00:00
1:destination\& .raw
2010-02-09 08:13:22 +00:00
.fi
.if n \{ \
.RE
. \}
.RE
2014-05-24 18:49:37 +00:00
.SS "Track extraction mode"
2010-02-09 08:13:22 +00:00
.PP
2013-10-03 19:21:38 +00:00
Syntax:
\fB mkvextract \fR \fB \fB tracks\fR \fR \fB \fR \fB \fI source\- filename\fR \fR \fB \fR \fB [\fI options\fR ]\fR \fB \fR \fB \fI TID1:dest\- filename1\fR \fR \fB \fR \fB [\fI TID2:dest\- filename2\fR \& .\& .\& .]\fR
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
The following command line options are available for each track in the \* (Aqtracks\* (Aq extraction mode\& . They have to appear in front of the track specification (see below) they should be applied to\& .
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
\fB \- c\fR \fI character\- set\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Sets the character set to convert the next text subtitle track to\& . Only valid if the next track ID targets a text subtitle track\& . It defaults to UTF\- 8\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fB \- \- blockadd\fR \fI level\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Keep only the BlockAdditions up to this level\& . The default is to keep all levels\& . This option only affects certain kinds of codecs like WAVPACK4\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
\fB \- \- cuesheet\fR
.RS 4
2014-05-24 18:49:37 +00:00
Causes
2010-02-09 08:13:22 +00:00
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
to extract a
2010-02-09 08:13:22 +00:00
CUE
2014-05-24 18:49:37 +00:00
sheet from the chapter information and tag data for the following track into a file whose name is the track\* (Aqs output name with \* (Aq\& .cue\* (Aq appended to it\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
\fB \- \- raw\fR
.RS 4
2014-05-24 18:49:37 +00:00
Extracts the raw data into a file without any container data around it\& . Unlike the
2010-02-09 08:13:22 +00:00
\fB \- \- fullraw\fR
2014-05-24 18:49:37 +00:00
flag this flag does not cause the contents of the
2010-02-09 08:13:22 +00:00
CodecPrivate
2014-05-24 18:49:37 +00:00
element to be written to the file\& . This mode works with all
CodecIDs, even the ones that
2010-02-09 08:13:22 +00:00
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
doesn\* (Aqt support otherwise, but the resulting files might not be usable\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
\fB \- \- fullraw\fR
.RS 4
2014-05-24 18:49:37 +00:00
Extracts the raw data into a file without any container data around it\& . The contents of the
2010-02-09 08:13:22 +00:00
CodecPrivate
2014-05-24 18:49:37 +00:00
element will be written to the file first if the track contains such a header element\& . This mode works with all
CodecIDs, even the ones that
2010-02-09 08:13:22 +00:00
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
doesn\* (Aqt support otherwise, but the resulting files might not be usable\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fI TID:outname\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Causes extraction of the track with the ID
2010-02-09 08:13:22 +00:00
\fI TID\fR
2014-05-24 18:49:37 +00:00
into the file
\fI outname\fR
if such a track exists in the source file\& . This option can be given multiple times\& . The track IDs are the same as the ones output by
\fB mkvmerge\fR (1)\* (Aqs
2010-02-09 08:13:22 +00:00
\fB \- \- identify\fR
2014-05-24 18:49:37 +00:00
option\& .
2010-02-09 08:13:22 +00:00
.sp
2014-05-24 18:49:37 +00:00
Each output name should be used only once\& . The exception are RealAudio and RealVideo tracks\& . If you use the same name for different tracks then those tracks will be saved in the same file\& . Example:
2010-02-09 08:13:22 +00:00
.sp
.if n \{ \
.RS 4
. \}
.nf
2014-05-24 18:49:37 +00:00
$ mkvextract tracks input\& .mkv 1:output\- two\- tracks\& .rm 2:output\- two\- tracks\& .rm
2010-02-09 08:13:22 +00:00
.fi
.if n \{ \
.RE
. \}
.RE
2014-05-24 18:49:37 +00:00
.SS "Tags extraction mode"
2010-02-09 08:13:22 +00:00
.PP
2013-10-03 19:21:38 +00:00
Syntax:
\fB mkvextract \fR \fB \fB tags\fR \fR \fB \fR \fB \fI source\- filename\fR \fR \fB \fR \fB [\fI options\fR ]\fR
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
The extracted tags are written to the console unless the output is redirected (see the section about
output redirection
for details)\& .
.SS "Attachments extraction mode"
2010-02-09 08:13:22 +00:00
.PP
2013-10-03 19:21:38 +00:00
Syntax:
\fB mkvextract \fR \fB \fB attachments\fR \fR \fB \fR \fB \fI source\- filename\fR \fR \fB \fR \fB [\fI options\fR ]\fR \fB \fR \fB \fI AID1:outname1\fR \fR \fB \fR \fB [\fI AID2:outname2\fR \& .\& .\& .]\fR
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
\fI AID\fR :\fI outname\fR
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Causes extraction of the attachment with the ID
2010-02-09 08:13:22 +00:00
\fI AID\fR
2014-05-24 18:49:37 +00:00
into the file
\fI outname\fR
if such an attachment exists in the source file\& . If the
\fI outname\fR
is left empty then the name of the attachment inside the source
2010-02-09 08:13:22 +00:00
Matroska(TM)
2014-05-24 18:49:37 +00:00
file is used instead\& . This option can be given multiple times\& . The attachment IDs are the same as the ones output by
\fB mkvmerge\fR (1)\* (Aqs
2010-02-09 08:13:22 +00:00
\fB \- \- identify\fR
2014-05-24 18:49:37 +00:00
option\& .
2010-02-09 08:13:22 +00:00
.RE
2014-05-24 18:49:37 +00:00
.SS "Chapters extraction mode"
2010-02-09 08:13:22 +00:00
.PP
2013-10-03 19:21:38 +00:00
Syntax:
\fB mkvextract \fR \fB \fB chapters\fR \fR \fB \fR \fB \fI source\- filename\fR \fR \fB \fR \fB [\fI options\fR ]\fR
2010-02-09 08:13:22 +00:00
.PP
\fB \- s\fR , \fB \- \- simple\fR
.RS 4
2014-05-24 18:49:37 +00:00
Exports the chapter information in the simple format used in the
2010-02-09 08:13:22 +00:00
OGM
2014-05-24 18:49:37 +00:00
tools (CHAPTER01=\& .\& .\& ., CHAPTER01NAME=\& .\& .\& .)\& . In this mode some information has to be discarded\& . Default is to output the chapters in
2010-02-09 08:13:22 +00:00
XML
2014-05-24 18:49:37 +00:00
format\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
The extracted chapters are written to the console unless the output is redirected (see the section about
output redirection
for details)\& .
.SS "Cue sheet extraction mode"
2010-02-09 08:13:22 +00:00
.PP
2013-10-03 19:21:38 +00:00
Syntax:
\fB mkvextract \fR \fB \fB cuesheet\fR \fR \fB \fR \fB \fI source\- filename\fR \fR \fB \fR \fB [\fI options\fR ]\fR
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
The extracted cue sheet is written to the console unless the output is redirected (see the section about
output redirection
for details)\& .
.SS "Timecode extraction mode"
2010-02-09 08:13:22 +00:00
.PP
2013-10-03 19:21:38 +00:00
Syntax:
\fB mkvextract \fR \fB \fB timecodes_v2\fR \fR \fB \fR \fB \fI source\- filename\fR \fR \fB \fR \fB [\fI options\fR ]\fR \fB \fR \fB \fI TID1:dest\- filename1\fR \fR \fB \fR \fB [\fI TID2:dest\- filename2\fR \& .\& .\& .]\fR
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
The extracted timecodes are written to the console unless the output is redirected (see the section about
output redirection
for details)\& .
2010-12-21 10:31:43 +00:00
.PP
2014-05-24 18:49:37 +00:00
\fI TID:outname\fR
2010-12-21 10:31:43 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Causes extraction of the timecodes for the track with the ID
2010-12-21 10:31:43 +00:00
\fI TID\fR
2014-05-24 18:49:37 +00:00
into the file
\fI outname\fR
if such a track exists in the source file\& . This option can be given multiple times\& . The track IDs are the same as the ones output by
\fB mkvmerge\fR (1)\* (Aqs
2010-12-21 10:31:43 +00:00
\fB \- \- identify\fR
2014-05-24 18:49:37 +00:00
option\& .
2010-12-21 10:31:43 +00:00
.sp
2014-05-24 18:49:37 +00:00
Example:
2010-12-21 10:31:43 +00:00
.sp
.if n \{ \
.RS 4
. \}
.nf
2014-05-24 18:49:37 +00:00
$ mkvextract timecodes_v2 input\& .mkv 1:tc\- track1\& .txt 2:tc\- track2\& .txt
2010-12-21 10:31:43 +00:00
.fi
.if n \{ \
.RE
. \}
.RE
2014-05-24 18:49:37 +00:00
.SH "OUTPUT REDIRECTION"
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
Several extraction modes cause
2010-02-09 08:13:22 +00:00
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
to write the extracted data to the console\& . There are generally two ways of writing this data into a file: one provided by the shell and one provided by
2010-02-09 08:13:22 +00:00
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
itself\& .
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
The shell\* (Aqs builtin redirection mechanism is used by appending \* (Aq> output\- filename\& .ext\* (Aq to the command line\& . Example:
2010-02-09 08:13:22 +00:00
.sp
.if n \{ \
.RS 4
. \}
.nf
2014-05-24 18:49:37 +00:00
$ mkvextract tags source\& .mkv > tags\& .xml
2010-02-09 08:13:22 +00:00
.fi
.if n \{ \
.RE
. \}
.PP
2014-05-24 18:49:37 +00:00
\fB mkvextract\fR (1)\* (Aqs own redirection is invoked with the
2010-02-09 08:13:22 +00:00
\fB \- \- redirect\- output\fR
2014-05-24 18:49:37 +00:00
option\& . Example:
2010-02-09 08:13:22 +00:00
.sp
.if n \{ \
.RS 4
. \}
.nf
2014-05-24 18:49:37 +00:00
$ mkvextract tags source\& .mkv \- \- redirect\- output tags\& .xml
2010-02-09 08:13:22 +00:00
.fi
.if n \{ \
.RE
. \}
.if n \{ \
.sp
. \}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
2014-05-24 18:49:37 +00:00
\fB Note\fR
2010-02-09 08:13:22 +00:00
.ps -1
.br
.PP
2014-05-24 18:49:37 +00:00
On Windows you should probably use the
2010-02-09 08:13:22 +00:00
\fB \- \- redirect\- output\fR
2014-05-24 18:49:37 +00:00
option because
2010-02-09 08:13:22 +00:00
\fB cmd\& .exe\fR
2014-05-24 18:49:37 +00:00
sometimes interpretes special characters before they\* (Aqre written into the output file resulting in broken output\& .
2010-02-09 08:13:22 +00:00
.sp .5v
.RE
2014-05-24 18:49:37 +00:00
.SH "TEXT FILES AND CHARACTER SET CONVERSIONS"
2014-01-21 20:34:18 +00:00
.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\& .
2014-05-24 18:49:37 +00:00
.SH "OUTPUT FILE FORMATS"
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
The decision about the output format is based on the track type, not on the extension used for the output file name\& . The following track types are supported at the moment:
2010-02-09 08:13:22 +00:00
.PP
V_MPEG4/ISO/AVC
.RS 4
H\& .264
/
AVC
2014-05-24 18:49:37 +00:00
video tracks are written to
2010-02-09 08:13:22 +00:00
H\& .264
2014-05-24 18:49:37 +00:00
elementary streams which can be processed further with e\& .g\& .
2010-02-09 08:13:22 +00:00
MP4Box(TM)
2014-05-24 18:49:37 +00:00
from the
GPAC(TM)
package\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
V_MS/VFW/FOURCC
.RS 4
2014-05-24 18:49:37 +00:00
Fixed
2010-02-09 08:13:22 +00:00
FPS
2014-05-24 18:49:37 +00:00
video tracks with this
CodecID
are written to
2010-02-09 08:13:22 +00:00
AVI
2014-05-24 18:49:37 +00:00
files\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
V_REAL/*
.RS 4
RealVideo(TM)
2014-05-24 18:49:37 +00:00
tracks are written to
2010-02-09 08:13:22 +00:00
RealMedia(TM)
2014-05-24 18:49:37 +00:00
files\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2013-01-14 20:29:57 +00:00
V_THEORA
.RS 4
Theora(TM)
2014-05-24 18:49:37 +00:00
streams will be written within an
2013-01-14 20:29:57 +00:00
Ogg(TM)
2014-05-24 18:49:37 +00:00
container
2013-01-14 20:29:57 +00:00
.RE
.PP
2013-10-26 13:42:16 +00:00
V_VP8, V_VP9
2013-01-14 20:29:57 +00:00
.RS 4
VP8
2013-10-26 13:42:16 +00:00
/
VP9
tracks are written to
2013-01-14 20:29:57 +00:00
IVF
2013-10-26 13:42:16 +00:00
files\& .
2013-01-14 20:29:57 +00:00
.RE
.PP
A_MPEG/L2
.RS 4
2014-05-24 18:49:37 +00:00
MPEG\- 1 Audio Layer II streams will be extracted to raw
2013-01-14 20:29:57 +00:00
MP2
2014-05-24 18:49:37 +00:00
files\& .
2013-01-14 20:29:57 +00:00
.RE
.PP
2010-02-09 08:13:22 +00:00
A_MPEG/L3, A_AC3
.RS 4
2014-05-24 18:49:37 +00:00
These will be extracted to raw
2010-02-09 08:13:22 +00:00
MP3
2014-05-24 18:49:37 +00:00
and
2010-02-09 08:13:22 +00:00
AC3
2014-05-24 18:49:37 +00:00
files\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
A_PCM/INT/LIT
.RS 4
2014-05-24 18:49:37 +00:00
Raw
2010-02-09 08:13:22 +00:00
PCM
2014-05-24 18:49:37 +00:00
data will be written to a
2010-02-09 08:13:22 +00:00
WAV
2014-05-24 18:49:37 +00:00
file\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
A_AAC/MPEG2/*, A_AAC/MPEG4/*, A_AAC
.RS 4
2014-05-24 18:49:37 +00:00
All
2010-02-09 08:13:22 +00:00
AAC
2014-05-24 18:49:37 +00:00
files will be written into an
2010-02-09 08:13:22 +00:00
AAC
2014-05-24 18:49:37 +00:00
file with
2010-02-09 08:13:22 +00:00
ADTS
2014-05-24 18:49:37 +00:00
headers before each packet\& . The
ADTS
headers will not contain the deprecated emphasis field\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
A_VORBIS
.RS 4
2014-05-24 18:49:37 +00:00
Vorbis audio will be written into an
2010-02-09 08:13:22 +00:00
OggVorbis(TM)
2014-05-24 18:49:37 +00:00
file\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
A_REAL/*
.RS 4
RealAudio(TM)
2014-05-24 18:49:37 +00:00
tracks are written to
2010-02-09 08:13:22 +00:00
RealMedia(TM)
2014-05-24 18:49:37 +00:00
files\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
A_TTA1
.RS 4
TrueAudio(TM)
2014-05-24 18:49:37 +00:00
tracks are written to
2010-02-09 08:13:22 +00:00
TTA
2014-05-24 18:49:37 +00:00
files\& . Please note that due to
Matroska(TM)\* (Aqs limited timecode precision the extracted file\* (Aqs header will be different regarding two fields:
\fI data_length\fR
(the total number of samples in the file) and the
CRC\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2013-01-14 20:29:57 +00:00
A_ALAC
.RS 4
ALAC
2014-05-24 18:49:37 +00:00
tracks are written to
2013-01-14 20:29:57 +00:00
CAF
2014-05-24 18:49:37 +00:00
files\& .
2013-01-14 20:29:57 +00:00
.RE
.PP
A_FLAC
.RS 4
FLAC
2014-05-24 18:49:37 +00:00
tracks are written to raw
2013-01-14 20:29:57 +00:00
FLAC
2014-05-24 18:49:37 +00:00
files\& .
2013-01-14 20:29:57 +00:00
.RE
.PP
A_WAVPACK4
.RS 4
WavPack(TM)
2014-05-24 18:49:37 +00:00
tracks are written to
2013-01-14 20:29:57 +00:00
WV
2014-05-24 18:49:37 +00:00
files\& .
2013-01-14 20:29:57 +00:00
.RE
.PP
2013-10-02 17:41:01 +00:00
A_OPUS
.RS 4
Opus(TM)
tracks are written to
OggOpus(TM)
files\& .
.RE
.PP
2010-02-09 08:13:22 +00:00
S_TEXT/UTF8
.RS 4
2014-05-24 18:49:37 +00:00
Simple text subtitles will be written as
2010-02-09 08:13:22 +00:00
SRT
2014-05-24 18:49:37 +00:00
files\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
S_TEXT/SSA, S_TEXT/ASS
.RS 4
SSA
2014-05-24 18:49:37 +00:00
and
2010-02-09 08:13:22 +00:00
ASS
2014-05-24 18:49:37 +00:00
text subtitles will be written as
2010-02-09 08:13:22 +00:00
SSA/ASS
2014-05-24 18:49:37 +00:00
files respectively\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
S_KATE
.RS 4
Kate(TM)
2014-05-24 18:49:37 +00:00
streams will be written within an
2010-02-09 08:13:22 +00:00
Ogg(TM)
2014-05-24 18:49:37 +00:00
container\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2013-01-14 20:29:57 +00:00
S_VOBSUB
.RS 4
VobSub(TM)
2014-05-24 18:49:37 +00:00
subtitles will be written as
2013-01-14 20:29:57 +00:00
SUB
2014-05-24 18:49:37 +00:00
files along with the respective index files, as
IDX
files\& .
2013-01-14 20:29:57 +00:00
.RE
.PP
S_TEXT/USF
.RS 4
USF
2014-05-24 18:49:37 +00:00
text subtitles will be written as
2013-01-14 20:29:57 +00:00
USF
2014-05-24 18:49:37 +00:00
files\& .
2013-01-14 20:29:57 +00:00
.RE
.PP
S_HDMV/PGS
.RS 4
PGS
2014-05-24 18:49:37 +00:00
subtitles will be written as
2013-01-14 20:29:57 +00:00
SUP
2014-05-24 18:49:37 +00:00
files\& .
2013-01-14 20:29:57 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
Tags
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Tags are converted to a
2010-02-09 08:13:22 +00:00
XML
2014-05-24 18:49:37 +00:00
format\& . This format is the same that
2010-02-09 08:13:22 +00:00
\fB mkvmerge\fR (1)
2014-05-24 18:49:37 +00:00
supports for reading tags\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
Attachments
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Attachments are written to they output file as they are\& . No conversion whatsoever is done\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
Chapters
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Chapters are converted to a
2010-02-09 08:13:22 +00:00
XML
2014-05-24 18:49:37 +00:00
format\& . This format is the same that
2010-02-09 08:13:22 +00:00
\fB mkvmerge\fR (1)
2014-05-24 18:49:37 +00:00
supports for reading chapters\& . Alternatively a stripped\- down version can be output in the simple
2010-02-09 08:13:22 +00:00
OGM
2014-05-24 18:49:37 +00:00
style format\& .
2010-02-09 08:13:22 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
Timecodes
2010-02-09 08:13:22 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
Timecodes are first sorted and then output as a timecode v2 format compliant file ready to be fed to
\fB mkvmerge\fR (1)\& . The extraction to other formats (v1, v3 and v4) is not supported\& .
2010-02-09 08:13:22 +00:00
.RE
2014-05-24 18:49:37 +00:00
.SH "EXIT CODES"
2010-02-09 08:13:22 +00:00
.PP
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
exits with one of three exit codes:
2010-02-09 08:13:22 +00:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 0\fR
2014-05-24 18:49:37 +00:00
\- \- This exit codes means that extraction has completed successfully\& .
2010-02-09 08:13:22 +00:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 1\fR
2014-05-24 18:49:37 +00:00
\- \- In this case
2010-02-09 08:13:22 +00:00
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
has output at least one warning, but extraction did continue\& . A warning is prefixed with the text \* (AqWarning:\* (Aq\& . Depending on the issues involved the resulting files might be ok or not\& . The user is urged to check both the warning and the resulting files\& .
2010-02-09 08:13:22 +00:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 2\fR
2014-05-24 18:49:37 +00:00
\- \- This exit code is used after an error occurred\& .
2010-02-09 08:13:22 +00:00
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
aborts right after outputting the error message\& . Error messages range from wrong command line arguments over read/write errors to broken files\& .
2010-02-09 08:13:22 +00:00
.RE
2014-05-24 18:49:37 +00:00
.SH "ESCAPING SPECIAL CHARS IN TEXT"
2010-12-20 19:12:59 +00:00
.PP
2014-05-24 18:49:37 +00:00
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\& .
2010-12-20 19:12:59 +00:00
.PP
2014-05-24 18:49:37 +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\& .
.SH "ENVIRONMENT VARIABLES"
2012-02-25 11:44:18 +00:00
.PP
\fB mkvextract\fR (1)
2014-05-24 18:49:37 +00:00
uses the default variables that determine the system\* (Aqs locale (e\& .g\& .
2012-02-25 11:44:18 +00:00
\fI LANG\fR
2014-05-24 18:49:37 +00:00
and the
2012-02-25 11:44:18 +00:00
\fI LC_*\fR
2014-05-24 18:49:37 +00:00
family)\& . Additional variables:
2012-02-25 11:44:18 +00:00
.PP
2014-05-24 18:49:37 +00:00
\fI MKVTOOLNIX_DEBUG\fR and its short form \fI MTX_DEBUG\fR
2012-02-25 11:44:18 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
The content is treated as if it had been passed via the
2012-02-25 11:44:18 +00:00
\fB \- \- debug\fR
2014-05-24 18:49:37 +00:00
option\& .
2012-02-25 11:44:18 +00:00
.RE
.PP
2014-05-24 18:49:37 +00:00
\fI MKVTOOLNIX_ENGAGE\fR and its short form \fI MTX_ENGAGE\fR
2012-02-25 11:44:18 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
The content is treated as if it had been passed via the
2012-02-25 11:44:18 +00:00
\fB \- \- engage\fR
2014-05-24 18:49:37 +00:00
option\& .
2012-02-25 11:44:18 +00:00
.RE
2012-02-25 14:09:02 +00:00
.PP
2014-05-24 18:49:37 +00:00
\fI MKVTOOLNIX_OPTIONS\fR and its short form \fI MTX_OPTIONS\fR
2012-02-25 14:09:02 +00:00
.RS 4
2014-05-24 18:49:37 +00:00
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)\& .
2012-02-25 14:09:02 +00:00
.RE
2014-05-24 18:49:37 +00:00
.SH "SEE ALSO"
2010-02-09 08:13:22 +00:00
.PP
\fB mkvmerge\fR (1),
\fB mkvinfo\fR (1),
\fB mkvpropedit\fR (1),
\fB mmg\fR (1)
2014-05-24 18:49:37 +00:00
.SH "WWW"
2010-02-09 08:13:22 +00:00
.PP
2014-05-24 18:49:37 +00:00
The latest version can always be found at
\m[blue]\fBthe MKVToolNix homepage\fR\m[]\&\s-2\u[1] \d \s +2\& .
.SH "AUTHOR"
2010-02-09 08:13:22 +00:00
.PP
\fB Moritz Bunkus\fR <\& moritz@bunkus\& .org\& >
.RS 4
2014-05-24 18:49:37 +00:00
Developer
2010-02-09 08:13:22 +00:00
.RE
2014-05-24 18:49:37 +00:00
.SH "NOTES"
2010-02-09 08:13:22 +00:00
.IP " 1." 4
2014-05-24 18:49:37 +00:00
the MKVToolNix homepage
2010-02-09 08:13:22 +00:00
.RS 4
\% http://www.bunkus.org/videotools/mkvtoolnix/
.RE