ffprobe

Crates.ioffprobe
lib.rsffprobe
version0.4.0
sourcesrc
created_at2021-01-16 23:01:59.660797
updated_at2024-04-03 15:08:30.670509
descriptionTyped wrapper for the ffprobe CLI
homepage
repositoryhttps://github.com/theduke/ffprobe-rs
max_upload_size
id342968
size18,233
Christoph Herzog (theduke)

documentation

README

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);
	}
    }
}
Commit count: 42

cargo fmt