Skip to content

remko/go-mkvparse

Repository files navigation

mkvparse: Matroska parser in Go

Go Reference

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

API

See the API Reference.

Examples

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 elements
  • examples/mkvtags: Example using the optimized 'sections' API to print all tags without parsing the entire file.