mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Fix target vmaf min/max q default setting
This commit is contained in:
parent
e3df0dd338
commit
120b694bdb
1 changed files with 5 additions and 4 deletions
|
@ -25,11 +25,12 @@ def set_vmaf(args):
|
|||
print('Target vmaf require more than 3 probes/steps')
|
||||
terminate()
|
||||
|
||||
default_ranges = {'svt_av1': (20, 40), 'rav1e': (70, 150), 'aom': (25, 50), 'vpx': (25, 50),'x265': (20, 40), 'x264': (20, 35), 'vvc': (20, 50)}
|
||||
|
||||
defaul_ranges = {'svt_av1': (20, 40), 'rav1e': (70, 150), 'aom': (25, 50), 'vpx': (25, 50),'x265': (20, 40), 'x264': (20, 35), 'vvc': (20, 50)}
|
||||
|
||||
if args.min_q is None or args.max_q is None:
|
||||
args.min_q, args.max_q = defaul_ranges.get(args.encoder)
|
||||
if args.min_q is None:
|
||||
args.min_q, _ = default_ranges[args.encoder]
|
||||
if args.max_q is None:
|
||||
_, args.max_q = default_ranges[args.encoder]
|
||||
|
||||
|
||||
def check_exes(args: Args):
|
||||
|
|
Loading…
Reference in a new issue