Skip to content

Commit

Permalink
fix chroma subsampling resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
animafps committed Dec 4, 2023
1 parent 98ac2a3 commit 529612a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/script_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ pub fn create(temp_path: PathBuf, video_path: &Path, settings: Config) -> PathBu
.replace('\\', "\\\\")
)
.as_str();
script += "video = core.fmtc.matrix(clip=video, mat=\"709\", col_fam=vs.YUV, bits=16)\n";
script += "video = core.fmtc.resample(clip=video, css\"420\")\n";
script += "video = core.fmtc.bitdepth(clip=video, bits=8)\n";
}
script += "video = core.fmtc.matrix(clip=video, mat=\"709\", col_fam=vs.YUV, bits=16)\n";
script += "video = core.fmtc.resample(clip=video, css\"420\")\n";
script += "video = core.fmtc.bitdepth(clip=video, bits=8)\n";

if settings.timescale.input != 1.0 {
script += format!(
Expand Down

0 comments on commit 529612a

Please sign in to comment.