# audio-video-metadata **Repository Path**: mirrors_nox/audio-video-metadata ## Basic Information - **Project Name**: audio-video-metadata - **Description**: A crate to parse audio and video metadatas - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # video-metadata-rs [![Build Status](https://travis-ci.org/GuillaumeGomez/audio-video-metadata.svg?branch=master)](https://travis-ci.org/GuillaumeGomez/audio-video-metadata) [![Build status](https://ci.appveyor.com/api/projects/status/076f3vyn6gw4xpch/branch/master?svg=true)](https://ci.appveyor.com/project/GuillaumeGomez/audio-video-metadata/branch/master) This library provides a little wrapper to get the metadata of the following video: * WebM (to be done) * MP4 * Ogg And the following audio formats: * Ogg * MP3 Other video/file types will return an error. ## Example ```rust extern crate audio_video_metadata; use audio_video_metadata::{Metadata, get_format_from_file}; fn main() { match get_format_from_file("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.unwrap_or("None".to_owned())); } Err(err) => { println!("Got error: {}", err.error_description()); } } } ```