From e1d2946ac35aa7e18f4f74d6397121ac4e6824be Mon Sep 17 00:00:00 2001 From: pat-e Date: Mon, 11 Aug 2025 11:21:26 +0200 Subject: [PATCH] wrong parameter when starting vspipe. corrected parameter --- anime_audio_filtered_helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anime_audio_filtered_helper.py b/anime_audio_filtered_helper.py index c99846f..7ef05c3 100644 --- a/anime_audio_filtered_helper.py +++ b/anime_audio_filtered_helper.py @@ -216,7 +216,8 @@ final_clip.set_output() svtav1_param_list += [f"--{k}", str(v)] print(f" - Using SvtAv1EncApp parameters: {' '.join(svtav1_param_list)}") - vspipe_cmd = ["vspipe", "--y4m", str(vpy_file), "-"] + # CORRECTED: 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)] print(f" - Running: {' '.join(vspipe_cmd)} | {' '.join(svtav1_cmd)}")