go-matroska
go-matroska copied to clipboard
Golang: Matroska and WebM Format
Golang implementation of Matroska and WebM media container formats
Installation
go get github.com/pixelbender/go-matroska/...
Usage
import (
"os"
"fmt"
"github.com/pixelbender/go-matroska/matroska"
)
func main() {
doc, err := matroska.Decode("example.mkv")
if err != nil {
fmt.Println(err)
return
}
fmt.Println(doc.Segment.Info[0].Duration)
}