mkvpropedit(1) mkvpropedit - Matroska(TM) mkvpropedit [options] {source-filename} {actions} Matroska(TM) . . , , (, ) (, , << >> ). : -l, --list-property-names , (, , ) . . source-filename . -p, --parse-mode mode . '' '' ( ) ''. '' , - . 99% . , , '' . , -- . , : -e, --edit selector Matroska(TM) ( ), add, set delete. , . mkvpropedit(1) . . -a, --add name=value name value. , . , . -s, --set name=value name value. , . -d, --delete name name. , ' . , : -t, --tags selector:filename filename , filename . mkvpropedit(1) XML, mkvmerge(1). selector all, global track. all mkvpropedit(1) . global . mkvpropedit(1) . , , filename, . , (. ), . --tags track:a1:new-audio-tags.xml. --add-track-statistics-tags . , . --delete-track-statistics-tags . , . -c, --chapters filename filename , filename . mkvpropedit(1) XML , mkvmerge(1). : --add-attachment filename filename. --attachment-name , ' . filename. --attachment-mime-type , MIME . filename. --attachment-description , . . --attachment-uid , UID . UID . --replace-attachment selector:filename , selector filename. selector, filename. selector . . --attachment-name , ' . . --attachment-mime-type , MIME . MIME . --attachment-description , . . --attachment-uid , UID . UID . --update-attachment selector , selector. selector, . selector . . --attachment-name , ' . . --attachment-mime-type , MIME . MIME . --attachment-description , . . --attachment-uid , UID . UID . --delete-attachment selector , . selector . . : --attachment-name name --add-attachment --replace-attachment. --attachment-mime-type mime-type MIME --add-attachment --replace-attachment . --attachment-description description --add-attachment --replace-attachment. --enable-legacy-font-mime-types MIME . , 'application/x-truetype-font' TrueType 'fonts/ttf'. , , MIME . . MIME, , 'font/sfnt', 'font/ttf' 'font/collection', 'application/x-truetype-fonts' 'font/otf', 'application/vnd .ms-opentype'. : --disable-language-ietf , 'language', mkvpropedit(1) LanguageIETF Language. , Language. , 'language-ietf' . --normalize-language-ietf mode IETF BCP 47 'canonical', 'extlang' 'off'. . , , . , , 'zh-yue-jyutping' 'yue-jyutping' 'fr-FX' 'fr-FR'. . , , . , , 'yue-jyutping' 'zh-yue-jyutping', 'fr-FR', 'fr' . , : o , . , , . , , , . o , . o , . , . - mkvmerge(1) '--normalize-language-ietf' . --command-line-charset character-set . . --output-charset character-set . . -r, --redirect-output file-name file-name, . , , : . --output-charset . --ui-language code code (, 'de_DE' ). list' code . --abort-on-warnings . 1. --debug topic . . --engage feature . mkvpropedit --engage list. . --gui-mode . , , . '#GUI#message'. /, '#GUI#message#key1=value1#key2=value2...'. , . -v, --verbose Matroska(TM). -h, --help . -V, --version . @options-file.json options-file. . " " mkvmerge(1). --edit Matroska(TM) ( ), add, set delete. , --edit. . mkvpropedit(1) . : 'info', 'segment_info' 'segmentinfo'. , UID . . 'track:'. , , ' ' . track:n n , n- . , --identify mkvmerge(1). 1. track:tn t, n, n- . t : 'a' , 'b' , 's' 'v' . , --identify mkvmerge(1). 1. track:=uid '=', uid, , UID uid. UID mkvinfo(1). track:@number '@', number, , number. mkvinfo(1). , . ' , . : --replace-attachment --delete-attachment. : 1. . -- , , mkvmerge(1). 2. UID ( ). =, , , mkvmerge(1). 3. . name:, ' . --replace-attachment, \c. 4. MIME. mime-type:, MIME- . --replace-attachment, MIME \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), << >> <<0>>, <<1>>. $ mkvpropedit movie.mkv --edit track:s1 --set flag-default=0 --edit track:s2 --set flag-default=1 : $ 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.ttf) , Arial: $ 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 , : $ mkvpropedit movie.mkv --delete-attachment 2 MIME: $ mkvpropedit movie.mkv --delete-attachment mime-type:application/x-truetype-font mkvpropedit; : o 0 -- , . o 1 -- mkvpropedit(1) , . 'Warning:'. , , , . , . o 2 -- , . mkvpropedit(1) . / . , MKVToolNix , /, , , mkvmerge(1) mkvpropedit(1) , ( LANG LC_*). : MKVPROPEDIT_DEBUG, MKVTOOLNIX_DEBUG MTX_DEBUG , --debug. MKVPROPEDIT_ENGAGE, MKVTOOLNIX_ENGAGE MTX_ENGAGE , --engage. mkvmerge(1), mkvinfo(1), mkvextract(1), mkvtoolnix-gui(1) WWW - MKVToolNix[1]. Moritz Bunkus 1. MKVToolNix https://mkvtoolnix.download/ MKVToolNix 83.0 2024-03-10 mkvpropedit(1)