From bc24610b6391e6c5f6267619c568207ea97ef736 Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Tue, 15 Sep 2020 21:39:23 +0300 Subject: [PATCH] fix --- Scenedetection/aom_kf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scenedetection/aom_kf.py b/Scenedetection/aom_kf.py index 3b6c9cc..aabea9a 100755 --- a/Scenedetection/aom_kf.py +++ b/Scenedetection/aom_kf.py @@ -162,7 +162,7 @@ def compose_aomsplit_first_pass_command(video_path: Path, stat_file: Path, ffmpe # TODO(n9Mtq4): if an encoder other than aom is being used, video_params becomes the default so -w -h may be needed again # Adjust number of threads - video_params = re.sub(r'(--threads=.\w)', f'--threads={os.cpu_count() * 2}', video_params) + video_params = re.sub(r'(--threads=.\w)', f'--threads={os.cpu_count() * 2}', ' '.join(video_params)) e = ['aomenc', '--passes=2', '--pass=1', *video_params, f'--fpf={stat_file.as_posix()}', '-o', os.devnull, '-']