5 unstable releases

0.3.2 Apr 23, 2022
0.3.1 Apr 13, 2022
0.3.0 Aug 2, 2021
0.2.0 Jun 26, 2021
0.1.0 Jan 16, 2021
Download history 85/week @ 2022-04-27 81/week @ 2022-05-04 178/week @ 2022-05-11 142/week @ 2022-05-18 102/week @ 2022-05-25 203/week @ 2022-06-01 173/week @ 2022-06-08 85/week @ 2022-06-15 147/week @ 2022-06-22 58/week @ 2022-06-29 166/week @ 2022-07-06 113/week @ 2022-07-13 200/week @ 2022-07-20 171/week @ 2022-07-27 96/week @ 2022-08-03 118/week @ 2022-08-10

621 downloads per month
Used in 2 crates

MIT license

10KB
207 lines

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);
	}
    }
}

lib.rs:

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.

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

Dependencies

~0.6–1.3MB
~31K SLoC