From ce3a860fa76fd96a4aeabd5413469d051d15d122 Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Mon, 27 Jan 2020 19:39:46 +0200 Subject: [PATCH] Moved encoder check --- av1an.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/av1an.py b/av1an.py index e0b0a80..4b8dde4 100755 --- a/av1an.py +++ b/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)