Fix for boost

This commit is contained in:
Zen 2020-05-13 13:53:10 +03:00
parent 6b07cfd845
commit 694fbd490e
2 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ class Av1an:
self.encoders = {'svt_av1': 'SvtAv1EncApp', 'rav1e': 'rav1e', 'aom': 'aomenc', 'vpx': 'vpxenc'}
@staticmethod
def get_cq(self, command):
def get_cq(command):
"""Return cq values from command"""
matches = re.findall(r"--cq-level= *([^ ]+?) ", command)
return int(matches[-1])
@ -591,7 +591,7 @@ class Av1an:
b_limit = self.d.get('boost_limit')
b_range = self.d.get('boost_range')
try:
cq = self.get_cq(command)
cq = Av1an.get_cq(command)
if not new_cq:
if br_geom < 128:
new_cq = cq - round((128 - br_geom) / 128 * b_range)

View file

@ -15,7 +15,7 @@ with open("README.md", "r") as f:
setuptools.setup(
name="Av1an",
version="1.9.0",
version="1.9.0-1",
author="Master_Of_Zen",
author_email="master_of_zen@protonmail.com",
description="All-in-one encode toolkit",