Fixed the video color profile flag

This commit is contained in:
Gregory Ballantine 2022-08-31 18:59:19 -04:00
parent 0b6f6fea02
commit 38547bb175

View File

@ -46,14 +46,14 @@ impl Transcoder {
.arg("-c:v") .arg(&self.config.transcoder.video_codec)
.arg("-s") .arg(&self.config.transcoder.video_resolution)
.arg("-r") .arg(format!("{}", self.config.transcoder.video_framerate))
.arg("-vf") .arg(format!("'format={}'", &self.config.transcoder.video_color))
.arg("-vf") .arg(format!("format={}", &self.config.transcoder.video_color))
.arg("-profile:v").arg(&self.config.transcoder.video_profile)
.arg("-c:a") .arg(&self.config.transcoder.audio_codec)
.arg(&*output_file.to_string_lossy())
.output()
.expect("Failed to execute command");
//assert!(cmd_output.status.success());
assert!(cmd_output.status.success());
let results_raw = &String::from_utf8_lossy(&cmd_output.stderr);
println!("{}", results_raw);