openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
George Hotz 6fbcde48e5 Using lgtm.com and fixing found alerts (#1452) 5 years ago
..
README.md merge in tools 5 years ago
__init__.py merge in tools 5 years ago
mkvgen.py merge in tools 5 years ago
mkvindex.py Using lgtm.com and fixing found alerts (#1452) 5 years ago
mkvparse.py merge in tools 5 years ago

README.md

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 frame(self, track_id, timestamp, data, more_laced_blocks, duration, keyframe_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

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

Licence=MIT