Crates.io | easy-ffprobe |
lib.rs | easy-ffprobe |
version | 0.5.2 |
source | src |
created_at | 2024-10-27 13:43:15.966193 |
updated_at | 2024-10-30 09:55:11.777906 |
description | Typed wrapper for the ffprobe CLI. This is a fork of the original ffprobe-rs crate, which is no longer maintained. |
homepage | |
repository | https://github.com/frederik-uni/ffprobe-rs |
max_upload_size | |
id | 1424636 |
size | 56,274 |
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);
}
}
}