Giter Site home page Giter Site logo

dropcreations / mkvtoolnix-in-google-colab Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 7.0 114 KB

Install latest MKVToolNix into the Google Colab runtime. Use mkvmerge, mkvextract, mkvpropedit and tag MKV/WebM files

License: MIT License

Jupyter Notebook 100.00%
colab-notebook mkvextract mkvmerge mkvpropedit mkvtoolnix mkv mkv-files tagging tags webm

mkvtoolnix-in-google-colab's Introduction

MKVToolNix-in-Google-Colab

Install latest MKVToolNix into the Google Colab runtime. Use mkvmerge, mkvextract, mkvpropedit

Open in Colab

  • Click on the "Open in Colab" button to open this notebook in google colab

MKVToolNix-Logo

mkvmerge

  • You can add tracks while running the cell.
  • Don't use # and " in mkvTitle.
  • Add XML file path for globalTags, segmentInfo.
  • Choose a splitMode and add splitArgument according to the splitMode.
  • Chapters are accpeted both XML and OGM_txt files.
  • 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 in mimeType.
  • When adding track default, forced flags, 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 inputFile as 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 in Enter a name to save: .
  • If you leave both Enter folder path: and Enter a name to save: , output folder will be /content/ and your file will be renamed as the string that you gave in mkvTitle. If you haven't added mkvTitle, 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 _new to the end.

mkvextract

  • You can extract all tracks, attachments, chapters, tags, cues, cue sheet, timecodes from MKV and WebM files.
  • Also you can extract a single track by selecting extractMode: Single Track option.
  • While extracting chapters, enter chapters extract type? as xml or ogm when asked for extract in that format
  • inputFile can be a file or folder that contains MKV and WebM files. 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

mkvtoolnix-in-google-colab's People

Contributors

dropcreations avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mkvtoolnix-in-google-colab's Issues

Error on mkvextract!

Screenshot (72)
Please help, and can you add batch file extract and extract_mode for subtitle only ass/srt features.
Thanks for your project.

Mkvmerge Error

@dropcreations Hi.
I was trying merge VOB files from DVD to MKV using mkvmerge everything going right no error or anything, btw i left everything blank except for output path. But the problem is only audio getting merged not the Video(i mean it's only audio in mkv format) btw i did not put all the VOB files one by one in inputfile: rather put the first one(VTS_02_1.VOB) and following files processed by itself just like in the gui, idk what I'm doing wrong so can you pls try and tell me. anyway here's the output result
inputFile: /content/drive/Shareddrives/Dummy/Whitesnake - Restless Heart (DVD)/VIDEO_TS/VTS_02_1.VOB

ID Type Lang Codec


0 video None MPEG-1/2
1 audio None PCM

track ID: 1
|
|--trackTitle:
|--trackLanguage:
|--Set track as default? [y/n]
|--Set track as forced? [y/n]

inputFile: Done

outputFilename: Whitesnake
mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
'/content/drive/Shareddrives/Dummy/Whitesnake - Restless Heart (DVD)/VIDEO_TS/VTS_02_1.VOB': Using the demultiplexer for the format 'MPEG program stream'.
'/content/drive/Shareddrives/Dummy/Whitesnake - Restless Heart (DVD)/VIDEO_TS/VTS_02_1.VOB': Processing the following files as well: "VTS_02_2.VOB", "VTS_02_3.VOB", "VTS_02_4.VOB"
'/content/drive/Shareddrives/Dummy/Whitesnake - Restless Heart (DVD)/VIDEO_TS/VTS_02_1.VOB' track 1: Using the output module for the format 'PCM'.
The file '/content/drive/Shareddrives/Dummy/Whitesnake - Restless Heart (DVD)/Whitesnake.mkv' has been opened for writing.
Progress: 100%
The cue entries (the index) are being written...
Multiplexing took 37 seconds.

M2ts to mkv convert

Please add m2ts to mkv convert

We can't extract tracks from m2ts

And while doing mkvmerge ,we can't select video from m2ts
It's shows error

Pls make this possible

how to merge subtitles and mkv

So I ran the cell it asked "Insert track:" I put mkv file and a few options later it again asked for "Insert track:"
I added .ass subtitle set option eng, default, etc then it again asked for "Insert track:" but I don't want to put another track but to get output instead. How Can I Do that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.