mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Manually specify ffmpeg output color format
This commit is contained in:
parent
a0fa2bfd8a
commit
88a28e843f
1 changed files with 4 additions and 0 deletions
|
|
@ -606,6 +606,10 @@ impl Downloader {
|
||||||
command_args.extend([format!("-disposition:s:s:{}", i), "forced".to_string()])
|
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);
|
command_args.extend(output_presets);
|
||||||
if let Some(output_format) = self.output_format {
|
if let Some(output_format) = self.output_format {
|
||||||
command_args.extend(["-f".to_string(), output_format]);
|
command_args.extend(["-f".to_string(), output_format]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue