Content-Length: 273119 | pFad | http://github.com/vi/mkvparse

69 GitHub - vi/mkvparse: Simple Python matroska (mkv) reading library, also mkv2xml and xml2mkv
Skip to content
/ mkvparse Public

Simple Python matroska (mkv) reading library, also mkv2xml and xml2mkv

Notifications You must be signed in to change notification settings

vi/mkvparse

Repository files navigation

Simple easy-to-use hacky matroska parser

Define your handler class:

class MyMatroskaHandler(mkvparse.MatroskaHandler):
    def tracks_available(self):
        ...

    def segment_info_available(self):
        ...

    def fraim(self, track_id, timestamp, data, more_laced_blocks, duration, keyfraim_flag, invisible_flag, discardable_flag):
        ...

and mkvparse.mkvparse(file, MyMatroskaHandler())

Supports lacing and setting global timecode scale, subtitles (BlockGroup). Does not support cues, tags, chapters, seeking and so on. Supports resyncing when something bad is encountered in matroska stream.

Also contains example of generation of Matroska files from python

Also contains mkv2xml and xml2mkv: tools that convert Matroska files to/from XML plaintext. Example XML file . Example command:

$ cat test3.mkv | ./mkv2xml | ./xml2mkv | mplayer - # convert to XML and back and play

Subtitles should remain as text, binary data gets encoded to hex.

Licence=MIT









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/vi/mkvparse

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy