mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 18:18:06 +00:00
Fix for boost
This commit is contained in:
parent
6b07cfd845
commit
694fbd490e
2 changed files with 3 additions and 3 deletions
4
av1an.py
4
av1an.py
|
@ -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)
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue