theduke / ffprobe-rs

Simple ffprobe wraper for Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Rust 100.0%