pub fn try_parse_output(string: &str) -> Option<FfmpegOutput>
Expand description
Parse an output section like the following, extracting the index of the input:
ยงExample:
use ffmpeg_sidecar::log_parser::try_parse_output;
use ffmpeg_sidecar::event::FfmpegOutput;
let line = "[info] Output #0, mp4, to 'test.mp4':\n";
let output = try_parse_output(line);
assert!(output == Some(FfmpegOutput {
index: 0,
to: "test.mp4".to_string(),
raw_log_message: line.to_string(),
}));