MKVToolNix-in-Google-Colab
MKVToolNix-in-Google-Colab copied to clipboard
Install latest MKVToolNix into the Google Colab runtime. Use mkvmerge, mkvextract, mkvpropedit and tag MKV/WebM files
MKVToolNix-in-Google-Colab
Install latest MKVToolNix into the Google Colab runtime. Use mkvmerge, mkvextract, mkvpropedit
- Click on the "Open in Colab" button to open this notebook in google colab
mkvmerge
- You can add tracks while running the cell.
- Don't use
#and"inmkvTitle. - Add XML file path for
globalTags,segmentInfo. - Choose a
splitModeand addsplitArgumentaccording to thesplitMode. - Chapters are accpeted both
XMLandOGM_txtfiles. - When adding a language use laguage codes.
- If you don't want to fill a field, leave it blank.
- If you don't know what is the relevant
mime-type, also leave it blank inmimeType. - When adding track
default,forcedflags, If you leave it blank, it's value will be "No". - For all
[y/n]inputs "y" for "yes" and "n" for "no". webmCompliantFile: Create a WebM compliant file instead of mkv file output.- While adding tracks if you have done adding, leave
inputFileas blank to continue. - When saving options are asked, enter folder path that you want to save your output file in
Enter folder path:and enter a file name to add to your output file inEnter a name to save:. - If you leave both
Enter folder path:andEnter a name to save:, output folder will be/content/and your file will be renamed as the string that you gave inmkvTitle. If you haven't addedmkvTitle, then your file will be renamed as same as the first inputed file's name. If a file exsists with the name generated for file, this will add_newto the end.
mkvextract
- You can extract all tracks, attachments, chapters, tags, cues, cue sheet, timecodes from
MKVandWebMfiles. - Also you can extract a single track by selecting
extractMode: Single Trackoption. - While extracting chapters, enter
chapters extract type?asxmlorogmwhen asked for extract in that format inputFilecan be a file or folder that containsMKVandWebMfiles. Don't need to contain only MKV and WebM files.
mkvpropedit
- You can edit segment info, track info, chapters, attachments, tags in a mkv file.
- If you want to delete statistic tags from tracks select
deleteTrackStatisticsTags
Matroska/WebM Tags
- Enter mkv or webm file's path in
mkvFile. - If you want to delete
Title, leave it as blank. - You can add tags using a text document, but the text document's content must be as formatted as below.
Tag name: Tag value
Tag name: Tag value, Tag value
- This doesn't add tags as multiple tags, adds all values as a single tag.
- Use official tag names to add matroska official tags. see here