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);
},
}
§Features
- streams
- format
- chapters
- async
Modules§
Structs§
- Stream of type attachment
- Tags specific for attachments
- Stream of type audio
- Tags specific for audio
- Chapter parsed
- Tags for chapter
- ffprobe configuration.
- Stream of type data
- Tags for the type data
- FfProbe parsed
- Parsed Format
- Metadata Tags of format
- Ratio eg. 1/1000
- Stream parsed
- Stream tags for video, audio, subtitle
- Tags specific for subtitles
- Stream of type subtitle
- Stream of type video
- Tags specific for video
Enums§
- codec_type as enum
Functions§
- Execute ffprobe with default settings and return the extracted data.
- Run ffprobe with a custom config. See [
ConfigBuilder] for more details.