simplified script running av1an from command line

This commit is contained in:
Zen 2020-12-25 18:15:52 +02:00
parent a5a754d606
commit 7050181ab7
2 changed files with 9 additions and 24 deletions

View file

@ -1,28 +1,13 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from av1an.arg_parse import Args from av1an import Args
from startup.setup import startup_check
from manager import Manager from manager import Manager
from vmaf import VMAF
class Av1an: from startup.setup import startup_check
"""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()
if __name__ == '__main__': if __name__ == '__main__':
main() parser = Args()
project = parser.get_project()
startup_check(project)
manager = Manager.Main(project)
manager.run()

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import vmaf import vmaf
import argparse from .arg_parse import Args