Crates.io | ffprobe |
lib.rs | ffprobe |
version | 0.4.0 |
source | src |
created_at | 2021-01-16 23:01:59.660797 |
updated_at | 2024-04-03 15:08:30.670509 |
description | Typed wrapper for the ffprobe CLI |
homepage | |
repository | https://github.com/theduke/ffprobe-rs |
max_upload_size | |
id | 342968 |
size | 18,233 |
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.
fn main() {
match ffprobe::ffprobe("path/to/video.mp4") {
Ok(info) => {
dbg!(info);
},
Err(err) => {
eprintln!("Could not analyze file with ffprobe: {:?}", err);
}
}
}