From dbefa05a7628bdf5040c26114c8326f5bdac1c7f Mon Sep 17 00:00:00 2001 From: pat-e Date: Mon, 11 Aug 2025 11:28:38 +0200 Subject: [PATCH] vs_analyze had the wrong mvtools-parameter --- anime_audio_filtered_helper.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/anime_audio_filtered_helper.py b/anime_audio_filtered_helper.py index 7ef05c3..211b1f3 100644 --- a/anime_audio_filtered_helper.py +++ b/anime_audio_filtered_helper.py @@ -163,8 +163,9 @@ clip = core.lsmas.LWLibavSource(source=r'''{ut_video_full_path}''') # --- MCTemporalDenoise 'high' setting equivalent using raw MVTools --- clip_16bit = core.resize.Point(clip, format=vs.YUV420P16, matrix_in_s="709") super_clip = core.mv.Super(clip_16bit, pel=2, sharp=1) -vectors_backward = core.mv.Analyse(super_clip, isb=True, truemotion=True, thsad=250, blksize=16) -vectors_forward = core.mv.Analyse(super_clip, isb=False, truemotion=True, thsad=250, blksize=16) +# CORRECTED: Use 'sad' for the Sum of Absolute Differences threshold, not 'thsad' +vectors_backward = core.mv.Analyse(super_clip, isb=True, truemotion=True, sad=250, blksize=16) +vectors_forward = core.mv.Analyse(super_clip, isb=False, truemotion=True, sad=250, blksize=16) denoised_clip = core.mv.Degrain2(clip_16bit, super_clip, vectors_backward, vectors_forward) final_clip = core.resize.Point(denoised_clip, format=vs.YUV420P10) # --- End of Denoising --- @@ -216,7 +217,7 @@ final_clip.set_output() svtav1_param_list += [f"--{k}", str(v)] print(f" - Using SvtAv1EncApp parameters: {' '.join(svtav1_param_list)}") - # CORRECTED: Use '-c y4m' for modern vspipe versions instead of the legacy '--y4m' flag. + # Use '-c y4m' for modern vspipe versions instead of the legacy '--y4m' flag. vspipe_cmd = ["vspipe", "-c", "y4m", str(vpy_file), "-"] svtav1_cmd = ["SvtAv1EncApp2"] + svtav1_param_list + ["-i", "-", "-b", str(encoded_video_file)]