vs_analyze had the wrong mvtools-parameter
This commit is contained in:
@@ -163,8 +163,9 @@ clip = core.lsmas.LWLibavSource(source=r'''{ut_video_full_path}''')
|
|||||||
# --- MCTemporalDenoise 'high' setting equivalent using raw MVTools ---
|
# --- MCTemporalDenoise 'high' setting equivalent using raw MVTools ---
|
||||||
clip_16bit = core.resize.Point(clip, format=vs.YUV420P16, matrix_in_s="709")
|
clip_16bit = core.resize.Point(clip, format=vs.YUV420P16, matrix_in_s="709")
|
||||||
super_clip = core.mv.Super(clip_16bit, pel=2, sharp=1)
|
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)
|
# CORRECTED: Use 'sad' for the Sum of Absolute Differences threshold, not 'thsad'
|
||||||
vectors_forward = core.mv.Analyse(super_clip, isb=False, truemotion=True, thsad=250, blksize=16)
|
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)
|
denoised_clip = core.mv.Degrain2(clip_16bit, super_clip, vectors_backward, vectors_forward)
|
||||||
final_clip = core.resize.Point(denoised_clip, format=vs.YUV420P10)
|
final_clip = core.resize.Point(denoised_clip, format=vs.YUV420P10)
|
||||||
# --- End of Denoising ---
|
# --- End of Denoising ---
|
||||||
@@ -216,7 +217,7 @@ final_clip.set_output()
|
|||||||
svtav1_param_list += [f"--{k}", str(v)]
|
svtav1_param_list += [f"--{k}", str(v)]
|
||||||
print(f" - Using SvtAv1EncApp parameters: {' '.join(svtav1_param_list)}")
|
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), "-"]
|
vspipe_cmd = ["vspipe", "-c", "y4m", str(vpy_file), "-"]
|
||||||
svtav1_cmd = ["SvtAv1EncApp2"] + svtav1_param_list + ["-i", "-", "-b", str(encoded_video_file)]
|
svtav1_cmd = ["SvtAv1EncApp2"] + svtav1_param_list + ["-i", "-", "-b", str(encoded_video_file)]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user