#matroska #mkv

matroska

Library for parsing Matroska (MKV) file metadata

5 unstable releases

✓ Uses Rust 2018 edition

0.5.4 Apr 16, 2020
0.5.3 Apr 14, 2020
0.5.1 Sep 17, 2018
0.4.0 Aug 7, 2018
0.3.0 Jul 20, 2017

#3 in Encoding

Download history 18/week @ 2020-02-06 21/week @ 2020-02-13 26/week @ 2020-02-20 41/week @ 2020-02-27 126/week @ 2020-03-05 77/week @ 2020-03-12 137/week @ 2020-03-19 54/week @ 2020-03-26 124/week @ 2020-04-02 82/week @ 2020-04-09 59/week @ 2020-04-16 274/week @ 2020-04-23 228/week @ 2020-04-30 392/week @ 2020-05-07 40/week @ 2020-05-14 41/week @ 2020-05-21

268 downloads per month
Used in fselect

MIT/Apache

43KB
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

~1.5–2MB
~36K SLoC