From 56c5e77aae3ad1122142f82b763c2f42afaad3a4 Mon Sep 17 00:00:00 2001 From: trixoniisama <93526043+trixoniisama@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:59:49 +0100 Subject: [PATCH] Fix linux this time around --- auto-boost_2.5.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/auto-boost_2.5.py b/auto-boost_2.5.py index 427c3ee..2fa4a71 100755 --- a/auto-boost_2.5.py +++ b/auto-boost_2.5.py @@ -211,10 +211,7 @@ def calculate_xpsnr(src_file, enc_path, xpsnr_txt_path): if IS_WINDOWS: xpsnr_txt_path = xpsnr_txt_path.replace(':', r'\\:') - if IS_WINDOWS: - xpsnr_command = f'ffmpeg -i "{src_file}" -i "{enc_path}" -lavfi xpsnr="stats_file={xpsnr_txt_path}" -f null {NULL_DEVICE}' - else: - xpsnr_command = f'ffmpeg -i {src_file} -i {enc_path} -lavfi xpsnr="stats_file={xpsnr_txt_path}" -f null {NULL_DEVICE}' + xpsnr_command = f'ffmpeg -i "{src_file}" -i "{enc_path}" -lavfi xpsnr="stats_file={xpsnr_txt_path}" -f null {NULL_DEVICE}' p = subprocess.Popen(xpsnr_command, shell=True) exit_code = p.wait()