pub fn try_parse_configuration(string: &str) -> Option<Vec<String>>Expand description
Parses the list of configuration flags ffmpeg was built with. Typically the second line of log output.
ยงExample:
use async_ffmpeg_sidecar::log_parser::try_parse_configuration;
let line = "[info] configuration: --enable-gpl --enable-version3 --enable-static\n";
// Typically much longer, 20-30+ flags
let version = try_parse_configuration(line).unwrap();
assert_eq!(version.len(), 3);
assert_eq!(version[0], "--enable-gpl");
assert_eq!(version[1], "--enable-version3");
assert_eq!(version[2], "--enable-static");