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.
- Config
Builder - Build the ffprobe configuration.
- Disposition
- FfProbe
- Format
- Format
Tags - Side
Data - Stream
- Stream
Tags
Enums§
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.