#matroska #mkv

matroska

Library for parsing Matroska (MKV) file metadata

2 unstable releases

0.4.0 Aug 7, 2018
0.3.0 Jul 20, 2017

#27 in Encoding

Download history 4/week @ 2018-05-23 6/week @ 2018-05-30 7/week @ 2018-06-13 2/week @ 2018-06-20 5/week @ 2018-06-27 4/week @ 2018-07-04 3/week @ 2018-07-11 4/week @ 2018-07-18 2/week @ 2018-07-25 6/week @ 2018-08-01 24/week @ 2018-08-08

22 downloads per month

MIT/Apache

42KB
1K SLoC

matroska

A Rust library for reading metadata from Matroska files (.mkv, .webm, etc.).

This library supports much of the same metadata reported by mkvinfo such as the file's title, duration, track information, attachments, and so on.

Usage

Add this to your Cargo.toml

[dependencies]
matroska = "0.4"

and this to your crate root:

extern crate matroska;

lib.rs:

A library for Matroska file metadata parsing functionality

Implemented as a set of nested structs with public values which one can use directly.

Example

use std::fs::File;
use matroska::Matroska;
let f = File::open("filename.mkv").unwrap();
let matroska = Matroska::open(f).unwrap();
println!("title : {:?}", matroska.info.title);

For additional information about the Matroska format, see the official specification

Dependencies

~1MB
~11K SLoC