Skip to content

cycle-five/ffprobe-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ffprobe-rs

crates.io Documentation

Simple wrapper for the ffprobe CLI utility, which is part of the ffmpeg tool suite.

This crate allows retrieving typed information about media files (images and videos) by invoking ffprobe with JSON output options and deserializing the data into convenient Rust types.

Example

fn main() {
    match ffprobe::ffprobe("path/to/video.mp4") {
        Ok(info) => {
	    dbg!(info);
        },
	Err(err) => {
	    eprintln!("Could not analyze file with ffprobe: {:?}", err);
	}
    }
}

About

Simple ffprobe wraper for Rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%