/mkvextractor

Extract tracks, chapters, attachments, tags, cues, cue sheets, timestamps from MKV and WebM files using MKVToolNix.

Primary LanguagePythonMIT LicenseMIT

mkvExtractor

This python script is to use MKVToolNix's mkvextract CLI tool. You can extract content from both MKV and WebM containers.

Usage

  • 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]

Extract Mode : All tracks

You can extract all video, audio and subtitle tracks available in all inputs.

Extract Mode : Single tracks

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,...

Extract Mode : Chapters

You can extract chapters in both XML and OGM formats. Provide your choice when it asked.

Extract Mode : Attachments

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,...

Extract Mode : Timestamps

You can extract timestamps for all tracks at once.

Extract Mode : Cues

You can extract cues for all tracks that available at once.

Extract Mode : Cue Sheets

You can extract cue sheet in all inputs if available.

Extract Mode : Tags

You can extract tags in all inputs if available.