mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Less determined workers for aom/rav1e
This commit is contained in:
parent
644a4d7e5f
commit
0b2752da0f
1 changed files with 1 additions and 1 deletions
2
av1an.py
2
av1an.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue