Crate ffprobe

Source
Expand description

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

Structs§

Config
ffprobe configuration.
ConfigBuilder
Build the ffprobe configuration.
Disposition
FfProbe
Format
FormatTags
SideData
Stream
StreamTags

Enums§

FfProbeError

Functions§

ffprobe
Execute ffprobe with default settings and return the extracted data.
ffprobe_config
Run ffprobe with a custom config. See ConfigBuilder for more details.