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§
- Attachment
Stream - Stream of type attachment
- Attachment
Tags - Tags specific for attachments
- Audio
Stream - Stream of type audio
- Audio
Tags - Tags specific for audio
- Chapter
- Chapter parsed
- Chapter
Tags - Tags for chapter
- Config
- ffprobe configuration.
- Data
Stream - Stream of type data
- Data
Tags - Tags for the type data
- Disposition
- FfProbe
- FfProbe parsed
- Format
- Parsed Format
- Format
Tags - Metadata Tags of format
- Ratio
- Ratio eg. 1/1000
- Side
Data - Stream
- Stream parsed
- Stream
Tags - Stream tags for video, audio, subtitle
- Subtititle
Tags - Tags specific for subtitles
- Subtitle
Stream - Stream of type subtitle
- Video
Stream - Stream of type video
- Video
Tags - Tags specific for video
Enums§
- Stream
Kinds - codec_type as enum
Traits§
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. - option_
string_ to_ duration