video-metadata-rs Build Status Build status

This library provides a little wrapper to get the metadata of the following video types:

Other video/file types will return an error.

Example

```rust extern crate video_metadata;

use video_metadata::enums;

fn main() { match videometadata::getformat("yourvideofile") { enums::Result::Complete(m) => { println!("format: {:?}", m.format); println!("duration: {:?}", m.duration); println!("size: {}x{}", m.size.width, m.size.height); println!("video codec: {}", m.video); if let Some(audio) = m.audio { println!("audio codec: {}", audio); } } enums::Result::Unknown(s) => { println!("Unknown format: '{}'", s); } }; } ```

Warning

Please note that I'm using the version 3 of the following libraries:

You can find more information on their repository.