7 unstable releases

0.4.0 Apr 3, 2024
0.3.3 Sep 5, 2022
0.3.2 Apr 23, 2022
0.3.0 Aug 2, 2021
0.1.0 Jan 16, 2021

#49 in Video

Download history 806/week @ 2024-07-02 801/week @ 2024-07-09 796/week @ 2024-07-16 899/week @ 2024-07-23 794/week @ 2024-07-30 793/week @ 2024-08-06 678/week @ 2024-08-13 634/week @ 2024-08-20 766/week @ 2024-08-27 853/week @ 2024-09-03 806/week @ 2024-09-10 646/week @ 2024-09-17 1514/week @ 2024-09-24 1132/week @ 2024-10-01 839/week @ 2024-10-08 773/week @ 2024-10-15

4,399 downloads per month
Used in 10 crates (9 directly)

MIT license

13KB
242 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.7–1.6MB
~35K SLoC