ffprobe/
ffprobe.rs

1#[cfg(feature = "download_ffmpeg")]
2fn main() {
3  use ffmpeg_sidecar::{download::auto_download, ffprobe::ffprobe_version};
4
5  // Download ffprobe from a configured source.
6  // Note that not all distributions include ffprobe in their bundle.
7  auto_download().unwrap();
8
9  // Try running the executable and printing the version number.
10  let version = ffprobe_version().unwrap();
11  println!("ffprobe version: {version}");
12}
13
14#[cfg(not(feature = "download_ffmpeg"))]
15fn main() {
16  eprintln!(r#"This example requires the "download_ffmpeg" feature to be enabled."#);
17  println!("The feature is included by default unless manually disabled.");
18  println!("Please run `cargo run --example download_ffmpeg`.");
19}