25 breaking releases

0.28.0 Oct 10, 2024
0.27.0 Jun 14, 2024
0.26.1 Jan 11, 2024
0.26.0 Sep 12, 2023
0.3.0 Jul 20, 2017

#404 in Parser implementations

Download history 502/week @ 2024-07-23 374/week @ 2024-07-30 451/week @ 2024-08-06 194/week @ 2024-08-13 140/week @ 2024-08-20 225/week @ 2024-08-27 160/week @ 2024-09-03 254/week @ 2024-09-10 260/week @ 2024-09-17 328/week @ 2024-09-24 269/week @ 2024-10-01 492/week @ 2024-10-08 200/week @ 2024-10-15 268/week @ 2024-10-22 322/week @ 2024-10-29 335/week @ 2024-11-05

1,207 downloads per month
Used in 6 crates (4 directly)

MIT/Apache

76KB
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.7–2.3MB
~41K SLoC