This program analyses an existing Matroska file and modifies some of its properties. Then it writes those
modifications to the existing file. Among the properties that can be changed are the segment information
elements (e.g. the title) and the track headers (e.g. the language code, 'default track' flag or the
name).
Options:
-l, --list-property-names
Lists all known and editable property names, their type (string, integer, boolean etc) and a short
description. The program exits afterwards. Therefore the source-filename parameter does not have to
be supplied.
-p, --parse-modemode
Sets the parse mode. The parameter 'mode' can either be 'fast' (which is also the default) or 'full'.
The 'fast' 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 set the 'full' parse mode. A
full scan of a file can take a couple of minutes while a fast scan only takes seconds.
Actions that deal with track and segment info properties:
-e, --editselector
Sets the Matroska file section (segment information or a certain track's headers) that all following
add, set and delete actions operate on. This option can be used multiple times in order to make
modifications to more than one element.
By default mkvpropedit(1) will edit the segment information section.
See the section about edit selectors for a full description of the syntax.
-a, --addname=value
Adds a property name with the value value. The property will be added even if such a property exists
already. Note that most properties are unique and cannot occur more than once.
-s, --setname=value
Sets all occurrences of the property name to the value value. If no such property exists then it will
be added.
-d, --deletename
Deletes all occurrences of the property name. Note that some properties are required and cannot be
deleted.
Actions that deal with tags and chapters:
-t, --tagsselector:filename
Add or replace tags in the file with the ones from filename or remove them if filename is empty.
mkvpropedit(1) reads the same XML tag format that mkvmerge(1) reads as well.
The selector must be one of the words all, global or track. For allmkvpropedit(1) will replace or
remove all tags in a file. With global only global tags will be replaced or removed.
With trackmkvpropedit(1) will replace tags for a specific track. Additionally the tags read from
filename will be assigned to the same track. The track is specified in the same way edit selectors
are specified (see below), e.g. --tags track:a1:new-audio-tags.xml.
--add-track-statistics-tags
Calculates statistics for all tracks in a file and adds new statistics tags for them. If the file
already contains such tags then they'll be updated.
--delete-track-statistics-tags
Deletes all existing track statistics tags from a file. If the file doesn't contain track statistics
tags then it won't be modified.
-c, --chaptersfilename
Add or replace chapters in the file with the ones from filename or remove them if filename is empty.
mkvpropedit(1) reads the same XML and simple chapter formats that mkvmerge(1) reads as well.
Actions for handling attachments:
--add-attachmentfilename
Adds a new attachment from filename.
If the option --attachment-name has been used prior to this option then its value is used as the new
attachment's name. Otherwise it is derived from filename.
If the option --attachment-mime-type has been used prior to this option then its value is used as the
new attachment's MIME type. Otherwise it is auto-detected from the content of filename.
If the option --attachment-description has been used prior to this option then its value is used as
the new attachment's description. Otherwise no description will be set.
If the option --attachment-uid has been used prior to this option then its value is used as the new
attachment's UID. Otherwise a random UID will be generated automatically.
--replace-attachmentselector:filename
Replaces one or more attachments that match selector with the file filename. If more than one
existing attachment matches selector then all of their contents will be replaced by the content of
filename.
The selector can have one of four forms. They're explained below in the section attachment selectors.
If the option --attachment-name has been used prior to this option then its value is set as the new
name for each modified attachment. Otherwise the names aren't changed.
If the option --attachment-mime-type has been used prior to this option then its value is set as the
new MIME type for each modified attachment. Otherwise the MIME types aren't changed.
If the option --attachment-description has been used prior to this option then its value is set as
the new description for each modified attachment. Otherwise the descriptions aren't changed.
If the option --attachment-uid has been used prior to this option then its value is set as the new
UID for each modified attachment. Otherwise the UIDs aren't changed.
--update-attachmentselector
Sets the properties of one or more attachments that match selector. If more than one existing
attachment matches selector then all of their properties will be updated.
The selector can have one of four forms. They're explained below in the section attachment selectors.
If the option --attachment-name has been used prior to this option then its value is set as the new
name for each modified attachment. Otherwise the names aren't changed.
If the option --attachment-mime-type has been used prior to this option then its value is set as the
new MIME type for each modified attachment. Otherwise the MIME types aren't changed.
If the option --attachment-description has been used prior to this option then its value is set as
the new description for each modified attachment. Otherwise the descriptions aren't changed.
If the option --attachment-uid has been used prior to this option then its value is set as the new
UID for each modified attachment. Otherwise the UIDs aren't changed.
--delete-attachmentselector
Deletes one or more attachments that match selector.
The selector can have one of four forms. They're explained below in the section attachment selectors.
Options for attachment actions:
--attachment-namename
Sets the name to use for the following --add-attachment or --replace-attachment operation.
--attachment-mime-typemime-type
Sets the MIME type to use for the following --add-attachment or --replace-attachment operation.
--attachment-descriptiondescription
Sets the description to use for the following --add-attachment or --replace-attachment operation.
--enable-legacy-font-mime-types
Enables the use of legacy MIME types for certain types of font attachments. For example,
'application/x-truetype-font' will be used for TrueType fonts instead of 'fonts/ttf'.
This affects both adding new attachments and replacing existing attachments, but only if the new MIME
type isn't specified. Other existing attachments aren't changed.
The affected MIME types are 'font/sfnt', 'font/ttf' and 'font/collection' which are all mapped to
'application/x-truetype-fonts' and 'font/otf' which is mapped to 'application/vnd.ms-opentype'.
Other options:
--disable-language-ietf
Normally when the user requests changes to the 'language' track header property, mkvpropedit(1) will
apply the same change to the new LanguageIETF track header element in addition to the legacy Language
element. If this option is used, the change is only applied to the legacy Language element.
This option does not affect changes requested via the 'language-ietf' track header property.
--normalize-language-ietfmode
Enables normalizing all IETF BCP 47 language tags to either their canonical form with mode
'canonical', to their extended language subtags form with mode 'extlang' or turns it off with mode
'off'. By default normalization to the canonical form is applied.
In the canonical form all subtags for which preferred values exist are replaced by those preferred
values. This converts e.g. 'zh-yue-jyutping' to 'yue-jyutping' or 'fr-FX' to 'fr-FR'.
For the extended language subtags form the canonical form is built first. Afterwards all primary
languages for which an extended language subtag exists are replaced by that extended language subtag
and its prefix. This converts e.g. 'yue-jyutping' back to 'zh-yue-jyutping' but has no effect on
'fr-FR' as 'fr' is not an extended language subtag.
This normalization is only applied to elements that are actually changed:
• When editing track headers only those track language elements that are set via edit
specifications are affected. Languages of tracks that aren't edited aren't changed. Editing a
track but setting only properties other than the language won't affect the language either.
• When editing chapters all language elements of all chapter elements are affected as existing
chapters are always fully replaced.
• When editing tags only the language elements of the tags that are actually replaced are affected.
For example, when you replace global tags then existing track tags aren't affected.
The best way to normalize all existing language tags in a file is to remux it with mkvmerge(1) and
set its '--normalize-language-ietf' option to the desired mode.
--command-line-charsetcharacter-set
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.
--output-charsetcharacter-set
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.
-r, --redirect-outputfile-name
Writes all messages to the file file-name 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 --output-charset is
honored.
--ui-languagecode
Forces the translations for the language code to be used (e.g. 'de_DE' for the German translations).
Entering 'list' as the code will cause the program to output a list of available translations.
--abort-on-warnings
Tells the program to abort after the first warning is emitted. The program's exit code will be 1.
--debugtopic
Turn on debugging for a specific feature. This option is only useful for developers.
--engagefeature
Turn on experimental features. A list of available features can be requested with mkvpropedit--engagelist. These features are not meant to be used in normal situations.
--gui-mode
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 '#GUI#message'. The message may be followed by
key/value pairs as in '#GUI#message#key1=value1#key2=value2...'. Neither the messages nor the keys
are ever translated and always output in English.
-v, --verbose
Be verbose and show all the important Matroska elements as they're read.
-h, --help
Show usage information and exit.
-V, --version
Show version information and exit.
@options-file.json
Reads additional command line arguments from the file options-file. For a full explanation on the
supported formats for such files see the section called "Option files" in the mkvmerge(1) man page.