mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 18:18:06 +00:00
Moved encoder check
This commit is contained in:
parent
d02794e6ad
commit
ce3a860fa7
1 changed files with 4 additions and 1 deletions
5
av1an.py
5
av1an.py
|
@ -107,6 +107,9 @@ class Av1an:
|
|||
# Pass command line args that were passed
|
||||
self.args = parser.parse_args()
|
||||
|
||||
# Set encoder if provided
|
||||
self.encoder = self.args.encoder.strip()
|
||||
|
||||
# Set mode (Video/Picture)
|
||||
self.mode = self.args.mode
|
||||
|
||||
|
@ -144,7 +147,7 @@ class Av1an:
|
|||
|
||||
# Returns number of workers that machine can handle with selected encoder
|
||||
|
||||
self.encoder = self.args.encoder.strip()
|
||||
|
||||
cpu = os.cpu_count()
|
||||
ram = round(virtual_memory().total / 2 ** 30)
|
||||
|
||||
|
|
Loading…
Reference in a new issue