Crate matroska

source ·
Expand description

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

Structs

  • An attached file (often used for cover art)
  • An audio track’s specifications
  • An individual chapter point
  • The display string for a chapter point entry
  • A complete set of chapters
  • An opaque DateTime value representing seconds since the MKV epoch
  • An Info segment with information pertaining to the entire file
  • A Matroska file
  • General information about the target
  • An attached tag
  • Which elements the metadata’s tag applies to
  • A TrackEntry segment in the Tracks segment container
  • A video track’s specifications

Enums

Traits

  • An element which can be parsed from the Matroska stream

Functions

  • Returns a single item from open Matroska file such as Info
  • Returns a single item from Matroska file on disk, such as Info
  • Opens Matroska file on disk

Type Aliases

  • A possible error when reading or parsing a Matroska file