Fast Matroska (.mkv
, .mka
, .webm
) parser, written in Go.
Features:
- Supports all Matroska elements
- Supports short-circuiting the parser, making it possible to
read specific data (e.g. title, author) without reading the
entire file (see the
mkvtags
example) - Also works with WebM (
.webm
) files - Supports streaming
- Event-based push API
- No dependencies
See the API Reference.
Besides the examples in the API Reference,
there are some larger examples in the examples/
dir:
examples/mkvinfo
: Example using basic parser API to print all elementsexamples/mkvtags
: Example using the optimized 'sections' API to print all tags without parsing the entire file.