| mkvextract(1) | Потребителски команди | mkvextract(1) |
НАЗВАНИЕ
mkvextract - извличане на медийни пътечки (tracks) от Matroska(TM) файлове в други файлове
РЕЗЮМЕ
mkvextract {source-filename} {mode1} [options] [extraction-spec1] [mode2] [options] [extraction-spec2] [...]
ОПИСАНИЕ
Тази програма извлича отделни части от даден Matroska(TM) файл в други полезни формати. Първият аргумент е името на файла източник, който задължително трябва да е Matroska(TM) файл.
All other arguments either switch to a certain extraction mode, change options for the currently active mode or specify what to extract into which file. Multiple modes can be used in the same invocation of mkvextract allowing the extraction of multiple things in a single pass. Most options can only be used in certain modes with a few options applying to all modes.
Към момента се поддържа извличането на медийни пътечки (tracks), тагове, прикачени файлове, епизоди (chapters), CUE sheets, времеви клейма (timestamps) и cues.
Общи опции
Следващите опции са налични във всички режими и са описани само веднъж в тази секция.
-f, --parse-fully
--command-line-charset набор-от-символи
--output-charset набор-от-символи
-r, --redirect-output име на файла
--no-bom
--flush-on-close
--ui-language код
--abort-on-warnings
--debug тема
--engage функция
--gui-mode
-v, --verbose
-h, --help
-V, --version
@файл-с-опции.json
Режим за извличане на медийни пътечки (tracks)
Синтаксис: mkvextract source-filename tracks [options] TID1:dest-filename1 [TID2:dest-filename2 ...]
The following command line options are available for each track in the 'tracks' extraction mode. They have to appear in front of the track specification (see below) they should be applied to.
-c набор-от-символи
--blockadd ниво
--cuesheet
--raw
--fullraw
TID:outname
Each output name should be used only once. The exception are RealAudio and RealVideo tracks. If you use the same name for different tracks then those tracks will be saved in the same file. Example:
$ mkvextract input.mkv tracks 0:video.h264 2:output-two-vobsub-tracks.idx 3:output-two-vobsub-tracks.idx
Режим за извличане на прикачени файлове
Синтаксис: mkvextract source-filename attachments [options] AID1:outname1 [AID2:outname2 ...]
AID:outname
Режим за извличане на епизоди (chapters)
Синтаксис: mkvextract source-filename chapters [options] output-filename.xml
-s, --simple
--simple-language language
Using this option allows the user to determine which chapter names are output if atoms contain more than one chapter name. The language parameter must be an ISO 639-1 or ISO 639-2 code.
The chapters are written to specified output file. By default the XML format understood by mkvmerge(1) is used. If no chapters are found in the file, the output file is not created.
Режим за извличане на тагове
Синтаксис: mkvextract source-filename tags [options] output-filename.xml
-T, --no-track-tags
The tags are written to specified output file in the XML format understood by mkvmerge(1). If no tags are found in the file, the output file is not created.
Режим за извличане не cue sheet
Синтаксис: mkvextract source-filename cuesheet [options] output-filename.cue
The cue sheet is written to specified output file. If no chapters or tags are found in the file, the output file is not created.
Режим за извличане на времево клеймо
Синтаксис: mkvextract source-filename timestamps_v2 [options] TID1:dest-filename1 [TID2:dest-filename2 ...]
TID:outname
Пример:
$ mkvextract input.mkv timestamps_v2 1:ts-track1.txt 2:ts-track2.txt
Режим за извличане на индексиране (cues)
Синтаксис: mkvextract source-filename cues [options] TID1:dest-filename1 [TID2:dest-filename2 ...]
TID:dest-filename
The format output is a simple text format: one line per CuePoint element with key=value pairs. If an optional element is not present in a CuePoint (e.g. CueDuration) then a dash will be output as the value.
Пример:
timestamp=00:00:13.305000000 duration=- cluster_position=757741 relative_position=11
Възможните ключове са:
времево клеймо
времетраене
cluster_position
Забележка
Inside the Matroska(TM) file the CueClusterPosition is relative to the segment's data start offset. The value output by mkvextract(1)'s cue extraction mode, however, contains that offset already and is an absolute offset from the beginning of the file.
relative_position
Забележка
Inside the Matroska(TM) file the CueRelativePosition is relative to the cluster's data start offset. The value output by mkvextract(1)'s cue extraction mode, however, is relative to the cluster's ID. The absolute position inside the file can be calculated by adding cluster_position and relative_position.
Пример:
$ mkvextract input.mkv cues 1:cues-track1.txt 2:cues-track2.txt
ПРИМЕРИ
Едновременно извличане на епизоди (chapters) и тагове в съответните XML формати:
$ mkvextract movie.mkv chapters movie-chapters.xml tags movie-tags.xml
Едновременно извличане на няколко медийни пътечки (trakcs) и съответните им времеви клейма (timestamps):
$ mkvextract "Another Movie.mkv" tracks 0:video.h265 "1:main audio.aac" "2:director's comments.aac" timestamps_v2 "0:timestamps video.txt" "1:timestamps main audio.txt" "2:timestamps director's comments.txt"
Extracting chapters in the Ogg/OGM format and re-encoding a text subtitle track to another character set:
$ mkvextract "My Movie.mkv" chapters --simple "My Chapters.txt" tracks -c MS-ANSI "2:My Subtitles.srt"
ТЕКСТОВИ ФАЙЛОВЕ И КОНВЕРТИРАНИЯ НА НАБОРИ ОТ СИМВОЛИ
For an in-depth discussion about how all tools in the MKVToolNix suite handle character set conversions, input/output encoding, command line encoding and console encoding please see the identically-named section in the mkvmerge(1) man page.
ФАЙЛОВИ РАЗШИРЕНИЯ НА ИЗХОДНИТЕ ФАЙЛОВЕ
Какво ще е файловото разширение се определя от типа на медийната пътечка, а не от разширението, използвано в името на изходния файл. Към момента се поддържат следните типове медийни-писни (tracks):
A_AAC/MPEG2/*, A_AAC/MPEG4/*, A_AAC
A_AC3, A_EAC3
A_ALAC
A_DTS
A_FLAC
A_MPEG/L2
A_MPEG/L3
A_OPUS
A_PCM/INT/LIT, A_PCM/INT/BIG
A_REAL/*
A_TRUEHD, A_MLP
A_TTA1
A_VORBIS
A_WAVPACK4
S_HDMV/PGS
S_HDMV/TEXTST
S_KATE
S_TEXT/SSA, S_TEXT/ASS, S_SSA, S_ASS
S_TEXT/UTF8, S_TEXT/ASCII
S_VOBSUB
S_TEXT/USF
S_TEXT/WEBVTT
V_MPEG1, V_MPEG2
V_MPEG4/ISO/AVC
V_MPEG4/ISO/HEVC
V_MS/VFW/FOURCC
V_REAL/*
V_THEORA
V_VP8, V_VP9
Тагове
Прикачени файлове
Епизоди (chapters)
Времеви клейма (timestamps)
КОДОВЕ ЗА ИЗХОД
mkvextract(1) завършва с един от следните три изходни кода:
ПРОМЕНЛИВИ НА СРЕДАТА
mkvextract(1) използва променливите по подразбиране, определящи езиковата променлива на системата (например LANG и от групата LC_*). Допълнителни променливи:
MKVEXTRACT_DEBUG, MKVTOOLNIX_DEBUG и кратката форма MTX_DEBUG
MKVEXTRACT_ENGAGE, MKVTOOLNIX_ENGAGE и кратката форма MTX_ENGAGE
ВИЖ СЪЩО
УЕБСАЙТ
Най-новата версия винаги може да бъде намерена на началната страница на MKVToolNix[1].
АВТОР
Мориц Бънкас <moritz@bunkus.org>
ЗАБЕЛЕЖКИ
- 1.
- началната страница на MKVToolNix
| 2026-08-24 | MKVToolNix 101.0 |