MKVPROPEDIT(1) MKVPROPEDIT(1) mkvpropedit - MUXMatroska(TM) mkvpropedit [options] {source-filename} {actions} Matroska(TM)()('') : -l, --list-property-names ()source-filename -p, --parse-mode mode modefastfullfast99%fullfullfast Actions that deal with track and segment info properties: -e, --edit selector addsetdeleteMatroska(TM)() mkvpropedit(1) -a, --add name=value namevalue -s, --set name=value namevalue -d, --delete name name Actions that deal with tags and chapters: -t, --tags selector:filename mkvpropedit(1)mkvmerge(1)XML allglobaltrackallmkvpropedit(1)global trackmkvpropedit(1)filenameedit selectors(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, --chapters filename mkvpropedit(1)mkvmerge(1)XML Actions for handling attachments: --add-attachment filename 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-attachment selector: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-attachment selector 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-attachment selector 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-name name Sets the name to use for the following --add-attachment or --replace-attachment operation. --attachment-mime-type mime-type Sets the MIME type to use for the following --add-attachment or --replace-attachment operation. --attachment-description description 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'. : --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-ietf mode 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: o 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. o When editing chapters all language elements of all chapter elements are affected as existing chapters are always fully replaced. o 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-charset --output-charset -r, --redirect-output file-name--output-charset --ui-language de_DElist --abort-on-warnings 1 --debug --engage mkvpropedit --engage list --gui-mode GUIGUI '#GUI#' '#GUI##1=1#2=2...' -v, --verbose Matroska(TM) -h, --help -V, --version @.json mkvmerge(1) --editaddsetdeleteMatroska(TM)()--edit mkvpropedit(1) 3'info''segment_info''segmentinfo'UID 'track:''' track:n nnmkvmerge(1)--identify 1 track:tn tnnt41:'a''b'tnnt'a''b''s''v'mkvmerge(1)--identify 1 track:=uid '=' uiduidUIDUIDmkvinfo(1) track:@number '@' numbernumbermkvinfo(1) --replace-attachment--delete-attachment 1. mkvmerge(1) 2. =mkvmerge(1) 3. name:--replace-attachment\c 4. MIMEmime-type:MIME--replace-attachmentMIME\c LANGUAGE HANDLING mkvpropedit(1) mostly tries to do the right thing by default. Therefore changes to the language property will cause mkvpropedit(1) to apply the same change to both the new "LanguageIETF" element as well as the old "Language" element similar to how mkvmerge(1) applies the language to both elements. For example, when using mkvpropedit movie.mkv --edit track:2 --set language=zh-TW the "LanguageIETF" element will be set to zh-TW and the old "Language" element to chi. Additionally there's a new track header property named language-ietf that can be set or removed. Changes to this property only apply to the new "LanguageIETF" track header element. A caveat is that the old "Language" track header element is a mandatory element in Matroska -- meaning even if it isn't present in the file it still has an implied value. When the user only sets the language-ietf property but not the language property, mkvpropedit(1) will therefore add the old "Language" element in certain cases & set it to und (meaning "undetermined") as the user didn't specify a value for it. When reading XML chapter or tag files mkvpropedit(1) works like mkvmerge(1) does. The creation of the new elements can be disabled completely with the command-line option `--disable-language-ietf` which operates on all three new elements. You can chose the normalization method applied to extended language sub-tags with the parameter --normalize-language-ietf. 'movie.mkv' : --edit--edit $ mkvpropedit movie.mkv --edit info --set "title=The movie" --edit track:a1 --set language=fre --edit track:a2 --set language=ita : mkvpropedit(1)mkvmerge(1)10 $ mkvpropedit movie.mkv --edit track:s1 --set flag-default=0 --edit track:s2 --set flag-default=1 2: $ mkvpropedit movie.mkv --tags track:s2:new-subtitle-tags.xml : $ mkvpropedit movie.mkv --tags all: : $ mkvpropedit movie.mkv --chapters new-chapters.xml : $ mkvpropedit movie.mkv --chapters '' Arial.ttf $ mkvpropedit movie.mkv --add-attachment Arial.ttf 89719823.ttfArial: $ mkvpropedit movie.mkv --attachment-name Arial.ttf --attachment-description 'The Arial font as a TrueType font' --attachment-mime-type application/x-truetype-font --add-attachment 89719823.ttf Comic.ttf (Arial.ttf) : $ mkvpropedit movie.mkv --attachment-name Arial.ttf --attachment-description 'The Arial font as a TrueType font' --replace-attachment name:Comic.ttf:Arial.ttf 2 $ mkvpropedit movie.mkv --delete-attachment 2 MIME: $ mkvpropedit movie.mkv --delete-attachment mime-type:application/x-truetype-font mkvpropedit(1)3 o 0 -- o 1 -- 'Warning:' o 2 -- mkvpropedit(1)/ MKVToolNixmkvmerge(1) mkvpropedit(1)LANGLC_*: MKVPROPEDIT_DEBUG, MKVTOOLNIX_DEBUGMTX_DEBUG --debug MKVPROPEDIT_ENGAGE, MKVTOOLNIX_ENGAGEMTX_ENGAGE --engage mkvmerge(1)mkvinfo(1)mkvextract(1)mkvtoolnix-gui(1) MKVToolNix[1] Bunkus Moritz[FAMILY Given] 1. MKVToolNix https://mkvtoolnix.download/ MKVToolNix 83.0 2024-03-10 MKVPROPEDIT(1)