'\" t .\" Title: mkvpropedit .\" Author: Bunkus Moritz[FAMILY Given] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 2024-01-02 .\" Manual: 利用者命令 .\" Source: MKVToolNix 82.0 .\" Language: Japanese .\" .TH "MKVPROPEDIT" "1" "2024\-01\-02" "MKVToolNix 82\&.0" "利用者命令" .\" ----------------------------------------------------------------- .\" * 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 ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "名前" mkvpropedit \- 再MUXすることなく、既存のMatroskaファイルのプロパティを修正する .SH "書式" .HP \w'\fBmkvpropedit\fR\ 'u \fBmkvpropedit\fR [options] {source\-filename} {actions} .SH "説明" .PP このプログラムは、既存のMatroskaファイルを解析し、そのプロパティのいくつかを修正します。そして、それらの修正を既存のファイルに書き込みます。プロパティの中で変更可能なのは、セグメント情報要素(例えばタイトル)と、トラック頭部(例えば言語コードや\*(Aq既定トラック\*(Aqフラグ、トラック名)です。 .PP オプション: .PP \fB\-l\fR, \fB\-\-list\-property\-names\fR .RS 4 既知の編集可能なプロパティの名前、型(文字列、整数、真偽値等)、短い説明を一覧表示します。その後、プログラムは終了します。よって、\fIsource\-filename\fRパラメータを指定する必要はありません。 .RE .PP \fB\-p\fR, \fB\-\-parse\-mode\fR \fImode\fR .RS 4 解析モードを設定します。「\fImode\fR」パラメータは「fast」(既定)と「full」のどちらかを指定できます。「fast」モードはファイル全体を解析するのではなく、高次送り出し要素を使って原ファイル内の必要な要素を探します。99%の場合これで十分です。しかし、高次送り出し要素を含まないファイルや破損したファイルに対しては「full」解析モードを指定する必要があるかもしれません。「full」走査には数分かかることがありますが、「fast」走査には数秒しかかかりません。 .RE .PP Actions that deal with track and segment info properties: .PP \fB\-e\fR, \fB\-\-edit\fR \fIselector\fR .RS 4 このオプション以降のadd、set、deleteアクションが適用されるMatroskaファイルセクション(セグメント情報または特定のトラックの頭部)を指定します。このオプションは、複数の要素を修正するために、複数回指定することができます。 .sp 既定では、\fBmkvpropedit\fR(1)はセグメント情報のセクションを編集します。 .sp 文法の完全な説明は、編集選択子のセクションを参照してください。 .RE .PP \fB\-a\fR, \fB\-\-add\fR \fIname\fR=\fIvalue\fR .RS 4 \fIname\fRで指定された名前のプロパティを\fIvalue\fRで指定した値で追加します。プロパティは、既にその名前のプロパティが存在する場合も追加されます。ほとんどのプロパティは一意的で、複数回追加できないことに注意してください。 .RE .PP \fB\-s\fR, \fB\-\-set\fR \fIname\fR=\fIvalue\fR .RS 4 見付けた全ての、プロパティ名が\fIname\fRであるプロパティの値を、\fIvalue\fRに設定します。そのようなプロパティが存在しないときは、プロパティは追加されます。 .RE .PP \fB\-d\fR, \fB\-\-delete\fR \fIname\fR .RS 4 見付けた全ての、プロパティ名が\fIname\fRであるプロパティを削除します。いくつかのプロパティは必須で、削除できないことに注意してください。 .RE .PP Actions that deal with tags and chapters: .PP \fB\-t\fR, \fB\-\-tags\fR \fIselector\fR:\fIfilename\fR .RS 4 ファイル名からの標識を、このファイル中の標識に追加、あるいは置換します。もしファイル名が空白なら、標識を削除します。\fBmkvpropedit\fR(1)は、\fBmkvmerge\fR(1)が読み込むのと同じXML標識形式を読み込みます。 .sp \fI選択子\fRは、\fBall\fR、\fBglobal\fR、または\fBtrack\fRのうちどれか一つを指定してください。\fBall\fRを指定すると、\fBmkvpropedit\fR(1)はファイル中の全ての標識を置換あるいは削除します。\fBglobal\fRを指定すると、広域標識だけが置換あるいは削除されます。 .sp \fBtrack\fRを指定すると、\fBmkvpropedit\fR(1)は特定のトラックの標識を置換します。また、filenameから読み込まれた標識は、同じトラックに割り当てられます。edit selectorsが指定されるのと同じ様に(下を参照してください)、トラックは指定されます。(see below), e\&.g\&. \-\-tags track:a1:new\-audio\-tags\&.xml\&. .RE .PP \fB\-\-add\-track\-statistics\-tags\fR .RS 4 Calculates statistics for all tracks in a file and adds new statistics tags for them\&. If the file already contains such tags then they\*(Aqll be updated\&. .RE .PP \fB\-\-delete\-track\-statistics\-tags\fR .RS 4 Deletes all existing track statistics tags from a file\&. If the file doesn\*(Aqt contain track statistics tags then it won\*(Aqt be modified\&. .RE .PP \fB\-c\fR, \fB\-\-chapters\fR \fIfilename\fR .RS 4 ファイル名からの楽章を、このファイル中の標識に追加、あるいは置換します。もしファイル名が空白なら、楽章を削除します。\fBmkvpropedit\fR(1)は、\fBmkvmerge\fR(1)が読み込むのと同じXMLまたはシンプル楽章形式を読み込みます。 .RE .PP Actions for handling attachments: .PP \fB\-\-add\-attachment\fR \fIfilename\fR .RS 4 Adds a new attachment from \fIfilename\fR\&. .sp If the option \fB\-\-attachment\-name\fR has been used prior to this option then its value is used as the new attachment\*(Aqs name\&. Otherwise it is derived from \fIfilename\fR\&. .sp If the option \fB\-\-attachment\-mime\-type\fR has been used prior to this option then its value is used as the new attachment\*(Aqs MIME type\&. Otherwise it is auto\-detected from the content of \fIfilename\fR\&. .sp If the option \fB\-\-attachment\-description\fR has been used prior to this option then its value is used as the new attachment\*(Aqs description\&. Otherwise no description will be set\&. .sp If the option \fB\-\-attachment\-uid\fR has been used prior to this option then its value is used as the new attachment\*(Aqs UID\&. Otherwise a random UID will be generated automatically\&. .RE .PP \fB\-\-replace\-attachment\fR \fIselector\fR:\fIfilename\fR .RS 4 Replaces one or more attachments that match \fIselector\fR with the file \fIfilename\fR\&. If more than one existing attachment matches \fIselector\fR then all of their contents will be replaced by the content of \fIfilename\fR\&. .sp The \fIselector\fR can have one of four forms\&. They\*(Aqre explained below in the section attachment selectors\&. .sp If the option \fB\-\-attachment\-name\fR has been used prior to this option then its value is set as the new name for each modified attachment\&. Otherwise the names aren\*(Aqt changed\&. .sp If the option \fB\-\-attachment\-mime\-type\fR 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\*(Aqt changed\&. .sp If the option \fB\-\-attachment\-description\fR has been used prior to this option then its value is set as the new description for each modified attachment\&. Otherwise the descriptions aren\*(Aqt changed\&. .sp If the option \fB\-\-attachment\-uid\fR has been used prior to this option then its value is set as the new UID for each modified attachment\&. Otherwise the UIDs aren\*(Aqt changed\&. .RE .PP \fB\-\-update\-attachment\fR \fIselector\fR .RS 4 Sets the properties of one or more attachments that match \fIselector\fR\&. If more than one existing attachment matches \fIselector\fR then all of their properties will be updated\&. .sp The \fIselector\fR can have one of four forms\&. They\*(Aqre explained below in the section attachment selectors\&. .sp If the option \fB\-\-attachment\-name\fR has been used prior to this option then its value is set as the new name for each modified attachment\&. Otherwise the names aren\*(Aqt changed\&. .sp If the option \fB\-\-attachment\-mime\-type\fR 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\*(Aqt changed\&. .sp If the option \fB\-\-attachment\-description\fR has been used prior to this option then its value is set as the new description for each modified attachment\&. Otherwise the descriptions aren\*(Aqt changed\&. .sp If the option \fB\-\-attachment\-uid\fR has been used prior to this option then its value is set as the new UID for each modified attachment\&. Otherwise the UIDs aren\*(Aqt changed\&. .RE .PP \fB\-\-delete\-attachment\fR \fIselector\fR .RS 4 Deletes one or more attachments that match \fIselector\fR\&. .sp The \fIselector\fR can have one of four forms\&. They\*(Aqre explained below in the section attachment selectors\&. .RE .PP Options for attachment actions: .PP \fB\-\-attachment\-name\fR \fIname\fR .RS 4 Sets the name to use for the following \fB\-\-add\-attachment\fR or \fB\-\-replace\-attachment\fR operation\&. .RE .PP \fB\-\-attachment\-mime\-type\fR \fImime\-type\fR .RS 4 Sets the MIME type to use for the following \fB\-\-add\-attachment\fR or \fB\-\-replace\-attachment\fR operation\&. .RE .PP \fB\-\-attachment\-description\fR \fIdescription\fR .RS 4 Sets the description to use for the following \fB\-\-add\-attachment\fR or \fB\-\-replace\-attachment\fR operation\&. .RE .PP \fB\-\-enable\-legacy\-font\-mime\-types\fR .RS 4 Enables the use of legacy MIME types for certain types of font attachments\&. For example, \*(Aqapplication/x\-truetype\-font\*(Aq will be used for TrueType fonts instead of \*(Aqfonts/ttf\*(Aq\&. .sp This affects both adding new attachments and replacing existing attachments, but only if the new MIME type isn\*(Aqt specified\&. Other existing attachments aren\*(Aqt changed\&. .sp The affected MIME types are \*(Aqfont/sfnt\*(Aq, \*(Aqfont/ttf\*(Aq and \*(Aqfont/collection\*(Aq which are all mapped to \*(Aqapplication/x\-truetype\-fonts\*(Aq and \*(Aqfont/otf\*(Aq which is mapped to \*(Aqapplication/vnd\&.ms\-opentype\*(Aq\&. .RE .PP その他のオプション: .PP \fB\-\-disable\-language\-ietf\fR .RS 4 Normally when the user requests changes to the \*(Aqlanguage\*(Aq track header property, \fBmkvpropedit\fR(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\&. .sp This option does not affect changes requested via the \*(Aqlanguage\-ietf\*(Aq track header property\&. .RE .PP \fB\-\-normalize\-language\-ietf\fR \fImode\fR .RS 4 Enables normalizing all IETF BCP 47 language tags to either their canonical form with mode \*(Aqcanonical\*(Aq, to their extended language subtags form with mode \*(Aqextlang\*(Aq or turns it off with mode \*(Aqoff\*(Aq\&. By default normalization to the canonical form is applied\&. .sp In the canonical form all subtags for which preferred values exist are replaced by those preferred values\&. This converts e\&.g\&. \*(Aqzh\-yue\-jyutping\*(Aq to \*(Aqyue\-jyutping\*(Aq or \*(Aqfr\-FX\*(Aq to \*(Aqfr\-FR\*(Aq\&. .sp 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\&. \*(Aqyue\-jyutping\*(Aq back to \*(Aqzh\-yue\-jyutping\*(Aq but has no effect on \*(Aqfr\-FR\*(Aq as \*(Aqfr\*(Aq is not an extended language subtag\&. .sp This normalization is only applied to elements that are actually changed: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} When editing track headers only those track language elements that are set via edit specifications are affected\&. Languages of tracks that aren\*(Aqt edited aren\*(Aqt changed\&. Editing a track but setting only properties other than the language won\*(Aqt affect the language either\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} When editing chapters all language elements of all chapter elements are affected as existing chapters are always fully replaced\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} 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\*(Aqt affected\&. .RE .sp The best way to normalize all existing language tags in a file is to remux it with \fBmkvmerge\fR(1) and set its \*(Aq\-\-normalize\-language\-ietf\*(Aq option to the desired mode\&. .RE .PP \fB\-\-command\-line\-charset\fR \fI文字集合\fR .RS 4 命令行から与えた文字列を変換するのに用いる文字集合を設定します。既定では機構の現行地域特性で指定している文字集合になります。 .RE .PP \fB\-\-output\-charset\fR \fI文字集合\fR .RS 4 出力される文字列を変換するのに用いる文字集合を設定します。既定では機構の現行地域特性で指定している文字集合になります。 .RE .PP \fB\-r\fR, \fB\-\-redirect\-output\fR\fIファイル名\fR .RS 4 全てのメッセージをコンソールではなく\fIfile\-name\fRで指定したファイルに書き出します。出力リダイレクトによっても同じことが簡単にできますが、このオプションが必要な場合もあります。ターミナルがファイルに書き込む前に出力を処理してしまう場合などです。\fB\-\-output\-charset\fRによって指定された文字コードは尊重されます。 .RE .PP \fB\-\-ui\-language\fR \fI符号\fR .RS 4 用いる翻訳を指定した言語\fI符号\fRのものに強制します(例えば「de_DE」ならドイツ語翻訳です)。\fI符号\fRに「list」を指定すると利用可能な翻訳の一覧を出力します。 .RE .PP \fB\-\-abort\-on\-warnings\fR .RS 4 警告が発された後、プログラムが停止するようにします。プログラムの終了番号は1になります。 .RE .PP \fB\-\-debug\fR \fI機能\fR .RS 4 指定した機能の診断出力を有効にします。このオプションは開発者にとってのみ有用です。 .RE .PP \fB\-\-engage\fR \fI機能\fR .RS 4 実験的機能をオンにします。利用可能な機能のリストは\fBmkvpropedit \-\-engage list\fRで得られます。これらの機能は通常の状況で利用されることは意図されていません。 .RE .PP \fB\-\-gui\-mode\fR .RS 4 GUIモードに切り替えます。このモードではGUI操作の状況を伝える特殊な形式の行が出力されます。これらの通報は \*(Aq#GUI#通報内容\*(Aq という形式の後に続きます。\*(Aq#GUI#通報内容#予約語1=値1#予約語2=値2\&.\&.\&.\*(Aq というように予約語・値の組が通報内容に続くことがあります。通知内容や予約語は翻訳されることなく常に英語で出力されます。 .RE .PP \fB\-v\fR, \fB\-\-verbose\fR .RS 4 出力が冗長になり、Matroskaの重要要素全てを、読み込まれるつど表示します。 .RE .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 使用法情報を出力して終了します。 .RE .PP \fB\-V\fR, \fB\-\-version\fR .RS 4 版次情報を出力して終了します。 .RE .PP \fB@\fR\fIオプションファイル\&.json\fR .RS 4 \fIオプションファイル\fRから追加の命令行引数を読み込みます。こうしたファイルの対応形式についての詳細は、\fBmkvmerge\fR(1)便覧中の「オプションファイル」という節をご覧ください。 .RE .SH "編集選択子" .PP \fB\-\-edit\fRオプションは、以降のadd、set及びdeleteアクションが適用されるMatroskaファイルセクション(セグメント情報または特定のトラック頭部)を設定します。これは次の\fB\-\-edit\fRオプションが見付かるまでずっと有効です。このオプションへの引数は編集選択子と呼ばれます。 .PP 既定では、\fBmkvpropedit\fR(1)はセグメント情報のセクションを編集します。 .SS "セグメント情報" .PP セグメント情報は次の3つの単語によって選択されます。\*(Aqinfo\*(Aq、\*(Aqsegment_info\*(Aqまたは\*(Aqsegmentinfo\*(Aqです。これはセグメントタイトルやセグメントUIDなどのプロパティを格納しています。 .SS "トラック頭部" .PP トラック頭部はもうちょっとだけ複雑な選択子で選択されます。全ての場合で選択子は\*(Aqtrack:\*(Aqで始まります。トラック頭部プロパティには、言語コード、\*(Aq既定トラック\*(Aqフラグやトラック名のような要素があります。 .PP \fBtrack:\fR\fIn\fR .RS 4 引数\fIn\fRが数字の場合は,\fIn\fR番目のトラックを選択します。トラックの順序は\fBmkvmerge\fR(1)での\fB\-\-identify\fRオプションの出力と同じです。 .sp 付番は1から始まります。 .RE .PP \fBtrack:\fR\fIt\fR\fIn\fR .RS 4 引数が単一の文字\fIt\fRに続く\fIn\fRで始まる場合は,特定のトラック種別の\fIn\fR番目のトラックを選択します。トラック種別引数\fIt\fRは次の4つのうち1つでなくてはなりません:\*(Aqa\*(Aqは音声トラック,\*(Aqb\*(Aqはボタントラック,パラメータが一文字の英字\fIt\fRで始まり、次に\fIn\fRが続く場合、あるトラックタイプで\fIn\fR番目のトラックが選択されます。トラックタイプパラメータ\fIt\fRは、音声トラックを示す\*(Aqa\*(Aq、ボタントラックを示す\*(Aqb\*(Aq、字幕トラックを示す\*(Aqs\*(Aq、映像トラックを示す\*(Aqv\*(Aqの四つのうちの一つでなければなりません。トラックの順番は\fBmkvmerge\fR(1)の\fB\-\-identify\fRオプションで出力される順番と同じです。 .sp 付番は1から始まります。 .RE .PP \fBtrack:\fR=\fIuid\fR .RS 4 引数が \*(Aq=\*(Aq に続く数字\fIuid\fRであれば,指定された\fIuid\fRと等しいトラックUID要素を持つトラックを選択します。トラックUIDは\fBmkvinfo\fR(1)で確認できます。 .RE .PP \fBtrack:\fR@\fInumber\fR .RS 4 引数が \*(Aq@\*(Aq に続く数字\fInumber\fRであれば,この\fInumber\fRに等しいトラック番号要素を持つトラックを選択します。トラック番号は\fBmkvinfo\fR(1)で確認できます。 .RE .SS "注意" .PP トラック編集選択子の性質から、複数の選択子が同じトラック頭部に合致し得ます。こうした場合、それらの編集選択子への全作用を一つにまとめ、命令行で与えた順に実行します。 .SH "添付ファイル選択子" .PP 添付ファイル選択子は\fB\-\-replace\-attachment\fRおよび\fB\-\-delete\-attachment\fRの二作用と共に使います。 .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} 添付ファイル識別子での選択。この形式では、選択子は単に数字であり、\fBmkvmerge\fR(1)の識別命令が出力する添付ファイル識別子と同じものです。 .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} 添付ファイル固有識別子での選択。この形式では、選択子は等号=に続く数字であり、\fBmkvmerge\fR(1)の識別命令が出力する添付ファイル固有識別子と同じものです。 .RE .sp .RS 4 .ie n \{\ \h'-04' 3.\h'+01'\c .\} .el \{\ .sp -1 .IP " 3." 4.2 .\} 添付ファイル名による選択。この形式では、選択子は即値語name:に続く存在する添付ファイルの名前です。この選択子を\fB\-\-replace\-attachment\fRと共に用いる場合は、合致する名前中のコロンは\ecと退避させなくてはなりません。 .RE .sp .RS 4 .ie n \{\ \h'-04' 4.\h'+01'\c .\} .el \{\ .sp -1 .IP " 4." 4.2 .\} MIME種別による選択。この形式では、選択子は即値語mime\-type:に続く存在する添付ファイルのMIME種別です。この選択子を\fB\-\-replace\-attachment\fRと共に用いる場合は、合致するMIME種別中のコロンは\ecと退避させなくてはなりません。 .RE .SH "LANGUAGE HANDLING" .PP \fBmkvpropedit\fR(1) mostly tries to do the right thing by default\&. Therefore changes to the \fBlanguage\fR property will cause \fBmkvpropedit\fR(1) to apply the same change to both the new "LanguageIETF" element as well as the old "Language" element similar to how \fBmkvmerge\fR(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\&. .PP Additionally there\*(Aqs a new track header property named \fBlanguage\-ietf\fR 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 \(em meaning even if it isn\*(Aqt present in the file it still has an implied value\&. When the user only sets the \fBlanguage\-ietf\fR property but not the \fBlanguage\fR property, \fBmkvpropedit\fR(1) will therefore add the old "Language" element in certain cases & set it to und (meaning "undetermined") as the user didn\*(Aqt specify a value for it\&. .PP When reading XML chapter or tag files \fBmkvpropedit\fR(1) works like \fBmkvmerge\fR(1) does\&. .PP 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\&. .PP You can chose the normalization method applied to extended language sub\-tags with the parameter \fB\-\-normalize\-language\-ietf\fR\&. .SH "例" .PP \*(Aqmovie\&.mkv\*(Aq というファイルを編集する例を以下に示します。区分題名を設定し、音声トラックおよび字幕トラックの言語コードを修正しています。注意: この例では、最初の\fB\-\-edit\fRオプションを省いて短縮できます。なぜなら、結局最初の\fB\-\-edit\fRオプションが見付かる前の全てのオプションは、既定で区分情報要素を編集するからです。 .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-edit info \-\-set "title=The movie" \-\-edit track:a1 \-\-set language=fre \-\-edit track:a2 \-\-set language=ita .fi .if n \{\ .RE .\} .PP 二番目の例では、最初の字幕トラックから「既定のトラック標旗」を削除し二番目の字幕トラックに設定します。注意: \fBmkvpropedit\fR(1)は\fBmkvmerge\fR(1)とは異なり,他のトラックの既定標旗が「1」に自動設定されていても,違うトラックの既定標旗を「0」に設定しません。 .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-edit track:s1 \-\-set flag\-default=0 \-\-edit track:s2 \-\-set flag\-default=1 .fi .if n \{\ .RE .\} .PP ファイル中2番目の字幕トラックの標識を置換するには、以下のようにします: .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-tags track:s2:new\-subtitle\-tags\&.xml .fi .if n \{\ .RE .\} .PP 標識を削除したいときはファイル名を省きます: .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-tags all: .fi .if n \{\ .RE .\} .PP ファイル中の楽章を置換するには、以下のようにします: .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-chapters new\-chapters\&.xml .fi .if n \{\ .RE .\} .PP 全ての楽章を削除したいときはファイル名を省きます: .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-chapters \*(Aq\*(Aq .fi .if n \{\ .RE .\} .PP フォントファイル(Arial\&.ttf)を添付ファイルとして追加する。 .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-add\-attachment Arial\&.ttf .fi .if n \{\ .RE .\} .PP フォントファイル(89719823\&.ttf)を添付ファイルとして追加し、それがまさにArialであるという情報を提供する: .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-attachment\-name Arial\&.ttf \-\-attachment\-description \*(AqThe Arial font as a TrueType font\*(Aq \-\-attachment\-mime\-type application/x\-truetype\-font \-\-add\-attachment 89719823\&.ttf .fi .if n \{\ .RE .\} .PP 附属のフォントファイル(Comic\&.ttf)を別のもの (Arial\&.ttf) に置き換える: .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-attachment\-name Arial\&.ttf \-\-attachment\-description \*(AqThe Arial font as a TrueType font\*(Aq \-\-replace\-attachment name:Comic\&.ttf:Arial\&.ttf .fi .if n \{\ .RE .\} .PP 2番目の添付ファイルを、それが何であれ削除する。 .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-delete\-attachment 2 .fi .if n \{\ .RE .\} .PP MIME種別を指定することで全ての附属フォントを削除する: .sp .if n \{\ .RS 4 .\} .nf $ mkvpropedit movie\&.mkv \-\-delete\-attachment mime\-type:application/x\-truetype\-font .fi .if n \{\ .RE .\} .SH "終了番号" .PP \fBmkvpropedit\fR(1)は下の3つの終了番号を返します。 .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB0\fR \-\- この終了番号は変更が成功したことを示します。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB1\fR \-\- この終了番号は、一つ以上の警告が出力されたが抽出が続行されたことを意味します。警告は \*(AqWarning:\*(Aq という文字列を先頭にして出力されます。結果ファイルが無事かどうかは状況によります。出力ファイルを確認することを強く推奨します。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB2\fR \-\- この終了番号は、誤りが発生し、誤り通報を出力した直後に\fBmkvpropedit\fR(1)が終了したことを示します。誤り通報の原因は命令行の間違いやファイル読み/書き誤り、壊れたファイルなど多岐に渡ります。 .RE .SH "文章ファイルと文字集合変換" .PP MKVToolNix一式の全ての操作機が文字集合変換、入出力、命令行、操作卓上の文字集合をどのように処理するかについての詳細な議論については、\fBmkvmerge\fR(1)の便覧にある同名の節をご覧ください。 .SH "環境変数" .PP \fBmkvpropedit\fR(1)は機構の地域特性を決める既定変数(例:\fILANG\fRや\fILC_*\fR系列)を使用します。追加の変数: .PP \fIMKVPROPEDIT_DEBUG\fR, \fIMKVTOOLNIX_DEBUG\fRとその短縮形\fIMTX_DEBUG\fR .RS 4 その内容を、あたかも\fB\-\-debug\fRオプション経由で渡されたかのように扱います。 .RE .PP \fIMKVPROPEDIT_ENGAGE\fR, \fIMKVTOOLNIX_ENGAGE\fRとその短縮形\fIMTX_ENGAGE\fR .RS 4 その内容を、あたかも\fB\-\-engage\fRオプション経由で渡されたかのように扱います。 .RE .SH "関連項目" .PP \fBmkvmerge\fR(1)、\fBmkvinfo\fR(1)、\fBmkvextract\fR(1)、\fBmkvtoolnix-gui\fR(1) .SH "ウェブ" .PP 最新版は常に\m[blue]\fBMKVToolNixの拠点\fR\m[]\&\s-2\u[1]\d\s+2で入手できます。 .SH "著者" .PP \fBBunkus Moritz[FAMILY Given]\fR <\&moritz@bunkus\&.org\&> .RS 4 開発者 .RE .SH "注記" .IP " 1." 4 MKVToolNixの拠点 .RS 4 \%https://mkvtoolnix.download/ .RE