From d8f3e95a10664732a1710f37b2ef538b25088c7b Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Sat, 25 Jan 2020 18:45:04 +0200 Subject: [PATCH] Update av1an.py --- av1an.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/av1an.py b/av1an.py index cf3dc6d..2778e75 100755 --- a/av1an.py +++ b/av1an.py @@ -279,10 +279,20 @@ class Av1an: else: self.encoding_params = self.args.encoding_params - pass_1_commands = [(f'-i {file[0]} {self.ffmpeg_pipe} ' + + pass_1_commands = [(f'-i {file[0]} {self.ffmpeg_pipe} ' f' rav1e - {self.encoding_params} ' f'--output {file[1]}.ivf', f'{file[2]}.ivf {self.logging}') - for file in file_paths] + for file in file_paths] + + pass_2_commands = [(f'-i {file[0]} {self.ffmpeg_pipe} ' + f' rav1e - --first-pass {file[0]}.json {self.encoding_params} ' + f'--output {file[1]}.ivf', + f'-i {file[0]} {self.ffmpeg_pipe} ' + f' rav1e - --second-pass {file[0]}.json {self.encoding_params} ' + f'--output {file[1]}.ivf', + f'{file[2]}.ivf {self.logging}') + for file in file_paths] + return pass_1_commands def compose_encoding_queue(self, files):