Manually specify ffmpeg output color format

This commit is contained in:
bytedream 2024-03-10 19:40:36 +01:00
parent a0fa2bfd8a
commit 88a28e843f

View file

@ -606,6 +606,10 @@ impl Downloader {
command_args.extend([format!("-disposition:s:s:{}", i), "forced".to_string()])
}
// manually specifying the color model for the output file. this must be done manually
// because some Crunchyroll episodes are encoded in a way that ffmpeg cannot re-encode
command_args.extend(["-pix_fmt".to_string(), "yuv420p".to_string()]);
command_args.extend(output_presets);
if let Some(output_format) = self.output_format {
command_args.extend(["-f".to_string(), output_format]);