Increase rate for big chunks with target quality

This commit is contained in:
Zen 2020-11-20 17:46:56 +02:00
parent 6050140562
commit 508d7304af

View file

@ -36,8 +36,12 @@ def adapt_probing_rate(rate, frames):
return min(rate, 2)
elif frames < 120:
return min(rate, 3)
else:
return rate
elif frames < 240:
return min(rate, 4)
elif frames > 240:
return max(rate, 5)
elif frames > 480:
return 10
def get_target_q(scores, target_quality):