mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 18:18:06 +00:00
fix
This commit is contained in:
parent
954b7743cb
commit
06598bd27a
1 changed files with 3 additions and 0 deletions
3
av1an.py
3
av1an.py
|
@ -34,7 +34,9 @@ class Av1an:
|
|||
def __init__(self):
|
||||
"""
|
||||
Av1an - AV1 wrapper for AV1 encoders
|
||||
"""
|
||||
self.temp_dir = Path('.temp')
|
||||
|
||||
self.FFMPEG = 'ffmpeg -y -hide_banner -loglevel error'
|
||||
self.pix_format = 'yuv420p'
|
||||
self.encoder = 'aom'
|
||||
|
@ -54,6 +56,7 @@ class Av1an:
|
|||
|
||||
self.logger = logging.getLogger()
|
||||
self.logger.setLevel(logging.DEBUG)
|
||||
|
||||
def call_cmd(self, cmd, capture_output=False):
|
||||
if capture_output:
|
||||
return subprocess.run(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout
|
||||
|
|
Loading…
Reference in a new issue