mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +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'}
|
self.encoders = {'svt_av1': 'SvtAv1EncApp', 'rav1e': 'rav1e', 'aom': 'aomenc', 'vpx': 'vpxenc'}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_cq(self, command):
|
def get_cq(command):
|
||||||
"""Return cq values from command"""
|
"""Return cq values from command"""
|
||||||
matches = re.findall(r"--cq-level= *([^ ]+?) ", command)
|
matches = re.findall(r"--cq-level= *([^ ]+?) ", command)
|
||||||
return int(matches[-1])
|
return int(matches[-1])
|
||||||
|
@ -591,7 +591,7 @@ class Av1an:
|
||||||
b_limit = self.d.get('boost_limit')
|
b_limit = self.d.get('boost_limit')
|
||||||
b_range = self.d.get('boost_range')
|
b_range = self.d.get('boost_range')
|
||||||
try:
|
try:
|
||||||
cq = self.get_cq(command)
|
cq = Av1an.get_cq(command)
|
||||||
if not new_cq:
|
if not new_cq:
|
||||||
if br_geom < 128:
|
if br_geom < 128:
|
||||||
new_cq = cq - round((128 - br_geom) / 128 * b_range)
|
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(
|
setuptools.setup(
|
||||||
name="Av1an",
|
name="Av1an",
|
||||||
version="1.9.0",
|
version="1.9.0-1",
|
||||||
author="Master_Of_Zen",
|
author="Master_Of_Zen",
|
||||||
author_email="master_of_zen@protonmail.com",
|
author_email="master_of_zen@protonmail.com",
|
||||||
description="All-in-one encode toolkit",
|
description="All-in-one encode toolkit",
|
||||||
|
|
Loading…
Reference in a new issue