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)}")