Less determined workers for aom/rav1e

This commit is contained in:
Zen 2020-02-14 10:29:15 +02:00
parent 644a4d7e5f
commit 0b2752da0f

View file

@ -145,7 +145,7 @@ class Av1an:
ram = round(virtual_memory().total / 2 ** 30) ram = round(virtual_memory().total / 2 ** 30)
if self.encoder == 'aom' or self.encoder == 'rav1e': if self.encoder == 'aom' or self.encoder == 'rav1e':
self.workers = ceil(min(cpu, ram/1.5)) self.workers = ceil(min(cpu/2, ram/1.5))
elif self.encoder == 'svt_av1': elif self.encoder == 'svt_av1':
self.workers = ceil(min(cpu, ram)) // 5 self.workers = ceil(min(cpu, ram)) // 5