Update av1an.py

This commit is contained in:
Zen 2020-01-25 18:45:04 +02:00
parent 1521e9f9c3
commit d8f3e95a10

View file

@ -279,10 +279,20 @@ class Av1an:
else: else:
self.encoding_params = self.args.encoding_params 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' rav1e - {self.encoding_params} '
f'--output {file[1]}.ivf', f'{file[2]}.ivf {self.logging}') 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 return pass_1_commands
def compose_encoding_queue(self, files): def compose_encoding_queue(self, files):