This python script is to use MKVToolNix's mkvextract CLI tool. You can extract content from both MKV and WebM containers.
- Open Terminal and type below command.
- You can add one or more files at once.
python mkvextractor.py [file_01] [file_02] [file_03]...
- You can also add a folder that includes MKV and WebM files.
- Don't add more than one folder.
python mkvextractor.py [folder_path]
- You can extract,
You can extract all video, audio and subtitle tracks available in all inputs.
In this mode, analyze every input and show a list of tracks that available, then you can enter track IDs that you want to extract.
Please seperate track numbers by a comma and a space
- eg:
trackID: 0, 1, 2,...
You can extract chapters in both XML and OGM formats. Provide your choice when it asked.
In this mode, also analyze every input and show a list of attachments that available, then you can enter attachment IDs that you want to extract.
Please seperate attachment IDs by a comma and a space
- eg:
attachmentID: 1, 2, 3,...
You can extract timestamps for all tracks at once.
You can extract cues for all tracks that available at once.
You can extract cue sheet in all inputs if available.
You can extract tags in all inputs if available.