mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 10:40:51 +00:00
simplified script running av1an from command line
This commit is contained in:
parent
a5a754d606
commit
7050181ab7
2 changed files with 9 additions and 24 deletions
31
av1an.py
31
av1an.py
|
@ -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()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import vmaf
|
import vmaf
|
||||||
import argparse
|
from .arg_parse import Args
|
Loading…
Reference in a new issue