From 88a28e843f53be5e3f8919e64e8fa11eaf97d8bf Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 10 Mar 2024 19:40:36 +0100 Subject: [PATCH] Manually specify ffmpeg output color format --- crunchy-cli-core/src/utils/download.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crunchy-cli-core/src/utils/download.rs b/crunchy-cli-core/src/utils/download.rs index 7f81bc9..7f87583 100644 --- a/crunchy-cli-core/src/utils/download.rs +++ b/crunchy-cli-core/src/utils/download.rs @@ -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]);