fn main() { let ausgabe = std::process::Command::new("ffprobe") .arg("-i") .arg("Film.mp4") .output() .expect("process failed to execute"); println!("completed with {}", ausgabe.status); let s = String::from_utf8_lossy(&ausgabe.stderr); for line in s.lines() { if line.starts_with(" Stream") { println!("{}", &line); } } }