Skip to content

Basic implementation of the matroska video format in Rust

License

Notifications You must be signed in to change notification settings

quadrifoglio/mkv-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mkv-rs

Basic implementation of the MKV (Matroska) video format for the Rust Programming Language.

Example

extern crate mkv;

use std::fs::File;
use mkv::reader::{Reader, Info};

fn main() {
    let file = File::open("video.mkv").unwrap();
    let mut video = Reader::new(file).unwrap();

    for info in video.info().unwrap() {
        match info {
            Info::Tracks(ref tracks) => {
                for track in tracks {
                    println!("Track n°{} - Codec: {}", track.index(), track.codec());
                }
            },

            _ => {},
        };
    }
}

About

Basic implementation of the matroska video format in Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages