'\" t .\" Title: mkvmerge .\" Author: Bunkus Moritz[FAMILY Given] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2017-05-20 .\" Manual: .\" Source: MKVToolNix 12.0.0 .\" Language: Japanese .\" .TH "MKVMERGE" "1" "2017\-05\-20" "MKVToolNix 12\&.0\&.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 "名前" mkvmerge \- マルチメディアストリームをMatroskaファイルに格納します。 .SH "書式" .HP \w'\fBmkvmerge\fR\ 'u \fBmkvmerge\fR [global\ options] {\-o\ out} [options1] {file1} [[options2]\ {file2}] [@options\-file\&.json] .SH "説明" .PP このプログラムはいくつかのメディアファイルを入力とし、それらに格納されたストリームのうち全て、もしくは選択されたものをMatroskaファイルに書き込みます。\m[blue]\fBMatroska\fR\m[]\&\s-2\u[1]\d\s+2のウェブサイトも参照してください。 .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB重要\fR .ps -1 .br .PP コマンドラインオプションの順番は重要です。もしあなたが初心者なら、"オプションの順番"セクションを読んで下さい。 .sp .5v .RE .SS "グローバルオプション" .PP \fB\-v\fR, \fB\-\-verbose\fR .RS 4 より詳細な情報を表示します .RE .PP \fB\-q\fR, \fB\-\-quiet\fR .RS 4 ステータス情報の出力を抑制します。 .RE .PP \fB\-o\fR, \fB\-\-output\fR \fIfile\-name\fR .RS 4 \fIfile\-name\fRで指定したファイルに書き込みます。もし、ファイル分割が有効な場合このオプションは若干解釈が違います。詳細は\fB\-\-split\fRオプションの説明を参照してください。 .RE .PP \fB\-w\fR, \fB\-\-webm\fR .RS 4 Create a WebM compliant file\&. This is also turned on if the output file name\*(Aqs extension is "webm"\&. This mode enforces several restrictions\&. The only allowed codecs are VP8, VP9 video and Opus, Vorbis audio tracks\&. Neither chapters nor tags are allowed\&. The DocType header item is changed to "webm"\&. .RE .PP \fB\-\-title\fR \fItitle\fR .RS 4 出力ファイル全体のタイトルを指定します(例:映画のタイトルなど)。 .RE .PP \fB\-\-default\-language\fR \fIlanguage\-code\fR .RS 4 Sets the default language code that will be used for tracks for which no language is set with the \fB\-\-language\fR option and for which the source container doesn\*(Aqt provide a language\&. .sp The default language code is \*(Aqund\*(Aq for \*(Aqundefined\*(Aq\&. .RE .SS "セグメント情報の扱い (グローバルオプション)" .PP \fB\-\-segmentinfo\fR \fIfilename\&.xml\fR .RS 4 XMLファイルからセグメント情報を読み取ります。このファイルは、セグメントファミリUID、セグメントUID、前、及び、後セグメントUIDエレメントを含むことができます。MKVToolNixは、サンプルファイルとDTDを含んで配布されています。 .sp 詳細は、下にあるセグメント情報XMLファイルのセクションを参照してください。 .RE .PP \fB\-\-segment\-uid\fR \fISID1,SID2,\&.\&.\&.\fR .RS 4 使用するセグメントUIDを設定します。これはコンマで区切られた、通常のUID形式("0x"を前置する、またはしない、空白を含む、または含まない、ちょうど32桁の16進数)128ビットセグメントUIDのリストです。 .sp If SID starts with = then its rest is interpreted as the name of a Matroska file whose segment UID is read and used\&. .sp 作成される各ファイルは一つのセグメントを含み、そして各セグメントは一つのセグメントUIDを持ちます。もし、作成されたセグメントよりも多数のセグメントUIDが指定された場合、余ったセグメントUIDは無視されます。また、もし指定されたセグメントUIDよりも多数のセグメントが作成された場合は、ランダムなUIDが作成されて使用されます。 .RE .SS "チャプタ及びタグの扱い (グローバルオプション)" .PP \fB\-\-chapter\-language\fR \fIlanguage\-code\fR .RS 4 各チャプタのエントリに書き込むISO639\-2言語コードを指定します。デフォルトは\*(Aqeng\*(Aqです。詳細はチャプタのセクションを参照してください。 .sp このオプションはシンプルチャプタファイルを読み込んだ場合、そしてソースファイルがチャプタを含むがチャプタの言語情報を含まなかった場合(例:MP4,OGMファイル)に適用されます。 .sp The language set with this option is also used when chapters are generated with the \fB\-\-generate\-chapters\fR option\&. .RE .PP \fB\-\-chapter\-charset\fR \fIcharacter\-set\fR .RS 4 シンプルチャプタファイルをUTF\-8に変換する際の文字コードを指定します。\fBmkvmerge\fR(1)の文字コード変換については、テキストファイルと文字コードのセクションを参照してください。 .sp このスイッチはチャプタがOgg,OGMファイルなどのコンテナからコピーされる際にも適用されます。詳細については後述のチャプタについてのセクションを参照してください。 .RE .PP \fB\-\-generate\-chapters\fR \fImode\fR .RS 4 \fBmkvmerge\fR(1) can create chapters automatically\&. The following two modes are currently supported: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \*(Aqwhen\-appending\*(Aq \(en This mode creates one chapter at the start and one chapter whenever a file is appended\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br \fBmkvmerge\fR(1) requires a video or an audio track to be present in order to be able to determine when a new file is appended\&. If one or more video tracks are muxed the first one is used\&. Otherwise the first audio track is used\&. .sp .5v .RE .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \*(Aqinterval:\fItime\-spec\fR\*(Aq \(en This mode creates one chapter at fixed intervals given by \fItime\-spec\fR\&. The format is either the form \fIHH:MM:SS\&.nnnnnnnnn\fR or a number followed by one of the units \*(Aqs\*(Aq, \*(Aqms\*(Aq or \*(Aqus\*(Aq\&. .sp Example: \-\-generate\-chapters interval:45s .RE .sp The names for the new chapters are controlled by the option \-\-generate\-chapters\-name\-template\&. The language is set with \-\-chapter\-language which must occur before \fB\-\-generate\-chapters\fR\&. .RE .PP \fB\-\-generate\-chapters\-name\-template\fR \fItemplate\fR .RS 4 This sets the name template for chapter names generated by the option \-\-generate\-chapters\&. If the option is not used then default \*(AqChapter \*(Aq will be used\&. .sp There are several variables that can be used in the template that are replaced by their actual values when a chapter is generated\&. The string \*(Aq\*(Aq will be replaced by the chapter number\&. The string \*(Aq\*(Aq will be replaced by the chapter\*(Aqs start timestamp\&. .sp The strings \*(Aq\*(Aq and \*(Aq\*(Aq are only filled when generating chapters for appended files\&. They will be replaced by the appended file\*(Aqs name wihtout respectively with its extension\&. Note that only the file\*(Aqs base name and extension are inserted, not its directory or drive components\&. .sp You can specify a minimum number of places for the chapter number with \*(Aq\*(Aq, e\&.g\&. \*(Aq\*(Aq\&. The resulting number will be padded with leading zeroes if the number of places is less than specified\&. .sp You can control the format used by the start timestamp with \&. The format defaults to \*(Aq%H:%M:%S\*(Aq if none is given\&. Valid format codes are: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %h \(en hours .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %H \(en hours zero\-padded to two places .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %m \(en minutes .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %M \(en minutes zero\-padded to two places .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %s \(en seconds .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %S \(en seconds zero\-padded to two places .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %n \(en nanoseconds with nine places .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %<1\-9>n \(en nanoseconds with up to nine places (e\&.g\&. three places with %3n) .RE .RE .PP \fB\-\-cue\-chapter\-name\-format\fR \fIformat\fR .RS 4 \fBmkvmerge\fR(1)は音声ファイル向けのCUEシートからチャプタ情報を読み込むことができます。CUEシートには通常\fIPERFORMER\fRエントリ及び\fITITLE\fRエントリが各インデックスエントリに存在します。\fBmkvmerge\fR(1)はこれら二つの文字列をチャプタの名前を生成するのに使用します。このフォーマットをこのオプションで指定することができます。 .sp このオプションが指定されていない場合、デフォルトで\*(Aq%p \- %t\*(Aqというフォーマットが使用されます。 .sp フォーマットが指定された場合、下のメタ文字以外はそのままコピーされ、メタ文字は以下のように置換されます。 .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fI%p\fRはそのエントリの\fIPERFORMER\fR文字列で置換されます。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fI%t\fRはそのエントリの\fITITLE\fR文字列で置換されます。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fI%n\fRはそのエントリのトラック番号で置換されます。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fI%N\fRは、そのエントリのトラック番号が10未満の場合0を前置して二桁にした数字で置換されます。 .RE .RE .PP \fB\-\-chapters\fR \fIfile\-name\fR .RS 4 チャプタ情報を\fIfile\-name\fRで指定したファイルから読み込みます。詳細はチャプタのセクションを参照してください。 .RE .PP \fB\-\-global\-tags\fR \fIfile\-name\fR .RS 4 \fIfile\-name\fRで指定したファイルからグローバルタグを読み込みます。詳細はタグのセクションを参照してください。 .RE .SS "出力一般のコントロール(高度なグローバルオプション)" .PP \fB\-\-track\-order\fR \fIFID1:TID1,FID2:TID2,\&.\&.\&.\fR .RS 4 このオプションは入力されたトラックが配置される順序を変更します。オプション引数はコンマで区切られるIDペアのリストです。各ペアは最初を0としてコマンドラインの何番目に指定したファイルであるかを示すファイルID(\fIFID1\fR)と、そのファイルの中の何番目のトラックかを示すトラックID(\fITID1\fR)からなります。ここで指定されなかったトラックは、指定されたトラックの後に配置されます。 .RE .PP \fB\-\-cluster\-length\fR \fIspec\fR .RS 4 クラスタごとの、データブロック個数の上限または持続時間を指定します。\fIspec\fRパラメータには単位なしの数字\fIn\fRもしくは、\*(Aqms\*(Aqを後ろに付けた数字\fId\fRを指定することができます。 .sp 単位が指定されなかった場合、クラスタごとのデータブロックの最大個数は\fIn\fRに設定されます。上限は65535です。 .sp 数字\fId\fRに\*(Aqms\*(Aqが後置されていた場合、\fBmkvmerge\fR(1)は各データクラスタ毎に最大でも\fId\fRミリ秒分のデータしか格納しません。\fId\fRの最小値は\*(Aq100ms\*(Aq、最大値は\*(Aq32000ms\*(Aqです。 .sp デフォルトは、データクラスタ毎に65535データブロック以下、5000ms以下のデータを書き込みます。 .sp プログラムがあるフレームを見つけようとするときは、クラスタに直接シークして、その後クラスタ全体を読み込みます。よって、より大きなクラスタを作ると、シークが不正確かつ遅くなるかもしれません。 .RE .PP \fB\-\-no\-cues\fR .RS 4 キューデータ(AVIファイルにおけるインデックスのようなもの)を作成しません。キューデータなしでもファイルは再生できますが、シークは不正確かつ遅くなるでしょう。このオプションは、少しでもファイルサイズを小さくしようと必死なとき、またはテスト目的以外には使用しないでください。\fB\-\-cues\fRオプションは各入力ファイルごとに指定できます。 .RE .PP \fB\-\-clusters\-in\-meta\-seek\fR .RS 4 ファイルの終端に全てのクラスタを含むメタシーク要素を作成します。Matroskaファイルレイアウトのセクションも参照してください。 .RE .PP \fB\-\-disable\-lacing\fR .RS 4 全てのトラックで複数のフレームを1つのブロックにまとめません。これは特に多数のオーディオトラックがある場合に、ファイルサイズを増大させます。テスト目的でのみ使用してください。 .RE .PP \fB\-\-enable\-durations\fR .RS 4 全てのブロックの長さを記録します。これはファイルサイズを増大させますが、現在のところプレーヤには何のメリットももたらしません。 .RE .PP \fB\-\-disable\-track\-statistics\-tags\fR .RS 4 Normally \fBmkvmerge\fR(1) will write certain tags with statistics for each track\&. If such tags are already present then they will be overwritten\&. The tags are \fBBPS\fR, \fBDURATION\fR, \fBNUMBER_OF_BYTES\fR and \fBNUMBER_OF_FRAMES\fR\&. .sp Enabling this option prevents \fBmkvmerge\fR(1) from writing those tags and from touching any existing tags with same names\&. .RE .PP \fB\-\-timecode\-scale\fR \fIfactor\fR .RS 4 タイムコードスケールの係数を\fIfactor\fRに強制設定します。この値は1000~10000000、もしくは\-1に設定しなければなりません。 .sp 通常\fBmkvmerge\fR(1)は\fB1000000\fRを使用します。これはタイムコードとフレーム持続期間が1ミリ秒単位の精度を持つことを意味します。ビデオトラックを含まず、1つ以上のオーディオトラックを含むファイルでは、\fBmkvmerge\fR(1)は全てのタイムコードとフレーム持続時間がサンプリング音1つ分の精度を持つようタイムコードスケールの係数を自動的に選択します。これによってオーバーヘッドは大きくなりますが、正確なシークと展開が可能になります。 .sp 特殊な値\fB\-1\fRが指定された場合、たとえビデオトラックが存在していてもサンプリング音の精度を使用します。 .RE .SS "ファイルの分割と紐付け、追加結合、連結(グローバルオプションの続き):" .PP \fB\-\-split\fR \fIspecification\fR .RS 4 出力ファイルを指定したサイズ、又は時間で分割します。トラックはキーフレームの直後でしか分割できないことに注意してください。\fBmkvmerge\fR(1)はバッファリングを行うため、ファイルは分割すべき点の次にくるキーフレームの直前で分割されます。よって、分割点はユーザが指定した点よりも若干後ろになります。 .sp At the moment \fBmkvmerge\fR(1) supports four different modes\&. .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} 指定サイズで分割します。 .sp 書式: \fB\-\-split\fR [size:]\fId\fR[k|m|g] .sp 例: \-\-split size:700m or \-\-split 150000000 .sp パラメータ\fId\fRの後ろには\*(Aqk\*(Aq・\*(Aqm\*(Aq・\*(Aqg\*(Aqを付けて、単位がそれぞれKB・MB・GBであることを示すことができます。付けない場合はバイト単位になります。出力中のファイルがこの上限に達したら、次の新しいファイルへの出力が開始されます。 .sp \*(Aqsize:\*(Aqという接頭辞は、互換性のために省略できるようになっています。 .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} 指定時間で分割します。 .sp 書式: \fB\-\-split\fR [duration:]\fIHH:MM:SS\&.nnnnnnnnn\fR|\fId\fRs .sp 例: \-\-split duration:00:60:00\&.000 or \-\-split 3600s .sp パラメータは\fIHH:MM:SS\&.nnnnnnnnn\fRという形式でナノ秒精度で長さを指定するか、数字\fId\fRのあとに\*(Aqs\*(Aqと書いて秒数で長さを指定しなければなりません。\fIHH\fRは時間、\fIMM\fRは分、\fISS\fRは秒数で\fInnnnnnnnn\fRナノ秒を示します。時間及びナノ秒は省略できます。小数点の後ろには9桁までの数字を指定できます。指定した長さだけ出力されたら、次のファイルへの出力が開始されます。 .sp \*(Aqduration:\*(Aqという接頭辞は、互換性のために省略できるようになっています。 .RE .sp .RS 4 .ie n \{\ \h'-04' 3.\h'+01'\c .\} .el \{\ .sp -1 .IP " 3." 4.2 .\} 指定した各タイムコードで分割します。 .sp 書式: \fB\-\-split\fR timecodes:\fIA\fR[,\fIB\fR[,\fIC\fR\&.\&.\&.]] .sp 例: \-\-split timecodes:00:45:00\&.000,01:20:00\&.250,6300s .sp パラメータ\fIA\fR、\fIB\fR、\fIC\fR\&...は、durationで使用されるものと同じフォーマットで指定しなければなりません(上記参照)。タイムコードのリストはコンマで区切られます。入力ストリームが現在の分割点に達すると次のファイルが作成され、このリストから次の分割点が使用されます。 .sp \*(Aqtimecodes:\*(Aqという接頭辞は、互換性のために省略できるようになっています。 .RE .sp .RS 4 .ie n \{\ \h'-04' 4.\h'+01'\c .\} .el \{\ .sp -1 .IP " 4." 4.2 .\} Keeping specific parts by specifying timecode ranges while discarding others\&. .sp Syntax: \fB\-\-split\fR parts:\fIstart1\fR\-\fIend1\fR[,[+]\fIstart2\fR\-\fIend2\fR[,[+]\fIstart3\fR\-\fIend3\fR\&.\&.\&.]] .sp Examples: .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} \-\-split parts:00:01:20\-00:02:45,00:05:50\-00:10:30 .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} \-\-split parts:00:01:20\-00:02:45,+00:05:50\-00:10:30 .RE .sp .RS 4 .ie n \{\ \h'-04' 3.\h'+01'\c .\} .el \{\ .sp -1 .IP " 3." 4.2 .\} \-\-split parts:\-00:02:45,00:05:50\- .RE .sp The parts mode tells \fBmkvmerge\fR(1) to keep certain ranges of timecodes while discarding others\&. The ranges to keep have to be listed after the parts: keyword and be separated by commas\&. A range itself consists of a start and an end timecode in the same format the other variations of \fI\-\-split\fR accept (e\&.g\&. both 00:01:20 and 80s refer to the same timecode)\&. .sp If a start timecode is left out then it defaults to the previous range\*(Aqs end timecode\&. If there was no previous range then it defaults to the start of the file (see example 3)\&. .sp If an end timecode is left out then it defaults to the end of the source files which basically tells \fBmkvmerge\fR(1) to keep the rest (see example 3)\&. .sp Normally each range will be written to a new file\&. This can be changed so that consecutive ranges are written to the same file\&. For that the user has to prefix the start timecode with a +\&. This tells \fBmkvmerge\fR(1) not to create a new file and instead append the range to the same file the previous range was written to\&. Timecodes will be adjusted so that there will be no gap in the output file even if there was a gap in the two ranges in the input file\&. .sp In example 1 \fBmkvmerge\fR(1) will create two files\&. The first will contain the content starting from 00:01:20 until 00:02:45\&. The second file will contain the content starting from 00:05:50 until 00:10:30\&. .sp In example 2 \fBmkvmerge\fR(1) will create only one file\&. This file will contain both the content starting from 00:01:20 until 00:02:45 and the content starting from 00:05:50 until 00:10:30\&. .sp In example 3 \fBmkvmerge\fR(1) will create two files\&. The first will contain the content from the start of the source files until 00:02:45\&. The second file will contain the content starting from 00:05:50 until the end of the source files\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br Note that \fBmkvmerge\fR(1) only makes decisions about splitting at key frame positions\&. This applies to both the start and the end of each range\&. So even if an end timecode is between two key frames \fBmkvmerge\fR(1) will continue outputting the frames up to but excluding the following key frame\&. .sp .5v .RE .RE .sp .RS 4 .ie n \{\ \h'-04' 5.\h'+01'\c .\} .el \{\ .sp -1 .IP " 5." 4.2 .\} Keeping specific parts by specifying frame/field number ranges while discarding others\&. .sp Syntax: \fB\-\-split\fR parts\-frames:\fIstart1\fR\-\fIend1\fR[,[+]\fIstart2\fR\-\fIend2\fR[,[+]\fIstart3\fR\-\fIend3\fR\&.\&.\&.]] .sp Examples: .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} \-\-split parts\-frames:137\-258,548\-1211 .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} \-\-split parts\-frames:733\-912,+1592\-2730 .RE .sp .RS 4 .ie n \{\ \h'-04' 3.\h'+01'\c .\} .el \{\ .sp -1 .IP " 3." 4.2 .\} \-\-split parts\-frames:\-430,2512\- .RE .sp The parts\-frames mode tells \fBmkvmerge\fR(1) to keep certain ranges of frame/field numbers while discarding others\&. The ranges to keep have to be listed after the parts\-frames: keyword and be separated by commas\&. A range itself consists of a start and an end frame/field number\&. Numbering starts at 1\&. .sp If a start number is left out then it defaults to the previous range\*(Aqs end number\&. If there was no previous range then it defaults to the start of the file (see example 3)\&. .sp If an end number is left out then it defaults to the end of the source files which basically tells \fBmkvmerge\fR(1) to keep the rest (see example 3)\&. .sp Normally each range will be written to a new file\&. This can be changed so that consecutive ranges are written to the same file\&. For that the user has to prefix the start number with a +\&. This tells \fBmkvmerge\fR(1) not to create a new file and instead append the range to the same file the previous range was written to\&. Timecodes will be adjusted so that there will be no gap in the output file even if there was a gap in the two ranges in the input file\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br Note that \fBmkvmerge\fR(1) only makes decisions about splitting at key frame positions\&. This applies to both the start and the end of each range\&. So even if an end frame/field number is between two key frames \fBmkvmerge\fR(1) will continue outputting the frames up to but excluding the following key frame\&. .sp .5v .RE In example 1 \fBmkvmerge\fR(1) will create two files\&. The first will contain the content starting from the first key frame at or after 137 up to but excluding the first key frame at or after 258\&. The second file will contain the content starting from 548 until 1211\&. .sp In example 2 \fBmkvmerge\fR(1) will create only one file\&. This file will contain both the content starting from 733 until 912 and the content starting from 1592 until 2730\&. .sp In example 3 \fBmkvmerge\fR(1) will create two files\&. The first will contain the content from the start of the source files until 430\&. The second file will contain the content starting from 2512 until the end of the source files\&. .sp This mode considers only the first video track that is output\&. If no video track is output no splitting will occur\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br The numbers given with this argument are interpreted based on the number of Matroska blocks that are output\&. A single Matroska block contains either a full frame (for progressive content) or a single field (for interlaced content)\&. mkvmerge does not distinguish between those two and simply counts the number of blocks\&. For example: If one wanted to split after the 25th full frame with interlaced content one would have to use 50 (two fields per full frame) as the split point\&. .sp .5v .RE .RE .sp .RS 4 .ie n \{\ \h'-04' 6.\h'+01'\c .\} .el \{\ .sp -1 .IP " 6." 4.2 .\} Splitting after specific frames/fields\&. .sp Syntax: \fB\-\-split\fR frames:\fIA\fR[,\fIB\fR[,\fIC\fR\&.\&.\&.]] .sp Example: \-\-split frames:120,237,891 .sp The parameters \fIA\fR, \fIB\fR, \fIC\fR etc must all be positive integers\&. Numbering starts at 1\&. The list of frame/field numbers is separated by commas\&. After the input stream has reached the current split point\*(Aqs frame/field number a new file is created\&. Then the next split point given in this list is used\&. .sp The \*(Aqframes:\*(Aq prefix must not be omitted\&. .sp This mode considers only the first video track that is output\&. If no video track is output no splitting will occur\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br The numbers given with this argument are interpreted based on the number of Matroska blocks that are output\&. A single Matroska block contains either a full frame (for progressive content) or a single field (for interlaced content)\&. mkvmerge does not distinguish between those two and simply counts the number of blocks\&. For example: If one wanted to split after the 25th full frame with interlaced content one would have to use 50 (two fields per full frame) as the split point\&. .sp .5v .RE .RE .sp .RS 4 .ie n \{\ \h'-04' 7.\h'+01'\c .\} .el \{\ .sp -1 .IP " 7." 4.2 .\} Splitting before specific chapters\&. .sp Syntax: \fB\-\-split\fR chapters:all or \fB\-\-split\fR chapters:\fIA\fR[,\fIB\fR[,\fIC\fR\&.\&.\&.]] .sp Example: \-\-split chapters:5,8 .sp The parameters \fIA\fR, \fIB\fR, \fIC\fR etc must all be positive integers\&. Numbering starts at 1\&. The list of chapter numbers is separated by commas\&. Splitting will occur right before the first key frame whose timecode is equal to or bigger than the start timecode for the chapters whose numbers are listed\&. A chapter starting at 0s is never considered for splitting and discarded silently\&. .sp The keyword all can be used instead of listing all chapter numbers manually\&. .sp The \*(Aqchapters:\*(Aq prefix must not be omitted\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br The Matroska file format supports arbitrary deeply nested chapter structures called \*(Aqedition entries\*(Aq and \*(Aqchapter atoms\*(Aq\&. However, this mode only considers the top\-most level of chapters across all edition entries\&. .sp .5v .RE .RE .sp この分割モードでは、出力ファイル名は通常の操作とは異なる扱いを受けます。このモードでは出力ファイル名は\fBprintf\fRのように\*(Aq%d\*(Aqというパターンを含むことができます。\*(Aq%02d\*(Aqのように幅指定を追加することもできます。出力ファイル名がこのパターンを含む場合、ファイル番号が適切なフォーマットで指定された位置に挿入されます。含まない場合、\*(Aq\-%03d\*(Aqというパターンがファイルの拡張子の直前に指定されたものとみなされ、例えば\*(Aq\-o output\&.mkv\*(Aqを指定した場合、\*(Aqoutput\-001\&.mkv\*(Aq等のファイル名に出力されます。拡張子が存在しない場合、\*(Aq\-%03d\*(Aqはファイル名の末尾に追加されます。 .RE .PP \fB\-\-link\fR .RS 4 分割された出力ファイルを相互に紐付けします。詳細はファイル紐付けのセクションを参照してください。 .RE .PP \fB\-\-link\-to\-previous\fR \fIsegment\-UID\fR .RS 4 最初の出力ファイルを\fIsegment\-UID\fRで指定したセグメントUIDに紐付けします。詳細はファイル紐付けのセクションを参照してください。 .sp If SID starts with = then its rest is interpreted as the name of a Matroska file whose segment UID is read and used\&. .RE .PP \fB\-\-link\-to\-next\fR \fIsegment\-UID\fR .RS 4 最後の出力ファイルを\fIsegment\-UID\fRで指定したセグメントUIDに紐付けします。詳細はファイル紐付けのセクションを参照してください。 .sp If SID starts with = then its rest is interpreted as the name of a Matroska file whose segment UID is read and used\&. .RE .PP \fB\-\-append\-mode\fR \fImode\fR .RS 4 ファイルを結合する際に、タイムコードがどのように計算されるかを決定します。パラメータ\fImode\fRは\*(Aqfile\*(Aq(デフォルト)、\*(Aqtrackの二つの値を取り得ます。 .sp mkvmergeが二つめのファイル(以後\*(Aqfile2\*(Aqと呼ぶ)のトラック(以後\*(Aqtrack2_1\*(Aqと呼ぶ)を、一つめのファイル(以後\*(Aqfile1\*(Aqと呼ぶ)のトラック(以後\*(Aqtrack1_1\*(Aqと呼ぶ)と結合する際、\*(Aqtrack2_1\*(Aqのタイムコードは一定量だけずらす必要があります。\*(Aqfile\*(Aqモードでは、ずらす量は\*(Aqfile1\*(Aqの中の\*(Aqtrack1_1\*(Aq以外のトラックを含む全てのトラックの中で一番大きいタイムコードの値になります。\*(Aqtrack\*(Aqモードでは、\*(Aqtrack1_1\*(Aqの中で一番大きいタイムコードの値になります。 .sp 残念ながら、mkvmergeはどちらのモードが適切であるか判断はできません。デフォルトは\*(Aqfile\*(Aqモードになっています。\*(Aqfile\*(Aqモードは独立に作られたファイル同士を結合する際、例えばAVI又はMP4ファイルを結合する際に、通常はより上手く働きます。\*(Aqtrack\*(Aqモードは、例えばVOBやEVOファイルなどの大きなファイルの一部がソースの場合より上手く働くかもしれません。 .sp 字幕トラックは\*(Aqtrack\*(Aqモードが指定された場合でも、常に\*(Aqfile\*(Aqが指定されたかのように処理されます。 .RE .PP \fB\-\-append\-to\fR \fISFID1:STID1:DFID1:DTID1\fR\fI[,\&.\&.\&.]\fR .RS 4 このオプションは、どのトラックがどのトラックに追加されるのかを制御します。ファイルID、トラックID、追加するファイルID、追加するトラックIDの4つのIDで一組の指定を構成します。最初のファイルIDとトラックIDの組み合わせは、追加される対象のトラックを指定します。次のファイルIDとトラックIDは、そのトラックに追加されるトラックを指定します。 .sp このオプションが指定されない場合、標準のマッピングが使用されます。この場合、前のファイルのトラックに、現在のファイルのトラックIDが同じであるトラックが追加されます。これにより、動画が二つのファイルに分割されており、かつ同じトラック数とトラックIDを持つ場合、\fBmkvmerge \-o output\&.mkv part1\&.mkv +part2\&.mkv\fRのようにして簡単に結合することができます。 .RE .PP \fB+\fR .RS 4 \*(Aq+\*(Aq一文字を指定すると、次に指定されたファイルは追加ではなく結合されます。\*(Aq+\*(Aqは次のファイル名の直前に置くこともできます。よって、次の2つのコマンドは等価です。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o full\&.mkv file1\&.mkv + file2\&.mkv $ mkvmerge \-o full\&.mkv file1\&.mkv +file2\&.mkv .fi .if n \{\ .RE .\} .RE .PP \fB[\fR \fIfile1\fR \fIfile2\fR \fB]\fR .RS 4 If multiple file names are contained in a pair of square brackets then the second and all following files will be appended to the first file named within the brackets\&. .sp This is an alternative syntax to using \*(Aq+\*(Aq between the file names\&. Therefore the following two commands are equivalent: .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o full\&.mkv file1\&.mkv + file2\&.mkv $ mkvmerge \-o full\&.mkv \*(Aq[\*(Aq file1\&.mkv file2\&.mkv \*(Aq]\*(Aq .fi .if n \{\ .RE .\} .RE .PP \fB=\fR .RS 4 通常mkvmergeは、入力ファイルと同じディレクトリにあり、同じ基底名を持ち、通し番号だけが異なるファイル(例:\*(AqVTS_01_1\&.VOB\*(Aq, \*(AqVTS_01_2\&.VOB\*(Aq, \*(AqVTS_01_3\&.VOB\*(Aq etc)を検索し、それらのファイル全てを、まるで1つの大きなファイルへと連結されているかのように扱います。この\*(Aq=\*(Aq一文字のオプションを使うと、mkvmergeはそういった追加ファイルを検索しません。 .sp \*(Aq=\*(Aqは次のファイル名の直前に置くこともできます。よって、次の2つのコマンドは等価です。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o full\&.mkv = file1\&.mkv $ mkvmerge \-o full\&.mkv =file1\&.mkv .fi .if n \{\ .RE .\} .RE .PP \fB(\fR \fIfile1\fR \fIfile2\fR \fB)\fR .RS 4 複数のファイル名が括弧の中に含まれている場合、それらのファイルは、各ファイルの内容によって順々に構成される1つの大きなファイルへと連結されているかのように扱われます。 .sp これは、例えばDVDのVOBファイルやMPEGトランスポートストリーム等のために使用することができます。通常AVIやMP4のようなスタンドアローンのファイルの場合ですが、各ファイルが自身のヘッダを一通り含んでいる場合には使用することができません。 .sp ファイル名を括弧で括るのは、オプション\fB=\fRで説明されているように同じ基底名を持つファイルを\fBmkvmerge\fR(1)に検索させない効果もあります。 よって、これらの2つのコマンドラインは同値です: .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o out\&.mkv = file\&.mkv $ mkvmerge \-o out\&.mkv \*(Aq(\*(Aq file\&.mkv \*(Aq)\*(Aq .fi .if n \{\ .RE .\} .sp いくつか注意事項があります: .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} 開く括弧の後と閉じる括弧の前の両方に空白が必要です。 .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} 括弧内の全てのパラメータはファイル名として解釈されます。よって、この論理上のファイルに適用される全てのオプションは、開く括弧の前に記述する必要があります。 .RE .sp .RS 4 .ie n \{\ \h'-04' 3.\h'+01'\c .\} .el \{\ .sp -1 .IP " 3." 4.2 .\} 括弧を特殊文字として扱うシェルもあります。よって、上の例で示されているように括弧をエスケープするかクォーテーションで囲む必要があります。 .RE .RE .SS "添付ファイルのサポート(グローバルオプションの続き)" .PP \fB\-\-attachment\-description\fR \fIdescription\fR .RS 4 次の添付ファイルを説明するプレーンテキストを指定します。次の\fB\-\-attach\-file\fRオプション又は\fB\-\-attach\-file\-once\fRオプションで指定した添付ファイルに適用されます。 .RE .PP \fB\-\-attachment\-mime\-type\fR \fIMIME type\fR .RS 4 次の添付ファイルのMIMEタイプを指定します。\fB\-\-attach\-file\fR及び\fB\-\-attach\-file\-once\fRオプションに適用されます。公式に認知されているMIMEタイプは例えば\m[blue]\fBIANAのホームページ\fR\m[]\&\s-2\u[2]\d\s+2に掲載されています。MIMEタイプは添付ファイルに必須です。 .RE .PP \fB\-\-attachment\-name\fR \fIname\fR .RS 4 この添付ファイルの、出力ファイル内での名前を指定します。このオプションが指定されなかった場合、\fB\-\-attach\-file\fRまたは\fB\-\-attach\-file\-once\fRで指定されたファイル名がそのまま使用されます。 .RE .PP \fB\-\-attach\-file\fR \fIfile\-name\fR, \fB\-\-attach\-file\-once\fR \fIfile\-name\fR .RS 4 Matroskaファイルの内部に添付ファイルを作成します。これらのオプションを使用するには、MIMEタイプをこれらのオプションより前に指定しなければなりません。二つのオプションの違いは、出力ファイルを分割する際に、\fB\-\-attach\-file\fRでは全ての出力ファイルに添付されますが、\fB\-\-attach\-file\-once\fRでは最初に作成されたファイルにしか添付されない点です。分割が使用されない場合、2つは等価です。 .sp \fBmkvextract\fR(1)でMatroskaファイルから添付ファイルを抽出することができます。 .RE .SS "各入力ファイルに指定できるオプション" .PP \fB\-a\fR, \fB\-\-audio\-tracks\fR \fI[!]\fR\fIn,m,\&.\&.\&.\fR .RS 4 オーディオトラック\fIn\fR、\fIm\fR\&...をコピーします。番号は\fB\-\-identify\fRオプションで得られるトラックIDです。これは単純にトラック番号を示すものではありません(トラックIDのセクションを参照してください)。デフォルト: 全てのオーディオトラックをコピーします。 .sp Instead of track IDs you can also provide ISO 639\-2 language codes\&. This will only work for source files that provide language tags for their tracks\&. .sp Default: copy all tracks of this kind\&. .sp If the IDs are prefixed with ! then the meaning is reversed: copy all tracks of this kind but the ones listed after the !\&. .RE .PP \fB\-d\fR, \fB\-\-video\-tracks\fR \fI[!]\fR\fIn,m,\&.\&.\&.\fR .RS 4 ビデオトラック\fIn\fR、\fIm\fR\&...をコピーします。数字は\fB\-\-identify\fRオプションで得られるトラックIDです。これは単純にトラック番号を示すものではありません(トラックIDのセクションを参照してください)。 デフォルト: 全てのビデオトラックをコピーします。 .sp Instead of track IDs you can also provide ISO 639\-2 language codes\&. This will only work for source files that provide language tags for their tracks\&. .sp If the IDs are prefixed with ! then the meaning is reversed: copy all tracks of this kind but the ones listed after the !\&. .RE .PP \fB\-s\fR, \fB\-\-subtitle\-tracks\fR \fI[!]\fR\fIn,m,\&.\&.\&.\fR .RS 4 字幕トラック\fIn\fR、\fIm\fR\&...をコピーします。番号は\fB\-\-identify\fRオプションで得られるトラックIDです。これは単純にトラック番号を示すものではありません(トラックIDのセクションを参照してください)。デフォルト: 全ての字幕トラックをコピーします。 .sp Instead of track IDs you can also provide ISO 639\-2 language codes\&. This will only work for source files that provide language tags for their tracks\&. .sp If the IDs are prefixed with ! then the meaning is reversed: copy all tracks of this kind but the ones listed after the !\&. .RE .PP \fB\-b\fR, \fB\-\-button\-tracks\fR \fI[!]\fR\fIn,m,\&.\&.\&.\fR .RS 4 ボタントラック\fIn\fR、\fIm\fR\&...をコピーします。番号は\fB\-\-identify\fRオプションで得られるトラックIDです。これは単純にトラック番号を示すものではありません(トラックIDのセクションを参照してください)。デフォルト: 全てのボタントラックをコピーします。 .sp Instead of track IDs you can also provide ISO 639\-2 language codes\&. This will only work for source files that provide language tags for their tracks\&. .sp If the IDs are prefixed with ! then the meaning is reversed: copy all tracks of this kind but the ones listed after the !\&. .RE .PP \fB\-\-track\-tags\fR \fI[!]\fR\fIn,m,\&.\&.\&.\fR .RS 4 トラック\fIn\fR、\fIm\fR\&...のタグをコピーします。番号は\fB\-\-identify\fRオプションで得られるトラックIDです。これは単純にトラック番号を示すものではありません(トラックIDのセクションを参照してください)。デフォルト: 全てのトラックのタグをコピーします。 .sp もしIDにプレフィックス!がついていた場合は、意味が逆になります:!の後に列挙されたIDを除く全てをコピーします。 .RE .PP \fB\-m\fR, \fB\-\-attachments\fR \fI[!]\fR\fIn\fR\fI[:all|first]\fR\fI,m\fR\fI[:all|first]\fR\fI,\&.\&.\&.\fR .RS 4 IDが\fIn\fR、\fIm\fR\&...の添付ファイルを全ての、または最初の出力ファイルにコピーします。各IDの後ろには、\*(Aq:all\*(Aq(デフォルト)又は\*(Aq:first\*(Aqを指定することができます。出力ファイル分割が有効の場合、\*(Aq:all\*(AqをつけたIDの添付ファイルは全ての出力ファイルにコピーされ、\*(Aq:first\*(Aqをつけた場合は最初の出力ファイルにのみコピーされます。分割が有効でない場合は二つは同等です。 .sp デフォルトでは、全ての添付ファイルが全ての出力ファイルにコピーされます。 .sp もしIDにプレフィックス!がついていた場合は、意味が逆になります:!の後に列挙されたIDを除く全てをコピーします。 .RE .PP \fB\-A\fR, \fB\-\-no\-audio\fR .RS 4 このファイルからオーディオトラックをコピーしません。 .RE .PP \fB\-D\fR, \fB\-\-no\-video\fR .RS 4 このファイルからビデオトラックをコピーしません。 .RE .PP \fB\-S\fR, \fB\-\-no\-subtitles\fR .RS 4 このファイルから字幕トラックをコピーしません。 .RE .PP \fB\-B\fR, \fB\-\-no\-buttons\fR .RS 4 このファイルからボタントラックをコピーしません。 .RE .PP \fB\-T\fR, \fB\-\-no\-track\-tags\fR .RS 4 このファイルからオーディオトラックをコピーしません。 .RE .PP \fB\-\-no\-chapters\fR .RS 4 このファイルからチャプタをコピーしません。 .RE .PP \fB\-M\fR, \fB\-\-no\-attachments\fR .RS 4 このファイルから添付ファイルをコピーしません。 .RE .PP \fB\-\-no\-global\-tags\fR .RS 4 このファイルからグローバルタグを引き継ぎません。 .RE .PP \fB\-\-chapter\-charset\fR \fIcharacter\-set\fR .RS 4 ソースファイルに含まれるチャプタ情報ををUTF\-8に変換する際の文字コードを指定します。\fBmkvmerge\fR(1)の文字コード変換については、テキストファイルと文字コードのセクションを参照してください。 .RE .PP \fB\-\-chapter\-language\fR \fIlanguage\-code\fR .RS 4 各チャプタエントリのISO639\-2言語コードを指定します。このオプションはソースファイルがチャプタは含みますが、チャプタの言語情報を含まない場合(例:MP4、OGMファイル)に使用されます。 .RE .PP \fB\-y\fR, \fB\-\-sync\fR \fITID:d\fR\fI[,o[/p]]\fR .RS 4 トラックIDが\fITID\fRのトラックのタイムコードを\fId\fRミリ秒だけ調整します。トラックIDは\fB\-\-identify\fRオプションで得られるものと同じです(トラックIDのセクションを参照してください)。 .sp \fIo\fR/\fIp\fR: タイムスタンプを\fIo\fR/\fIp\fRの割合で調整し、リニアドリフトを修正します。\fIp\fRが省略された場合、デフォルトで1が使用されます。\fIo\fR及び\fIp\fRには小数を指定できます。 .sp デフォルト: マニュアル同期修正は行われません(\fId\fR = \fB0\fR かつ\fIo\fR = \fB1\&.0\fRの場合と同じです)。 .sp このオプションは異るトラックIDを指定することで複数の入力トラックに対して使用することができます。 .RE .PP \fB\-\-cues\fR \fITID:none|iframes|all\fR .RS 4 指定されたトラックについて、どのトラックCUE(インデックス)エントリが作成されるのかを指定します(トラックIDのセクションを参照)。\*(Aqnone\*(AqはCUEエントリを作成しません。\*(Aqiframesは前方参照及び後方参照を含まないブロック(ビデオトラックでは I frame)のみがCUEシートに挿入されます。\*(Aqall\*(Aqでは\fBmkvmerge\fR(1)は全てのブロックに対してCUEエントリを作成し、非常に大きなファイルを出力するでしょう。 .sp The default is \*(Aqiframes\*(Aq for video and subtitle tracks and \*(Aqnone\*(Aq for audio tracks\&. See also option \fB\-\-no\-cues\fR which inhibits the creation of cue entries regardless of the \fB\-\-cues\fR options used\&. .sp このオプションは異るトラックIDを指定することで複数の入力トラックに対して使用することができます。 .RE .PP \fB\-\-default\-track\fR \fITID\fR\fI[:bool]\fR .RS 4 省略可能な引数\fIbool\fRが指定されなかった場合、指定されたトラックに\*(Aqデフォルト\*(Aqフラグを付与します(トラックIDのセクションも参照)。ユーザが明示的にトラックを選択しなかった場合、プレイヤーは\*(Aqデフォルト\*(Aqフラグの付いたトラックを優先的に再生します。各トラックの種類(オーディオ、ビデオ、字幕、ボタン)ごとに、一つだけのトラックにだけ\*(Aqデフォルト\*(Aqフラグは付与できます。もし、デフォルトフラグをどのトラックにも付けたくない場合は、全てのトラックで\fIbool\fRを\fB0\fRにすれば可能です。 .sp このオプションは異るトラックIDを指定することで複数の入力トラックに対して使用することができます。 .RE .PP \fB\-\-forced\-track\fR \fITID\fR\fI[:bool]\fR .RS 4 省略可能な引数\fIbool\fRが指定されなかった場合、指定されたトラックに\*(Aq強制表示\*(Aqフラグを付与します(トラックIDのセクションも参照。)プレーヤはこのフラグが\fB1\fRに設定されている全てのトラックを再生しなければなりません。 .sp このオプションは異るトラックIDを指定することで複数の入力トラックに対して使用することができます。 .RE .PP \fB\-\-blockadd\fR \fITID:level\fR .RS 4 指定したトラックで、レベル\fIlevel\fRまでのBlockAdditionを保持します。デフォルトでは全て保持します。このオプションはWAVPACK4などの特定のコーデックにのみ有効です。 .RE .PP \fB\-\-track\-name\fR \fITID:name\fR .RS 4 指定したトラックのトラック名を\fIname\fRにします(トラックIDのセクションも参照)。 .RE .PP \fB\-\-language\fR \fITID:language\fR .RS 4 指定したトラックの言語を設定します(トラックIDのセクションも参照)。ISO639\-2 言語コード及び ISO639\-1 国別コードが使用できます。国別コードは言語コードへ自動的に変換されます。ISO639\-2 に含まれる全てのコードは\fB\-\-list\-languages\fRオプションで一覧できます。 .sp このオプションは異るトラックIDを指定することで複数の入力トラックに対して使用することができます。 .RE .PP \fB\-t\fR, \fB\-\-tags\fR \fITID:file\-name\fR .RS 4 \fIfile\-name\fRで指定したファイルからグローバルタグを読み込みます。詳細はタグのセクションを参照してください。 .RE .PP \fB\-\-aac\-is\-sbr\fR \fITID\fR\fI[:0|1]\fR .RS 4 \fBmkvmerge\fR(1)にIDが\fITID\fRのトラックがSBR AAC (別名HE\-AAC又はAAC+)であることを教えます。このオプションは、 a) ソースファイルが(Matroskaファイルでは\fIなく\fR)AACファイルでありかつ b) AACファイルがSBR AACデータを含む場合に必要です。このスイッチが存在する理由は、通常のAACファイルとSBR AACファイルを自動的に区別することは、AACフレームを完全にデコードしなければ技術的に不可能であるためです。AACはいくつかの特許問題を抱えているため、\fBmkvmerge\fR(1)は将来的にもこのデコードステージを含むことはありません。よって、SBR AACにはこのスイッチが必須となります。このスイッチが指定されなかった場合、出力ファイルは正常に再生ができなくなるか、完全に再生不能になるでしょう。 .sp ソースファイルがMatroskaファイルの場合、CodecIDによりSBR AACを検知できます。しかし、CodecIDが不正な場合、このスイッチで修正することができます。 .sp もし、mkvmergeがAACファイルを間違ってSBRと認識してしまった場合、トラックIDに\*(Aq:0\*(Aqを指定できます。 .RE .PP \fB\-\-reduce\-to\-core\fR \fITID\fR .RS 4 Some audio codecs have a lossy core and optional extensions that implement lossless decoding\&. This option tells \fBmkvmerge\fR(1) to only copy the core but not the extensions\&. By default \fBmkvmerge\fR(1) copies both the core and the extensions\&. .sp Currently only DTS tracks are affected by this option\&. TrueHD tracks that contain an embedded AC\-3 core are instead presented as two separate tracks for which the user can select which track to copy\&. For DTS such a scheme would not work as the HD extensions cannot be decoded by themselves \(en unlike the TrueHD data\&. .RE .PP \fB\-\-timecodes\fR \fITID:file\-name\fR .RS 4 指定したトラックIDのタイムコードを、\fIfile\-name\fRから読み込みます。これらのタイムコードは\fBmkvmerge\fR(1)が通常計算するタイムコードを強制的に上書きします。外部タイムコードファイルのセクションを参照してください。 .RE .PP \fB\-\-default\-duration\fR \fITID:x\fR .RS 4 指定したトラックの default duration を強制的に設定します。トラックのトラックのタイムコードも、 default duration に合うように変更されます。引数\fIx\fRは\*(Aqs\*(Aq、\*(Aqms\*(Aq、\*(Aqus\*(Aq、\*(Aqns\*(Aq、\*(Aqfps\*(Aq、p\*(Aq。\*(Aqiのうちどれか一つを後置されていなければなりません。それぞれ、 default duration は秒、ミリ秒、マイクロ秒、ナノ秒、\*(Aqfps\*(Aq、1秒あたりのプログレッシブフレーム、1秒あたりのインターレスのフレーム数単位で指定されます。\fIx\fRは小数または分数で指定できます。 .sp デフォルトのフレーム持続時間が指定されなかった場合は、mkvmergeはそのトラックのデフォルトのフレーム持続時間を、コンテナと、AVC/h\&.264やMPEG\-2のような特定のトラックタイプの場合はエンコードされたビットストリームから取得しようと試みます。 .sp このオプションは、外部タイムコードファイルを使用せずにビデオトラックのFPSを変更するのにも使えます。 .RE .PP \fB\-\-fix\-bitstream\-timing\-information\fR \fITID\fR\fI[:0|1]\fR .RS 4 Normally \fBmkvmerge\fR(1) does not change the timing information (frame/field rate) stored in the video bitstream\&. With this option that information is adjusted to match the container timing information\&. The container timing information can come from various sources: from the command line (see option \fB\-\-default\-duration\fR), the source container or derived from the bitstream\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br This has only been implemented for AVC/h\&.264 video tracks so far\&. .sp .5v .RE .RE .PP \fB\-\-nalu\-size\-length\fR \fITID:n\fR .RS 4 NALUサイズ長を\fIn\fRバイトに強制設定します。このパラメータはAVC/h\&.264エレメンタリストリームパケタイザが使用される場合にのみ使用されます。何も指定しなかった時のデフォルト値は4バイトですが、65535バイト以上のフレームやスライスが含まれていないファイルも存在します。そのようなファイルでは、このパラメータを使用してNALUサイズ長を2に減らすことができます。 .RE .PP \fB\-\-compression\fR \fITID:n\fR .RS 4 Selects the compression method to be used for the track\&. Note that the player also has to support this method\&. Valid values are \*(Aqnone\*(Aq, \*(Aqzlib\*(Aq and \*(Aqmpeg4_p2\*(Aq/\*(Aqmpeg4p2\*(Aq\&. .sp \*(Aqmpeg4_p2\*(Aq/\*(Aqmpeg4p2\*(Aq圧縮法は、 MPEG4 part2 ビデオトラックにのみ適用できる、\*(Aqheader removal\*(Aqと呼ばれる特殊な圧縮法です。 .sp The default for some subtitle types is \*(Aqzlib\*(Aq compression\&. This compression method is also the one that most if not all playback applications support\&. Support for other compression methods other than \*(Aqnone\*(Aq is not assured\&. .RE .SS "ビデオトラックにのみ適用されるオプション" .PP \fB\-f\fR, \fB\-\-fourcc\fR \fITID:FourCC\fR .RS 4 FourCCを指定した値に強制設定します。ビデオトラックが\*(AqMS互換モード\*(Aqである場合にのみ有効です。 .RE .PP \fB\-\-display\-dimensions\fR \fITID:widthxheight\fR .RS 4 Matroskaファイルは再生時の画像スケールを決定するための二つの値を持ちます。表示幅と表示高さです。これらの値をこのオプションで、例えば\*(Aq1:640x480\*(Aqのように指定できます。 .sp これらの値を設定する別の方法として、\fB\-\-aspect\-ratio\fR又は\fB\-\-aspect\-ratio\-factor\fRオプションが使用できます(下記参照)。これらのオプションは互いに排他的です。 .RE .PP \fB\-\-aspect\-ratio\fR \fITID:ratio|width/height\fR .RS 4 Matroskaファイルは再生時の画像スケールを決定するための二つの値を持ちます。表示幅と表示高さです。これらの値をこのオプションで、例えば\*(Aq1:640x480\*(Aqのように指定できます。このオプションを指定すると、\fBmkvmerge\fR(1)は自動的に表示幅及び表示高さを、画像の元の幅と高さ、そして指定されたアスペクト比から自動的に計算します。アスペクト比は、小数\fIratio\fRまたは分数\*(Aq\fIwidth\fR/\fIheight\fR\*(Aq(例: \*(Aq16/9\*(Aq)の形式で指定できます。 .sp これらの値を設定する別の方法として、\fB\-\-aspect\-ratio\-factor\fR又は\fB\-\-display\-dimensions\fRオプションが使用できます(上記及び下記参照)。これらのオプションは互いに排他的です。 .RE .PP \fB\-\-aspect\-ratio\-factor\fR \fITID:factor|n/d\fR .RS 4 アスペクト比を設定するもうひとつの方法は、元のアスペクト比からの係数を指定する方法です。元のアスペクト比に、\fIfactor\fRを乗じたものが新しいアスペクト比として使用されます。 .sp これらの値を設定する別の方法として、\fB\-\-aspect\-ratio\fR又は\fB\-\-display\-dimensions\fRオプションが使用できます(上記参照)。これらのオプションは互いに排他的です。 .RE .PP \fB\-\-cropping\fR \fITID:left,top,right,bottom\fR .RS 4 ビデオトラックのピクセルクロッピングのパラメータを指定した値に設定します。 .RE .PP \fB\-\-colour\-matrix\fR \fITID:n\fR .RS 4 Sets the matrix coefficients of the video used to derive luma and chroma values from red, green and blue color primaries\&. The parameter \fIn\fR is an integer rangeing from \fB0\fR and \fB10\fR\&. .sp Valid values and their meaning are: .sp \fB0\fR: GBR, \fB1\fR: BT709, \fB2\fR: unspecified, \fB3\fR: reserved, \fB4\fR: FCC, \fB5\fR: BT470BG, \fB6\fR: SMPTE 170M, \fB7\fR: SMPTE 240M, \fB8\fR: YCOCG, \fB9\fR: BT2020 non\-constant luminance, \fB10\fR: BT2020 constant luminance .RE .PP \fB\-\-colour\-bits\-per\-channel\fR \fITID:n\fR .RS 4 Sets the number of coded bits for a colour channel\&. A value of \fB0\fR indicates that the number of bits is unspecified\&. .RE .PP \fB\-\-chroma\-subsample\fR \fITID:hori,vert\fR .RS 4 The amount of pixels to remove in the Cr and Cb channels for every pixel not removed horizontally/vertically\&. .sp Example: For video with 4:2:0 chroma subsampling, the parameter should be set to \fITID\fR:\fB1\fR,\fB1\fR\&. .RE .PP \fB\-\-cb\-subsample\fR \fITID:hori,vert\fR .RS 4 The amount of pixels to remove in the Cb channel for every pixel not removed horizontally/vertically\&. This is additive with \fB\-\-chroma\-subsample\fR\&. .sp Example: For video with 4:2:1 chroma subsampling, the parameter \fB\-\-chroma\-subsample\fR should be set to \fITID\fR:\fB1\fR,\fB0\fR and Cb\-subsample should be set to \fITID\fR:\fB1\fR,\fB0\fR\&. .RE .PP \fB\-\-chroma\-siting\fR \fITID:hori,vert\fR .RS 4 Sets how chroma is sited horizontally/vertically (\fB0\fR: unspecified, \fB1\fR: top collocated, \fB2\fR: half)\&. .RE .PP \fB\-\-colour\-range\fR \fITID:n\fR .RS 4 Sets the clipping of the color ranges (\fB0\fR: unspecified, \fB1\fR: broadcast range, \fB2\fR: full range (no clipping), \fB3\fR: defined by MatrixCoefficients/TransferCharacteristics)\&. .RE .PP \fB\-\-colour\-transfer\-characteristics\fR \fITID:n\fR .RS 4 The transfer characteristics of the video\&. .sp Valid values and their meaning are: .sp \fB0\fR: reserved, \fB1\fR: ITU\-R BT\&.709, \fB2\fR: unspecified, \fB3\fR: reserved, \fB4\fR: gamma 2\&.2 curve, \fB5\fR: gamma 2\&.8 curve, \fB6\fR: SMPTE 170M, \fB7\fR: SMPTE 240M, \fB8\fR: linear, \fB9\fR: log, \fB10\fR: log sqrt, \fB11\fR: IEC 61966\-2\-4, \fB12\fR: ITU\-R BT\&.1361 extended colour gamut, \fB13\fR: IEC 61966\-2\-1, \fB14\fR: ITU\-R BT\&.2020 10 bit, \fB15\fR: ITU\-R BT\&.2020 12 bit, \fB16\fR: SMPTE ST 2084, \fB17\fR: SMPTE ST 428\-1; \fB18\fR: ARIB STD\-B67 (HLG) .RE .PP \fB\-\-colour\-primaries\fR \fITID:n\fR .RS 4 Sets the colour primaries of the video\&. .sp Valid values and their meaning are: .sp \fB0\fR: reserved, \fB1\fR: ITU\-R BT\&.709, \fB2\fR: unspecified, \fB3\fR: reserved, \fB4\fR: ITU\-R BT\&.470M, \fB5\fR: ITU\-R BT\&.470BG, \fB6\fR: SMPTE 170M, \fB7\fR: SMPTE 240M, \fB8\fR: FILM, \fB9\fR: ITU\-R BT\&.2020, \fB10\fR: SMPTE ST 428\-1, \fB22\fR: JEDEC P22 phosphors .RE .PP \fB\-\-max\-content\-light\fR \fITID:n\fR .RS 4 Sets the maximum brightness of a single pixel (Maximum Content Light Level) in candelas per square meter (cd/m\(S2)\&. The value of \fIn\fR should be a non\-negtive integer\&. .RE .PP \fB\-\-max\-frame\-light\fR \fITID:n\fR .RS 4 Sets the maximum brightness of a single full frame (Maximum Frame\-Average Light Level) in candelas per square meter (cd/m\(S2)\&. The value of \fIn\fR should be a non\-negtive integer\&. .RE .PP \fB\-\-chromaticity\-coordinates\fR \fITID:red\-x,red\-y,green\-x,green\-y,blue\-x,blue\-y\fR .RS 4 Sets the red/green/blue chromaticity coordinates as defined by CIE 1931\&. .RE .PP \fB\-\-white\-colour\-coordinates\fR \fITID:x,y\fR .RS 4 Sets the white colour chromaticity coordinates as defined by CIE 1931\&. .RE .PP \fB\-\-max\-luminance\fR \fITID:float\fR .RS 4 Sets the maximum luminance in candelas per square meter (cd/m\(S2)\&. The value should be less than 9999\&.99\&. .RE .PP \fB\-\-min\-luminance\fR \fITID:float\fR .RS 4 Sets the mininum luminance in candelas per square meter (cd/m\(S2)\&. The value should be less than 999\&.9999\&. .RE .PP \fB\-\-field\-order\fR \fITID:n\fR .RS 4 Sets the field order for the video track with the track ID \fITID\fR\&. The order must be one of the following numbers: .sp \fB0\fR: progressive; \fB1\fR: interlaced with top field displayed first and top field stored first; \fB2\fR: undetermined field order; \fB6\fR: interlaced with bottom field displayed first and bottom field stored first; \fB9\fR: interlaced with bottom field displayed first and top field stored first; \fB14\fR: interlaced with top field displayed first and bottom field stored first .RE .PP \fB\-\-stereo\-mode\fR \fITID:n|keyword\fR .RS 4 トラックIDが\fITID\fRのビデオトラックのステレオモードを設定します。ステレオモードは、\fB0\fR~\fB14\fRの数字\fIn\fR、または以下のキーワードのうちの1つを指定することができます: .sp \*(Aqmono\*(Aq, \*(Aqside_by_side_left_first\*(Aq, \*(Aqtop_bottom_right_first\*(Aq, \*(Aqtop_bottom_left_first\*(Aq, \*(Aqcheckerboard_right_first\*(Aq, \*(Aqcheckerboard_left_first\*(Aq, \*(Aqrow_interleaved_right_first\*(Aq, \*(Aqrow_interleaved_left_first\*(Aq, \*(Aqcolumn_interleaved_right_first\*(Aq, \*(Aqcolumn_interleaved_left_first\*(Aq, \*(Aqanaglyph_cyan_red\*(Aq, \*(Aqside_by_side_right_first\*(Aq, \*(Aqanaglyph_green_magenta\*(Aq, \*(Aqboth_eyes_laced_left_first\*(Aq, \*(Aqboth_eyes_laced_right_first\*(Aq\&. .RE .SS "テキスト字幕トラックにのみ適用されるオプション" .PP \fB\-\-sub\-charset\fR \fITID:character\-set\fR .RS 4 指定したIDの示すトラックのUTF\-8字幕をUTF\-8へ変換する際の文字コードを指定します。デフォルトでは、現在のロケールの設定が使用されます。\fBmkvmerge\fR(1)の文字コード変換については、テキストファイルと文字コードのセクションを参照してください。 .sp このオプションは異るトラックIDを指定することで複数の入力トラックに対して使用することができます。 .RE .SS "その他のオプション" .PP \fB\-i\fR, \fB\-\-identify\fR \fIfile\-name\fR .RS 4 \fBmkvmerge\fR(1)に、単一のファイルを探査してその種類と、ファイルに含まれるトラック及びそのトラックIDを表示させます。このオプションを指定した場合、他に指定できるのはファイル名のみです。 .sp The output format used for the result can be changed with the option \-\-identification\-format\&. .RE .PP \fB\-J\fR \fIfile\-name\fR .RS 4 This is a convenient alias for "\-\-identification\-format json \-\-identify file\-name"\&. .RE .PP \fB\-I\fR, \fB\-\-identify\-verbose\fR \fIfile\-name\fR .RS 4 \fBmkvmerge\fR(1)に、単一のファイルを探査してその種類と、ファイルに含まれるトラック及びそのトラックIDを表示させます。このオプションを指定した場合、他に指定できるのはファイル名のみです。 .sp The output will also contain properties for all items found, e\&.g\&. the file title or the track language\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br This option is deprecated\&. It will be removed in 2018\&. .sp .5v .RE .RE .PP \fB\-F\fR, \fB\-\-identification\-format\fR \fIformat\fR .RS 4 Determines the output format used by the \-\-identify option\&. The following formats are supported: text (the default if this option isn\*(Aqt used), verbose\-text and json\&. .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} The text format is short and human\-readable\&. It consists of one line per item found (container, tracks, attachments etc\&.)\&. .sp This format is not meant to be parsed\&. The output will be translated into the language \fBmkvmerge\fR(1) uses (see also \-\-ui\-language)\&. .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} The verbose\-text format extends the text format with additional properties for each item\&. The extra information is surronded by square brackets\&. It consists of space\-saparated key/value pairs where keys and values are separated by a colon\&. .sp 各値は、テキスト中の特殊文字のエスケープについてのセクションで説明されているルールに従ってエスケープされます。 .sp This format is not meant to be parsed\&. The output will be translated into the language \fBmkvmerge\fR(1) uses (see also \-\-ui\-language)\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br This option is deprecated\&. It will be removed in 2018\&. .sp .5v .RE .RE .sp .RS 4 .ie n \{\ \h'-04' 3.\h'+01'\c .\} .el \{\ .sp -1 .IP " 3." 4.2 .\} The json format outputs a machine\-readable JSON representation\&. This format follows the JSON schema described in the file \m[blue]\fBmkvmerge\-identification\-output\-schema\&.json\fR\m[]\&\s-2\u[3]\d\s+2\&. .RE .RE .PP \fB\-\-probe\-range\-percentage\fR \fIpercentage\fR .RS 4 File types such as MPEG program and transport streams (\&.vob, \&.m2ts) require parsing a certain amount of data in order to detect all tracks contained in the file\&. This amount is 0\&.3% of the source file\*(Aqs size or 10 MB, whichever is higher\&. .sp If tracks are known to be present but not found then the percentage to probe can be changed with this option\&. The minimum of 10 MB is built\-in and cannot be changed\&. .RE .PP \fB\-l\fR, \fB\-\-list\-types\fR .RS 4 サポートされている入力ファイルの種類を列挙します。 .RE .PP \fB\-\-list\-languages\fR .RS 4 \fB\-\-language\fRオプションに指定できる、ISO639\-2言語コードの一覧を出力します。 .RE .PP \fB\-\-priority\fR \fIpriority\fR .RS 4 \fBmkvmerge\fR(1)を実行する際のプロセス優先度を指定します。指定できるのは\*(Aqlowest\*(Aq、\*(Aqlower\*(Aq、\*(Aqnormal\*(Aq、\*(Aqhigher\*(Aq、及び\*(Aqhighest\*(Aqです。指定されない場合、\*(Aqnormal\*(Aqが使用されます。UNIX系のシステムでは、\fBmkvmerge\fR(1)は\fBnice\fR(2)関数を使用するので、\*(Aqhigher\*(Aq及び\*(Aqhighest\*(Aqはスーパーユーザのみが使用可能です。Windowsでは全てのユーザが全優先度を使用可能です。 .sp Selecting \*(Aqlowest\*(Aq also causes \fBmkvmerge\fR(1) to select idle I/O priority in addition to the lowest possible process priority\&. .RE .PP \fB\-\-command\-line\-charset\fR \fIcharacter\-set\fR .RS 4 コマンドライン文字列の文字コードを指定します。デフォルトは、システムの現在のロケールの文字コードになります。この設定は\fB\-\-title\fR、\fB\-\-track\-name\fR、及び\fB\-\-attachment\-description\fRの三つのオプションの引数に影響します。 .RE .PP \fB\-\-output\-charset\fR \fIcharacter\-set\fR .RS 4 出力する文字コードを指定します。デフォルトは、システムの現在のロケールの文字コードになります。 .RE .PP \fB\-r\fR, \fB\-\-redirect\-output\fR \fIfile\-name\fR .RS 4 全てのメッセージをコンソールではなく\fIfile\-name\fRで指定したファイルに書き出します。出力リダイレクトによっても同じことが簡単にできますが、このオプションが必要な場合もあります。ターミナルがファイルに書き込む前に出力を処理してしまう場合などです。\fB\-\-output\-charset\fRによって指定された文字コードは尊重されます。 .RE .PP \fB\-\-ui\-language\fR \fIcode\fR .RS 4 Forces the translations for the language \fIcode\fR to be used (e\&.g\&. \*(Aqde_DE\*(Aq for the German translations)\&. Entering \*(Aqlist\*(Aq as the \fIcode\fR will cause the program to output a list of available translations\&. .RE .PP \fB\-\-debug\fR \fItopic\fR .RS 4 特定の機能のデバッグをオンにします。このオプションは開発者にのみ有用です。 .RE .PP \fB\-\-engage\fR \fIfeature\fR .RS 4 実験的機能をオンにします。利用可能な機能のリストは\fBmkvmerge \-\-engage list\fRで得られます。これらの機能は通常の状況で使用されることは意図されていません。 .RE .PP \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 \fB@\fR\fIoptions\-file\&.json\fR .RS 4 ファイル\fIoptions\-file\fRから追加のコマンドライン引数を読み込みます。詳細はオプションファイルのセクションを参照してください。 .RE .PP \fB\-\-capabilities\fR .RS 4 コンパイル時に組込まれたオプション機能を一覧表示して終了します。出力の一行目はバージョン情報になります。以降の全ての行は、その機能がコンパイルされていることを示す一単語のみを含みます。オプション機能の一覧を下に示します。 .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \*(AqFLAC\*(Aq \-\- 生FLACファイルの読み込み及び、他のコンテナ(例: Ogg、Matroskaなど)に格納されたFLACトラックの処理。 .RE .RE .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 コマンド書式情報を出力して終了します。 .RE .PP \fB\-V\fR, \fB\-\-version\fR .RS 4 バージョン情報を出力して終了します。 .RE .PP \fB\-\-check\-for\-updates\fR .RS 4 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)\&. .sp その後プログラムは、新しいリリースが入手可能ではなかった場合は終了コード0で、新しいリリースが入手可能であった場合は終了コード1で、エラーが発生した場合(例:アップデート情報を取得できなかった場合)は終了コード2で、それぞれ終了します。 .sp このオプションは、プログラムがlibcurlのサポートつきでビルドされた場合のみ使用できます。 .RE .SH "使用法" .PP 各ファイルについて、ユーザは\fBmkvmerge\fR(1)が取り出すべきトラックを選択できます。取り出されたトラックは、すべて\fB\-o\fRで指定されたファイルに書き出されます。既知の(サポート済の)入力ファイルフォーマットは\fB\-l\fRオプションで取得できます。 .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB重要\fR .ps -1 .br .PP コマンドラインオプションの順番は重要です。もしあなたが初心者なら、"オプションの順番"セクションを読んで下さい。 .sp .5v .RE .SH "オプションの順番" .PP いくつかのオプションでは、入力する順番が重要になります。オプションは2つに分類されます: .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} プログラム全体に影響し、どの入力ファイルにも関連付けられていないオプション。例えば、\fB\-\-command\-line\-charset\fR、\fB\-\-output\fR、\fB\-\-title\fRなどです。これらのオプションは、コマンドラインのどこに書いても構いません。 .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} 1つの入力ファイルのみ、もしくは入力ファイル中の1つのトラックのみに影響するオプション。これらのオプションは全て、コマンドラインでその後ろに続く入力ファイルに適用されます。同じ入力ファイル(または同じ入力ファイル中のトラック)に適用される全てのオプションは、その入力ファイルのファイル名の前に書きさえすれば、どんな順番でも構いません。1つの入力ファイルに適用されるオプションの例を挙げると、\fB\-\-no\-chapters\fRや\fB\-\-chapter\-charset\fRなどがあります。1つのトラックのみに適用されるオプションには、例えば\fB\-\-default\-duration\fRや\fB\-\-language\fRがあります。 .RE .PP オプションは左から右へと処理されます。もし同じスコープ内に1つのオプションが2回以上出てきた場合には、最後のものが使われます。よって、次の例ではタイトルは"Something else"に設定されます。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o output\&.mkv \-\-title \*(AqThis and that\*(Aq input\&.avi \-\-title \*(AqSomething else\*(Aq .fi .if n \{\ .RE .\} .PP 次の例は、違うスコープ内で使われているので\fB\-\-language\fRオプションを2回使ってもよいということを示しています。それらは同じトラックIDに適用されますが、違う入力ファイルに適用されるので違うスコープを持っているのです。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o output\&.mkv \-\-language 0:fre fran\(,cais\&.ogg \-\-language 0:deu deutsch\&.ogg .fi .if n \{\ .RE .\} .SH "例" .PP あなたは、 MyMovie\&.avi というファイルを持っていて、またオーディオトラックが別の、例えば \*(AqMyMovie\&.wav\*(Aqというファイルに入っているとします。あなたは、まず音声をOggVorbisでエンコードしたいと思います。 .sp .if n \{\ .RS 4 .\} .nf $ oggenc \-q4 \-oMyMovie\&.ogg MyMovie\&.wav .fi .if n \{\ .RE .\} .PP 数分後、ビデオとオーディオを結合できます。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o MyMovie\-with\-sound\&.mkv MyMovie\&.avi MyMovie\&.ogg .fi .if n \{\ .RE .\} .PP AVIファイルが既にオーディオトラックを持っていた場合(そしてそのフォーマットを\fBmkvmerge\fR(1)がサポートしていた場合)、そのトラックもコピーされます。これを避けるには、下のようにしてください。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o MyMovie\-with\-sound\&.mkv \-A MyMovie\&.avi MyMovie\&.ogg .fi .if n \{\ .RE .\} .PP ちょっと考えて、あなたはもうひとつのオーディオトラック(例えばオーディオコメンタリや吹替えなど)を\*(AqMyMovie\-add\-audio\&.wavにリッピングしました。再びエンコードして、新しいファイルにまとめます。 .sp .if n \{\ .RS 4 .\} .nf $ oggenc \-q4 \-oMyMovie\-add\-audio\&.ogg MyMovie\-add\-audio\&.wav $ mkvmerge \-o MM\-complete\&.mkv MyMovie\-with\-sound\&.mkv MyMovie\-add\-audio\&.ogg .fi .if n \{\ .RE .\} .PP 同じことは、次のようにしても可能です。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o MM\-complete\&.mkv \-A MyMovie\&.avi MyMovie\&.ogg MyMovie\-add\-audio\&.ogg .fi .if n \{\ .RE .\} .PP あとはmplayerを立ち上げて動画を楽しむだけです。もし、複数のオーディオトラック(もしかするとビデオトラックも)がある場合は、再生するトラックを\*(Aq\fB\-vid\fR\*(Aqと\*(Aq\fB\-aid\fR\*(Aqオプションでmplayerに指定できます。ゼロベースで、ビデオとオーディオの区別をしないIDを指定します。 .PP もし、オーディオトラックの同期をとる必要がある場合も、簡単にとることができます。まず、次のようにしてVorbisトラックのトラックIDを取得します。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-\-identify outofsync\&.ogg .fi .if n \{\ .RE .\} .PP 次に、このIDを使って、次のようなコマンドラインを実行します。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o goodsync\&.mkv \-A source\&.avi \-y 12345:200 outofsync\&.ogg .fi .if n \{\ .RE .\} .PP 上のようにすると、\*(Aqoutofsync\&.ogg\*(Aqに入っている、IDが \fB12345\fR のオーディオトラックの最初に200msの無音を挿入します。 .PP 最初は同期がとれているのにだんだんとずれていく動画もあります。このような動画には、全てのタイムコードに適用される遅れ係数を指定することができます。データは追加も削除もされないので、あまり大きな、またはあまりに小さな係数を指定するとまずい結果になるでしょう。例として、私が変換したある動画は、全長が\fB77340\fRフレームで、最終的に\fB0\&.2\fR秒ずれていました。\fB29\&.97fps\fRでは、\fB0\&.2\fRは約\fB6\fRフレームに相当します。よって、私は次のようなコマンドを実行しました。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o goodsync\&.mkv \-y 23456:0,77346/77340 outofsync\&.mkv .fi .if n \{\ .RE .\} .PP 結果は良好でした。 .PP 同期オプションは字幕にも同様に使用できます。 .PP テキスト字幕を生成するには、SubRipperのようなWindowsソフトウェアを使用するか、\fBtranscode\fR(1)のソースコードの、contrib/subrip\*(Aqディレクトリの中にあるsubripパッケージが使用できます。一般的なプロセスは以下の通りです。 .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} ソースから生字幕を抽出: .sp .if n \{\ .RS 4 .\} .nf $ tccat \-i /path/to/copied/dvd/ \-T 1 \-L | tcextract \-x ps1 \-t vob \-a 0x20 | subtitle2pgm \-o mymovie .fi .if n \{\ .RE .\} .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} 出力されたPGMイメージをgocrでテキスト化: .sp .if n \{\ .RS 4 .\} .nf $ pgm2txt mymovie .fi .if n \{\ .RE .\} .RE .sp .RS 4 .ie n \{\ \h'-04' 3.\h'+01'\c .\} .el \{\ .sp -1 .IP " 3." 4.2 .\} 出力されたテキストファイルを校正: .sp .if n \{\ .RS 4 .\} .nf $ ispell \-d american *txt .fi .if n \{\ .RE .\} .RE .sp .RS 4 .ie n \{\ \h'-04' 4.\h'+01'\c .\} .el \{\ .sp -1 .IP " 4." 4.2 .\} テキストファイルをSRTファイルに変換: .sp .if n \{\ .RS 4 .\} .nf $ srttool \-s \-w \-i mymovie\&.srtx \-o mymovie\&.srt .fi .if n \{\ .RE .\} .RE .PP 出力されたファイルを\fBmkvmerge\fR(1)の入力ファイルとして使用する: .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o mymovie\&.mkv mymovie\&.avi mymovie\&.srt .fi .if n \{\ .RE .\} .PP もし、あるトラックに言語コードを指定したいならば、簡単に指定できます。まず、指定する言語のISO639\-2コードを調べます。次のようにすれば\fBmkvmerge\fR(1)に全ての言語コードを一覧表示させることができます。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-\-list\-languages .fi .if n \{\ .RE .\} .PP 必要な言語をリストの中から探してください。Matroskaファイルの中に、二つのオーディオトラックがあり、トラックIDは2と3だとします。この二つに言語コードを指定するには、次のようにします。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o with\-lang\-codes\&.mkv \-\-language 2:ger \-\-language 3:dut without\-lang\-codes\&.mkv .fi .if n \{\ .RE .\} .PP このように、\fB\-\-language\fRスイッチを複数回使うことができます。 .PP プレイヤーにデフォルトでオランダ語を再生させたいときもあるでしょう。さらに、例えば英語とフランス語の字幕があって、フランス語をデフォルトで再生させたいと仮定します。これは、次のようにすれば可能です。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o with\-lang\-codes\&.mkv \-\-language 2:ger \-\-language 3:dut \-\-default\-track 3 without\-lang\-codes\&.mkv \-\-language 0:eng english\&.srt \-\-default\-track 0 \-\-language 0:fre french\&.srt .fi .if n \{\ .RE .\} .PP もし、指定したはずの言語やデフォルトフラグが\fBmkvinfo\fR(1)の出力に見当たらない場合は、デフォルト値のセクションを参照してください。 .PP 入力ファイルの圧縮をオフにします。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o no\-compression\&.mkv \-\-compression \-1:none MyMovie\&.avi \-\-compression \-1:none mymovie\&.srt .fi .if n \{\ .RE .\} .SH "トラックID" .PP \fBmkvmerge\fR(1)のオプションの中には、どのトラックに適用するかを特定するために、トラックIDを指定する必要なものがあります。このトラックIDは、入力ファイルがdemuxされる際に表示されるほか、\fBmkvmerge\fR(1)に\fB\-\-identify\fRオプションを指定して表示させることもできます。この場合の出力は次のようになります。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-i v\&.mkv File \*(Aqv\&.mkv\*(Aq: container: Matroska Track ID 0: video (V_MS/VFW/FOURCC, DIV3) Track ID 1: audio (A_MPEG/L3) .fi .if n \{\ .RE .\} .PP 出力されるMKVファイルの中に配置されるトラックに割り当てられるトラックIDと、入力ファイルのトラックIDを混同しないでください。これらの値が必要なオプションに使われるのは、入力ファイルのトラックIDだけです。 .PP また、各入力ファイルは、それ固有のトラックIDの組を持っていることにも注意してください。従って、\*(Aqmkvmerge \-\-identify\*(Aqで報告される\*(Aqfile1\&.ext\*(AqのトラックIDは、他にいくつ入力ファイルがあっても、また、\*(Aqfile1\&.ext\*(Aqがどの位置で使われようとも、変わることはありません。 .PP トラックIDは次のように割り当てられます: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} AVIファイル: ビデオトラックのIDは0になります。オーディオトラックのIDは1から昇順に割り当てられます。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} AAC、AC\-3、MP3、SRT、及びWAVファイル: ファイル中の唯一のトラックがID 0 を割り当てられます。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} その他の殆どのファイル:トラックIDは、トラックがファイル中で見つかった順番に0から割り当てられます。 .RE .PP \*(Aq\fB\-1\fR\*(Aqは特殊で、そのスイッチが入力ファイルから読み込まれる全てのトラックに適用されることを示します。 .PP トラックIDを使用するオプションの説明には、\*(AqTID\*(Aqが含まれています。また、\fB\-\-audio\-tracks\fR、\fB\-\-video\-tracks\fR、\fB\-\-subtitle\-tracks\fR、\fB\-\-button\-tracks\fR及び\fB\-\-track\-tags\fRオプションもトラックIDを使用します。 .SH "テキストファイルと文字コード変換" .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fB注記\fR .ps -1 .br .PP このセクションは、暗黙のうちに\fBmkvmerge\fR(1)だけでなくMKVToolNixの全てのプログラムにあてはまります。 .sp .5v .RE .SS "はじめに" .PP Matroskaファイルに格納されているテキストの文字コードは全てUTF\-8です。よって、\fBmkvmerge\fR(1)がテキストファイルを読み込む際には全てをUTF\-8に文字コード変換する必要があります。代わりに、\fBmkvmerge\fR(1)が例えば\fB\-\-ui\-language\fRによって非英語翻訳が使用される際や、Matroskaファイルに格納されていたテキストを出力する際には、UTF\-8から指定された文字コードに変換すればよいということになります。 .PP \fBmkvmerge\fR(1)はこの変換をバイト・オーダー・マーク(BOM)の有無、又はシステムのロケールに基づいて自動的に行ないます。ロケールからどのように文字コードが推測されるかは、\fBmkvmerge\fR(1)を実行するシステムに依存します。 .SS "Byte order markers (BOM)" .PP BOMで始まるテキストファイルは、既にUTFエンコーディングの一種でエンコードされています。\fBmkvmerge\fR(1)はUTF\-8、UTF\-16リトルエンディアン及びビッグエンディアン、UTF\-32リトルエンディアン及びビッグエンディアンの五つのモードをサポートします。BOMで始まるテキストファイルは自動的にUTF\-8に変換されます。この場合、テキストファイルの文字コードを指定するパラメータ(例: \fB\-\-sub\-charset\fR)は全て黙殺されます。 .SS "Linux and Unix\-like systems including Mac OS" .PP UNIX系システム上では、\fBmkvmerge\fR(1)は\fBsetlocale\fR(3)システムコールを使うので、\fILANG\fR、\fILC_ALL\fR及び\fILC_CYPE\fR環境変数を使用します。大抵は、UTF\-8かISO\-8859\-*ファミリのどれかが全てのテキストファイルとコマンドライン文字列の処理、及びコンソールへの出力の文字コードとして使用されます。 .SS "Windows" .PP On Windows the default character set used for converting text files is determined by a call to the \fBGetACP()\fR system call\&. .PP Reading the command line is done with the \fBGetCommandLineW()\fR function which already returns a Unicode string\&. Therefore the option \fB\-\-command\-line\-charset\fR is ignored on Windows\&. .PP Output to the console consists of three scenarios: .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} If the output is redirected with the option \fB\-\-redirect\-output\fR then the default charset is UTF\-8\&. This can be changed with \fB\-\-output\-charset\fR\&. .sp If the output is redirected with \fBcmd\&.exe\fR itself, e\&.g\&. with mkvinfo file\&.mkv > info\&.txt, then the charset is always UTF\-8 and cannot be changed\&. .sp Otherwise (when writing directly to the console) the Windows function \fBWriteConsoleW()\fR is used and the option \fB\-\-output\-charset\fR is ignored\&. The console should be able to output all Unicode characters for which the corresponding language support is installed (e\&.g\&. Chinese characters might not be displayed on English Windows versions)\&. .RE .SS "Command line options" .PP 次のような文字コードを指定するオプションがあります。 .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-sub\-charset\fRは、テキスト字幕ファイルの文字コードと、他のコンテナに格納されたテキスト字幕トラックの文字コードが曖昧さなく決定できない場合(例: Oggファイル)の文字コードを指定します。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-chapter\-charset\fRは、チャプタテキストファイルの文字コードと、他のコンテナフォーマットに格納されているチャプタ及びタイトルの文字コードを曖昧さなく決定できない場合(例: Oggファイルのチャプタ情報、トラックとファイルのタイトル等、及びMP4ファイルのチャプタ情報)の文字コードを指定します。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-command\-line\-charset\fRは全てのコマンドライン文字列の文字コードを指定します。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-output\-charset\fR for all strings written to the console or to a file if the output has been redirected with the \fB\-\-redirect\-output\fR option\&. On non\-Windows systems the default for the output charset is the system\*(Aqs current charset\&. On Windows it defaults to UTF\-8 both for redirecting with \fB\-\-redirect\-output\fR and with \fBcmd\&.exe\fR itself, e\&.g\&. mkvinfo file\&.mkv > info\&.txt\&. .RE .SH "オプションファイル:" .PP オプションファイルとは、\fBmkvmerge\fR(1)が追加のコマンドラインの引数をそれから読み込むことができるものです。これは、コマンドラインの長さ制限等の、外部プログラムを実行する際のシェルやオペレーティングシステムの特定の制限を回避するために使用することができます。 .PP There are two formats for option files: a JSON format and a proprietary legacy format\&. The legacy format is deprecated, and support for it will likely be removed in 2018\&. .SS "The JSON format" .PP A JSON option file\*(Aqs name must end in \*(Aq\&.json\*(Aq\&. Its content must be a valid JSON array consisting solely of JSON strings\&. The file\*(Aqs encoding must be UTF\-8\&. The file should not start with a byte order marker (BOM), but if one exists, it will be skipped\&. .PP The rules for escaping special characters inside JSON are the ones in the official JSON specification, \m[blue]\fBRFC 7159\fR\m[]\&\s-2\u[4]\d\s+2\&. .PP The command line \*(Aq\fBmkvmerge \-o "my file\&.mkv" \-A "a movie\&.avi" sound\&.ogg\fR\*(Aq could be converted into the following JSON option file called e\&.g\&. \*(Aqoptions\&.json\*(Aq: .sp .if n \{\ .RS 4 .\} .nf [ "\-o", "c:\e\eMatroska\e\emy file\&.mkv", "\-\-title", "#65", "\-A", "a movie\&.avi", "sound\&.ogg" ] .fi .if n \{\ .RE .\} .SS "The legacy format" .PP オプションファイルに関していくつか規則があります。行で最初の空白文字でない文字がハッシュマーク(\*(Aq#\*(Aq)である行はコメントとして扱われ、無視されます。行頭、及び行末の空白文字は取り除かれます。各行には一つずつしかオプションを指定できません。 .PP 何も書かれていない行も無視されます。空の引数は、\*(Aq#EMPTY#\*(Aqという行によって表すことができます。 .PP エスケープすることのできる文字もあります。例えば、コメントではない行を\*(Aq#\*(Aqで始める必要のある場合です。そのルールは、エスケープ文字についてのセクションで説明されています。 .PP バックスラッシュ(Windows上の日本語フォントでは\e記号)は、必ずエスケープされなければなりません。ハッシュマーク(#)は、それがコメントの始まりでなければエスケープされなければなりません。 .PP The command line \*(Aq\fBmkvmerge \-o "my file\&.mkv" \-A "a movie\&.avi" sound\&.ogg\fR\*(Aq could be converted into the following legacy option file called e\&.g\&. \*(Aqoptions\&.txt\*(Aq: .sp .if n \{\ .RS 4 .\} .nf # Windowsでは、"my file\&.mkv" に書き込む。 \-o c:\e\eMatroska\e\emy file\&.mkv # タイトルを\*(Aq#65\*(Aqに設定する。 \-\-title \eh65 # "a movie\&.avi" からビデオトラックのみを取り出す。 \-A a movie\&.avi sound\&.ogg .fi .if n \{\ .RE .\} .SH "テキスト中の特殊文字をエスケープする" .PP 特殊文字をエスケープしなければならない、あるいはすべき場所が少しだけあります。エスケープのルールは単純です:エスケープする必要のある各文字を、バックスラッシュ(Windows上の日本語フォントでは\e記号)の後ろに違う文字が1つついたものと入れ替えます。 .PP The rules are: \*(Aq \*(Aq (a space) becomes \*(Aq\es\*(Aq, \*(Aq"\*(Aq (double quotes) becomes \*(Aq\e2\*(Aq, \*(Aq:\*(Aq becomes \*(Aq\ec\*(Aq, \*(Aq#\*(Aq becomes \*(Aq\eh\*(Aq, \*(Aq[\*(Aq becomes \*(Aq\eb\*(Aq, \*(Aq]\*(Aq becomes \*(Aq\eB\*(Aq and \*(Aq\e\*(Aq (a single backslash) itself becomes \*(Aq\e\e\*(Aq\&. .SH "字幕" .PP Matroskaに埋め込むことのできるテキスト及びビットマップ字幕フォーマットがいくつかあります。テキスト字幕は、プレイヤーで正しく表示されるためにUTF\-8で保存されなればなりません(\fBmkvmerge\fR(1)の文字コード変換についてはテキストファイルと文字コードのセクションを参照してください)。Kate字幕は既にUTF\-8でエンコードされているので、再変換する必要はありません。 .PP 現在、次の字幕フォーマットがサポートされています。 .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} SubRipテキスト字幕形式(SRT)ファイル .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Substation Alpha (SSA) / Advanced Substation (ASS) 字幕 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Universal Subtitle Format (USF)ファイル .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} OggKateストリーム .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} VobSubビットマップ字幕 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} ブルーレイディスクで見られるようなPGSビットマップ字幕ファイル .RE .SH "ファイル紐付け" .PP Matroskaはファイル紐付けをサポートします。ファイル紐付けとは、単純に現在のファイルの前の、又は次のファイルを指定する機能です。正確に言うと、本当に紐付けされるのはファイルではなくMatroskaセグメントです。ほとんどのファイルはMatroskaセグメントを一つしか持たないので、以降の説明ではより正確な\*(Aqセグメント紐付け\*(Aqという用語ではなく、\*(Aqファイル紐付け\*(Aqという用語を使用します。 .PP 各セグメントはユニークな128bit幅のセグメントUIDを持ちます。このUIDは\fBmkvmerge\fR(1)が自動的に生成します。紐付けは基本的にセグメントUID(略してSID)をヘッダ情報の中に挿入することで行われます。\fBmkvinfo\fR(1)はこのSIDを、存在する場合は表示します。 .PP もしひとつのファイルがいくつかの小さなファイルに分割されて紐付けされる場合、タイムコードは0から始まらず、前のファイルの続きから始まります。この方式では、前のファイルが無い場合も絶対時間が保たれます(例: ストリーミングを使用している際)。もし、紐付けが使用されない場合、タイムコードは各ファイルで0から始まります。デフォルトでは\fBmkvmerge\fR(1)はファイル紐付けを使用しません。ファイル紐付けを使用したい場合は、\fB\-\-link\fRオプションを使用する必要があります。このオプションはファイル分割が有効な場合以外には無効です。 .PP ファイル分割が有効か無効かに関わらず、ユーザは\fBmkvmerge\fR(1)に、生成したファイルを特定のSIDに紐付けすることができます。これは\fB\-\-link\-to\-previous\fRオプションと\fB\-\-link\-to\-next\fRオプションにより可能です。これらのオプションは\fBmkvinfo\fR(1)が出力するフォーマット(16個の\fB0x00\fRから\fB0xff\fRまでの、\*(Aq0x\*(Aqを頭につけた16進数)のSIDを受け付けます(例: \*(Aq0x41 0xda 0x73 0x66 0xd9 0xcf 0xb2 0x1e 0xae 0x78 0xeb 0xb4 0x5e 0xca 0xb3 0x93\*(Aq)。もしくは短い形式(\*(Aq0x\*(Aq及び数字の間のスペースを省いた\fB0x00\fRから\fB0xff\fRまでの16進数の数字)を指定することもできます。例: \*(Aq41da7366d9cfb21eae78ebb45ecab393\*(Aq .PP もしファイル分割が有効の場合、最初のファイルが\fB\-\-link\-to\-previous\fRオプションで指定したSIDに紐付けされ、最後のファイルが\fB\-\-link\-to\-next\fRオプションで指定したSIDに紐付けされます。ファイル分割が無効の場合、一つの出力ファイルが両方のSIDに紐付けされます。 .SH "デフォルト値" .PP Matroskaファイルの仕様には、デフォルト値を持つエレメントの存在が明記されています。通常、デフォルト値と等しい値をもつエレメントはファイルサイズを抑えるためファイルに書き込まれません。\fBmkvinfo\fR(1)では表示されないかもしれないエレメントは、\fI言語\fRと\fIデフォルトトラックフラグ\fRエレメントです。\fI言語\fRエレメントのデフォルト値は英語(\*(Aqeng\*(Aq)で、\fIデフォルトトラックフラグ\fRエレメントのデフォルト値は\fItrue\fRです。よって、あるトラックに\fB\-\-language: 0:eng\fRを指定した場合には、\fBmkvinfo\fR(1)の出力には現れません。 .SH "添付ファイル" .PP Matroskaファイルに写真を入れておきたいということや、非常に稀でしょうがSSA字幕を使っていてTrueTypeフォントを使用したいということがあるかもしれません。このような場合には、Matroskaファイルにファイルを添付することができます。添付されるファイルはMatroskaファイルにただ単純に追加されるのではなく、埋め込まれます。よって、プレイヤーはこれらのファイルを表示したり(写真の場合)、字幕を描画するのに使用したり(フォントの場合)できます。 .PP 下に、出力ファイルに写真とTrueTypeフォントを添付する方法の例を示します。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o output\&.mkv \-A video\&.avi sound\&.ogg \e \-\-attachment\-description "Me and the band behind the stage in a small get\-together" \e \-\-attachment\-mime\-type image/jpeg \e \-\-attach\-file me_and_the_band\&.jpg \e \-\-attachment\-description "The real rare and unbelievably good looking font" \e \-\-attachment\-mime\-type application/octet\-stream \e \-\-attach\-file really_cool_font\&.ttf .fi .if n \{\ .RE .\} .PP 添付ファイルつきのMatroskaファイルが入力ファイルとして使われた場合、\fBmkvmerge\fR(1)はその添付ファイルを新しいファイルにコピーします。添付ファイルのコピーの有無は、\fB\-\-attachments\fR及び\fB\-\-no\-attachments\fRオプションを使って切り替えることができます。 .SH "チャプタ" .PP Matroskaチャプタシステムは、OGMファイルで使用されていた従来のシステムより強力です。その仕様の全ては、\m[blue]\fBMatroskaのウェブサイト\fR\m[]\&\s-2\u[5]\d\s+2に記されています。 .PP \fBmkvmerge\fR(1)は2種類のチャプタファイルを入力としてサポートしています。一つ目は\*(Aqシンプルチャプタファイル\*(Aqと呼ばれるもので、OGM toolsが想定しているものと同じフォーマットです。二つ目はXMLベースのチャプタフォーマットで、Matroskaのチャプタ機能の全てをサポートしています。 .SS "シンプルチャプタフォーマット" .PP このフォーマットは、\*(AqCHAPTERxx=\*(Aqで始まる行と\*(AqChapterxxNAME=\*(Aqで始まる行のペアから成ります。前者の行は開始タイムコードを含み、後者はタイトルを含みます。下に例を示します。 .sp .if n \{\ .RS 4 .\} .nf CHAPTER01=00:00:00\&.000 CHAPTER01NAME=Intro CHAPTER02=00:02:30\&.000 CHAPTER02NAME=Baby prepares to rock CHAPTER03=00:02:42\&.300 CHAPTER03NAME=Baby rocks the house .fi .if n \{\ .RE .\} .PP \fBmkvmerge\fR(1)は各ペア、もしくは行を、一個のMatroskaChapterAtomに変換します。ChapterTrackNumberは設定しないので、全てのトラックにチャプタは適用されます。 .PP このときにテキストファイルの文字コードが必要になります。\fBmkvmerge\fR(1)の文字コード変換についてはテキストファイルと文字コードのセクションを参照してください。 .SS "XMLチャプタフォーマット" .PP XMLチャプタフォーマットの例を以下に示します。 .sp .if n \{\ .RS 4 .\} .nf 00:00:30\&.000 00:01:20\&.000 A short chapter eng 00:00:46\&.000 00:01:10\&.000 A part of that short chapter eng .fi .if n \{\ .RE .\} .PP このフォーマットでは、シンプルチャプタフォーマットでは不可能な、3つのことが可能です。 .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} チャプタの終了タイムコードを指定できます。 .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} ネストしたチャプタを作成できます。 .RE .sp .RS 4 .ie n \{\ \h'-04' 3.\h'+01'\c .\} .el \{\ .sp -1 .IP " 3." 4.2 .\} 言語及び国を設定できます。 .RE .PP mkvtoolnixは、テンプレートとなるサンプルファイルと一緒に配布されています。サンプルファイルはdocサブディレクトリの中にあります。 .PP 以下にサポートされているXMLタグ、そのデータタイプ、そして適切な場所では、その値の有効な範囲を挙げます: .sp .if n \{\ .RS 4 .\} .nf Chapters (master) EditionEntry (master) EditionUID (unsigned integer, valid range: 1 <= value) EditionFlagHidden (unsigned integer, valid range: 0 <= value <= 1) EditionFlagDefault (unsigned integer, valid range: 0 <= value <= 1) EditionFlagOrdered (unsigned integer, valid range: 0 <= value <= 1) ChapterAtom (master) ChapterAtom (master) ChapterUID (unsigned integer, valid range: 1 <= value) ChapterTimeStart (unsigned integer) ChapterTimeEnd (unsigned integer) ChapterFlagHidden (unsigned integer, valid range: 0 <= value <= 1) ChapterFlagEnabled (unsigned integer, valid range: 0 <= value <= 1) ChapterSegmentUID (binary, valid range: 1 <= length in bytes) ChapterSegmentEditionUID (unsigned integer, valid range: 1 <= value) ChapterPhysicalEquiv (unsigned integer) ChapterTrack (master) ChapterTrackNumber (unsigned integer, valid range: 1 <= value) ChapterDisplay (master) ChapterString (UTF\-8 string) ChapterLanguage (UTF\-8 string) ChapterCountry (UTF\-8 string) ChapterProcess (master) ChapterProcessCodecID (unsigned integer) ChapterProcessPrivate (binary) ChapterProcessCommand (master) ChapterProcessTime (unsigned integer) ChapterProcessData (binary) .fi .if n \{\ .RE .\} .SS "注意" .PP \fBmkvmerge\fR(1)は出力ファイルを分割する際、チャプタも適切に処理します。つまり、分割された各ファイルはそのファイルに関係するチャプタのみを含み、タイムコードには適切なオフセットがかかります。 .PP \fBmkvmerge\fR(1)は、\fB\-\-no\-chapters\fRオプションで明示的に無効化されていなければ、Matroskaソースファイルからチャプタをコピーできます。全てのソース(Matroskaファイル、Oggファイル、MP4ファイル、チャプタテキストファイル)に由来するチャプタは通常はマージされず、別々のChapterEditionsが作成されます。いくつかのMatroskaもしくはXMLファイルで、エディションUIDが共有される場合にのみ、チャプタは一つのChapterEditionにマージされます。そのような場合以外でマージを行いたい場合は、ユーザはまず全てのソースから\fBmkvextract\fR(1)でチャプタを抽出し、手動でXMLファイルをマージした後にMUXを行なわなければなりません。 .SH "タグ" .SS "はじめに" .PP Matroskaは廃止予定の拡張可能なタグのセットと、新しい、他のよくあるコンテナで採用されているようなより単純な、\fIKEY=VALUE\fRというシステムをサポートします。しかし、Matroskaでは、これらのタグはネストすることも可能で、さらに\fIKEY\fRと\fIVALUE\fRは両方がそれ自信のエレメントです。サンプルファイルexample\-tags\-2\&.xmlがこの新しいシステムの使い方の例を示しています。 .SS "タグのスコープ" .PP Matroskaタグは自動的にはファイル全体に適用はされません。適用することもできますが、ファイルの異る部分々々に適用することもできます。一つ、もしくは複数のトラック、一つ、もしくは複数のチャプタ、さらにはその組み合わせにも適用することが可能です。\m[blue]\fBMatroskaの仕様\fR\m[]\&\s-2\u[6]\d\s+2に、このことの詳細が記述されています。 .PP 重要なことは、タグはTargetsMatroskaタグエレメントによってトラック及びチャプタにリンクされますが、このリンクの際に使用されるUIDは\fBmkvmerge\fR(1)が色々な所で使用するトラックID\fIではない\fRことです。その代わりに、\fBmkvmerge\fR(1)は自動的に計算したUID(トラックがMatroska以外のファイルフォーマットから取り出される場合)か、トラックのソースファイルがMatroskaファイルの場合ソースファイルからコピーされた数字が使用されます。よって、タグファイルが\fBmkvmerge\fR(1)に渡される前に、使用されるUIDを知ることは困難です。 .PP \fBmkvmerge\fR(1)はMatroskaファイルにタグを追加する二つのオプションを認識します。\fB\-\-global\-tags\fRと\fB\-\-tags\fRオプションです。この二つの違いは、前者の\fB\-\-global\-tags\fRは、上述のTargetsエレメントを全て取り除くことで、タグがファイル全体に適用されるようにします。後者の\fB\-\-tags\fRオプションは、\fBmkvmerge\fR(1)が of the \fB\-\-tags\fRに指定した\fITID\fRの示すトラックに対して自動的に計算したUIDを挿入します。 .SS "例" .PP あなたは、AVIから読み込まれるビデオトラックにタグをつけたいと仮定しましょう。\fBmkvmerge \-\-identify file\&.avi\fRを実行すると、ビデオトラックのトラックID(このIDをUIDと混同しないでください!)は0であると教えてくれます。よって、あなたは全てのTargetsエレメントを記入しないタグファイルを作成し、\fBmkvmerge\fR(1)を以下のように実行します。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \-o file\&.mkv \-\-tags 0:tags\&.xml file\&.avi .fi .if n \{\ .RE .\} .SS "タグファイルフォーマット" .PP \fBmkvmerge\fR(1)はXMLベースのタグファイルフォーマットをサポートします。このフォーマットは\m[blue]\fBMatroskaの仕様\fR\m[]\&\s-2\u[6]\d\s+2に非常に近いデザインになっています。MKVToolNixのバイナリ、及びソースディストリビューションはどちらも、既知のタグをただリストしただけの、実際のタグファイルのテンプレートとして使用できるexample\-tags\-2\&.xmlというサンプルファイルを含んでいます。 .PP 基本的には、以下の様な構成です。 .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} 最も外側のエレメントはでなければなりません。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} 一個の論理タグはXMLタグの内部に包含されます。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} タグの中身の直前・直後のスペースは無視されます。 .RE .SS "データタイプ" .PP 新しいMatroskaタグシステムは、UTF\-8文字列とバイナリの二つのデータタイプしか認識しません。前者はタグの名前とエレメントに使用され、後者はエレメントに使用されます。 .PP バイナリデータは、そのままではXMLファイルに格納できないので、\fBmkvmerge\fR(1)は二つのバイナリデータを格納する方法をサポートします。XMLタグの中身が\*(Aq@\*(Aqで始まる場合、そのあとのテキストはファイル名として扱われ、対応するファイルの中身がMatroskaエレメントにコピーされます。 .PP もう一つの方法では、データはBase64エンコードされる必要があります。これは、バイナリデータをASCIIキャラクタの一部だけで表現するためのエンコードで、例えばEメールなどに使用されています。\fBmkvextract\fR(1)は、バイナリエレメントをBase64エンコードされたデータとして出力します。 .PP 古いタグシステムは、公式のMatroskaの仕様に示されているように、もっと多くのデータタイプを認識していました。\fBmkvmerge\fR(1)はもはやこのシステムをサポートしないので、それらのタイプについてはここでは説明しません。 .SS "XMLファイルフォーマットで知られているタグ" .PP 以下にサポートされているXMLタグ、そのデータタイプ、そして適切な場所では、その値の有効な範囲を挙げます: .sp .if n \{\ .RS 4 .\} .nf Tags (master) Tag (master) Targets (master) TargetTypeValue (unsigned integer) TargetType (UTF\-8 string) TrackUID (unsigned integer) EditionUID (unsigned integer) ChapterUID (unsigned integer) AttachmentUID (unsigned integer) Simple (master) Simple (master) Name (UTF\-8 string) TagLanguage (UTF\-8 string) DefaultLanguage (unsigned integer) String (UTF\-8 string) Binary (binary) .fi .if n \{\ .RE .\} .SH "セグメント情報XMLファイル" .PP With a segment info XML file it is possible to set certain values in the "segment information" header field of a Matroska file\&. All of these values cannot be set via other command line options\&. .PP 他の"segment information"ヘッダフィールドはコマンドラインオプション経由で設定できますが、XMLファイル経由では設定できません。 これはには例えば\fB\-\-title\fRや\fB\-\-timecode\-scale\fR オプションなどが含まれます。 .PP 他にもコマンドラインオプション経由でもXMLファイル経由でも設定できない要素があります。これらには以下のものが含まれます:\fIDateUTC\fR (別名"muxing date")、\fIMuxingApp\fR、\fIWritingApp\fR、そして\fIDuration\fRです。それらは常に\fBmkvmerge\fR(1)自身によって設定されます。 .PP 以下にサポートされているXMLタグ、そのデータタイプ、そして適切な場所では、その値の有効な範囲を挙げます: .sp .if n \{\ .RS 4 .\} .nf Info (master) SegmentUID (binary, valid range: length in bytes == 16) SegmentFilename (UTF\-8 string) PreviousSegmentUID (binary, valid range: length in bytes == 16) PreviousSegmentFilename (UTF\-8 string) NextSegmentUID (binary, valid range: length in bytes == 16) NextSegmentFilename (UTF\-8 string) SegmentFamily (binary, valid range: length in bytes == 16) ChapterTranslate (master) ChapterTranslateEditionUID (unsigned integer) ChapterTranslateCodec (unsigned integer) ChapterTranslateID (binary) .fi .if n \{\ .RE .\} .SH "MATROSKAファイルのレイアウト" .PP Matroskaファイルのレイアウトは非常に柔軟性に富んでいます。\fBmkvmerge\fR(1)はあらかじめ定義された方法でファイルを書き出します。出力されたファイルはこのようになります。 .PP [EBMLヘッダ] [セグメント {メタシーク #1} [セグメント情報] [トラック情報] {添付ファイル} {チャプタ} [クラスタ 1] {クラスタ 2} \&.\&.\&. {クラスタ n} {CUE} {メタシーク #2} {タグ}] .PP 波括弧でくくられたエレメントは省略可能で、コンテンツと指定されたオプションに依存します。いくつか注釈があります。 .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} メタシーク #1は、少数のレベル1エレメント(添付ファイル、チャプタ、CUE、タグ、メタシーク #2)のみを、それらが存在するときにのみ含みます。以前のバージョンの\fBmkvmerge\fR(1)は、このメタシークエレメントにクラスタも挿入していました。このため、十分なスペースを確保しておくために不正確な推測が必要で、この推測は多くの場合失敗していました。現在では、クラスタのみはメタシーク #2に格納され、メタシーク #1がメタシークエレメント #2を参照しています。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} 添付ファイル、チャプタ、及びタグエレメントはそれらが存在するときにのみ追加されます。 .RE .PP The shortest possible Matroska file would look like this: .PP [EBMLヘッダ] [セグメント [セグメント情報] [トラック情報] [クラスタ1]] .PP 音声のみのファイルはこのようになるでしょう。 .SH "外部タイムコードファイル" .PP ユーザは、特定のトラックのタイムコードを自分で\fBmkvmerge\fR(1)に指定することができます。これは可変フレームレートビデオを含むファイルを作成するときや、オーディオに無音を挿入するときに使用できます。この場合、フレームはMatroskaブロックを作成する際の単位となります。ビデオでは、これはちょうど1フレームとなり、オーディオではこれは各オーディオタイプの1パケットとなります。例えば、AC\-3では、これは\fB1536\fRサンプルを含む1パケットとなります。 .PP 結合されたトラックにタイムコードファイルを指定する場合は、各結合されるトラックチェインの最初の部分にのみ指定してください。例えばv1\&.avi、v2\&.aviの二つのファイルを結合し、タイムコードを使用したいときのコマンドラインは次のようになります。 .sp .if n \{\ .RS 4 .\} .nf $ mkvmerge \&.\&.\&. \-\-timecodes 0:my_timecodes\&.txt v1\&.avi +v2\&.avi .fi .if n \{\ .RE .\} .PP \fBmkvmerge\fR(1)は、4つのフォーマットを認識します。最初の1行は常にバージョン番号を含みます。空行、空白のみを含む行、及び\*(Aq#\*(Aqで始まる行は無視されます。 .SS "タイムコードファイルフォーマット v1" .PP このフォーマットはバージョン行から始まります。2行目はデフォルトフレームレートを宣言します。残りの全ての行は、コンマで区切られた3つの数字を含みます。開始フレーム(\fB0\fRが最初のフレームです)、終了フレーム、そしてこの範囲で適用されるフレームレートです。FPSは、ドット\*(Aq\&.\*(Aqを小数点として持つ小数です。フレーム範囲はデフォルトFPSが使用されるギャップを含むこともあります。例を下に示します。 .sp .if n \{\ .RS 4 .\} .nf # timecode format v1 assume 27\&.930 800,1000,25 1500,1700,30 .fi .if n \{\ .RE .\} .SS "タイムコードファイルフォーマット v2" .PP このフォーマットでは、各行は対応するフレームのタイムコードを含みます。このタイムコードはミリ秒単位の精度で指定しなければなりません。小数を指定することができますが、小数でなくてもかまいません。最低でも、トラックに含まれるフレーム数と同数のタイムコード行を含ま\fIなければなりません\fR。このファイル内のタイムコードは整列されていなければなりません。例えば、25fpsでは以下のようになります。 .sp .if n \{\ .RS 4 .\} .nf # timecode format v2 0 40 80 .fi .if n \{\ .RE .\} .SS "タイムコードファイルフォーマット v3" .PP このフォーマットでは、各行は秒単位の持続時間と、省略可能なフレームレートを含みます。この二つは両方とも小数を指定できます。もし、フレームレートが指定されない場合はデフォルトの値が使用されます。オーディオではコーデックにタイムコードを計算させるべきです。このためには、フレームレートとして\fB0\&.0\fRを指定してください。また、\*(Aqgap\*(Aqキーワードの後に持続時間を指定して、無音を指定することもできます。オーディオファイル用の例を示します。 .sp .if n \{\ .RS 4 .\} .nf # timecode format v3 assume 0\&.0 25\&.325 7\&.530,38\&.236 gap, 10\&.050 2\&.000,38\&.236 .fi .if n \{\ .RE .\} .SS "タイムコードファイルフォーマット v4" .PP このフォーマットはv2フォーマットと同一です。唯一の違いは、タイムコードが整列されていなくてもいいという点です。このフォーマットが使われることはほぼ無いでしょう。 .SH "返り値" .PP \fBmkvmerge\fR(1)は下の3つの返り値を返します。 .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB0\fR \-\- この返り値はMUXが正常に終了したことを示します。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB1\fR \-\- この返り値は、一つ以上の警告が出力されましたが、抽出が続行されたことを意味します。警告は \*(Aq警告:\*(Aq という文字列を先頭につけて出力されます。出力ファイルが無事であるかどうかは、場合によります。出力ファイルを確認することを強く推奨します。 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB2\fR \-\- この返り値は、エラーが発生し、エラーメッセージを出力した後に\fBmkvmerge\fR(1)が処理を中断したことを示します。エラーメッセージは不正なコマンドラインやファイルI/Oエラー、壊れたファイルなど様々です。 .RE .SH "環境変数" .PP \fBmkvmerge\fR(1)はシステムのロケールを決めるデフォルトの変数(例:\fILANG\fRや\fILC_*\fR系)を使用します。追加の変数は以下の通りです: .PP \fIMKVMERGE_DEBUG\fR, \fIMKVTOOLNIX_DEBUG\fR and its short form \fIMTX_DEBUG\fR .RS 4 その内容は、あたかも\fB\-\-debug\fRオプション経由で渡されたかのように扱われます。 .RE .PP \fIMKVMERGE_ENGAGE\fR, \fIMKVTOOLNIX_ENGAGE\fR and its short form \fIMTX_ENGAGE\fR .RS 4 その内容は、あたかも\fB\-\-engage\fRオプション経由で渡されたかのように扱われます。 .RE .PP \fIMKVMERGE_OPTIONS\fR, \fIMKVTOOLNIX_OPTIONS\fR and its short form \fIMTX_OPTIONS\fR .RS 4 その内容は空白で分割されます。得られた一部の文字列は、あたかもそれがコマンドラインオプションとして渡されたかのように扱われます。もし特殊な文字(例:空白)を渡す必要があるなら、それらをエスケープする必要があります(テキスト中の特殊文字のエスケープについてのセクションをご覧ください)。 .RE .SH "関連項目" .PP \fBmkvinfo\fR(1), \fBmkvextract\fR(1), \fBmkvpropedit\fR(1), \fBmkvtoolnix-gui\fR(1) .SH "ウェブ" .PP 最新のバージョンは、常時\m[blue]\fBMKVToolNixのホームページ\fR\m[]\&\s-2\u[7]\d\s+2から取得できます。 .SH "著者" .PP \fBBunkus Moritz[FAMILY Given]\fR <\&moritz@bunkus\&.org\&> .RS 4 開発者 .RE .SH "注記" .IP " 1." 4 Matroska .RS 4 \%http://www.matroska.org/ .RE .IP " 2." 4 IANAのホームページ .RS 4 \%http://www.iana.org/assignments/media-types/ .RE .IP " 3." 4 mkvmerge-identification-output-schema.json .RS 4 \%https://mkvtoolnix.download/doc/mkvmerge-identification-output-schema.json .RE .IP " 4." 4 RFC 7159 .RS 4 \%https://tools.ietf.org/html/rfc7159 .RE .IP " 5." 4 Matroskaのウェブサイト .RS 4 \%http://www.matroska.org .RE .IP " 6." 4 Matroskaの仕様 .RS 4 \%http://matroska.org/technical/specs/index.html .RE .IP " 7." 4 MKVToolNixのホームページ .RS 4 \%https://mkvtoolnix.download/ .RE