This library provides a little wrapper to get the metadata of the following video:
And the following audio formats:
Other video/file types will return an error.
```rust extern crate audiovideometadata;
use audiovideometadata::{Metadata, getformatfrom_file};
fn main() { match getformatfromfile("assets/small.ogg") { Ok(c::Video(m)) => { println!("{:?}: {}x{}", m.format, m.dimensions.width, m.dimensions.height); } Ok(Metadata::Audio(m)) => { println!("{:?}", m.format, m.duration.unwrapor("None".toowned())); } Err(err) => { println!("Got error: {}", err.errordescription()); } } } ```