6 releases

0.3.3 Sep 5, 2022
0.3.2 Apr 23, 2022
0.3.0 Aug 2, 2021
0.2.0 Jun 26, 2021
0.1.0 Jan 16, 2021

#151 in Date and time

Download history 468/week @ 2023-08-11 219/week @ 2023-08-18 384/week @ 2023-08-25 372/week @ 2023-09-01 352/week @ 2023-09-08 284/week @ 2023-09-15 271/week @ 2023-09-22 363/week @ 2023-09-29 331/week @ 2023-10-06 394/week @ 2023-10-13 392/week @ 2023-10-20 427/week @ 2023-10-27 498/week @ 2023-11-03 343/week @ 2023-11-10 621/week @ 2023-11-17 435/week @ 2023-11-24

1,970 downloads per month
Used in 7 crates

MIT license

12KB
222 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.4MB
~33K SLoC