From 7050181ab718c75de4ca98dfb81dca158fc453af Mon Sep 17 00:00:00 2001 From: Zen Date: Fri, 25 Dec 2020 18:15:52 +0200 Subject: [PATCH] simplified script running av1an from command line --- av1an.py | 31 ++++++++----------------------- av1an/__init__.py | 2 +- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/av1an.py b/av1an.py index 3194ba5..639059b 100755 --- a/av1an.py +++ b/av1an.py @@ -1,28 +1,13 @@ #!/usr/bin/env python3 -from av1an.arg_parse import Args -from startup.setup import startup_check +from av1an import Args from manager import Manager - -class Av1an: - """Av1an - Python framework for AV1, VP9, VP8 encoding""" - def __init__(self): - parser = Args() - self.args = parser.get_project() - - def main_thread(self): - """Main.""" - startup_check(self.args) - - manager = Manager.Main(self.args) - - manager.run() - # main_queue(self.args) - - -def main(): - Av1an().main_thread() - +from vmaf import VMAF +from startup.setup import startup_check if __name__ == '__main__': - main() + parser = Args() + project = parser.get_project() + startup_check(project) + manager = Manager.Main(project) + manager.run() diff --git a/av1an/__init__.py b/av1an/__init__.py index 8c4bb65..7a47819 100755 --- a/av1an/__init__.py +++ b/av1an/__init__.py @@ -1,4 +1,4 @@ #!/usr/bin/env python3 import vmaf -import argparse \ No newline at end of file +from .arg_parse import Args \ No newline at end of file