NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Run An External Command In Rust

This is a basic example using ffprobe which gets a string back (after chomping off the newline)

April 2023
use std::process::Command;

fn main() {
    let args: Vec<&str> = vec![
    let cmd_output = Command::new("ffprobe").args(args).output().unwrap();
    let frame_count_string = String::from_utf8(cmd_output.stdout).unwrap();
    let frame_count_str = frame_count_string.as_str().trim();
[TODO: Result]
═══ § ═══