29 releases (breaking)

0.26.1 Jan 11, 2024
0.26.0 Sep 12, 2023
0.25.0 Jun 7, 2023
0.22.0 Mar 18, 2023
0.3.0 Jul 20, 2017

#349 in Video

Download history 156/week @ 2023-12-24 124/week @ 2023-12-31 178/week @ 2024-01-07 130/week @ 2024-01-14 255/week @ 2024-01-21 322/week @ 2024-01-28 159/week @ 2024-02-04 115/week @ 2024-02-11 160/week @ 2024-02-18 345/week @ 2024-02-25 274/week @ 2024-03-03 313/week @ 2024-03-10 308/week @ 2024-03-17 190/week @ 2024-03-24 289/week @ 2024-03-31 222/week @ 2024-04-07

1,050 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

75KB
2K 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.


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 1

let matroska = matroska::open("file.mkv").unwrap();
println!("title : {:?}", matroska.info.title);

Example 2

use matroska::Info;
if let Ok(Some(Info { duration, ..})) = matroska::get_from::<_, Info>("file.mkv") {
    println!("duration : {:?}", duration);
}

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

Dependencies

~0.8–1.8MB
~36K SLoC