vp9: Reduce overshoot factor for setting longer gf interval.
authorMarco <marpan@google.com>
Wed, 8 Jun 2016 22:13:52 +0000 (15:13 -0700)
committerMarco <marpan@google.com>
Wed, 8 Jun 2016 22:15:15 +0000 (15:15 -0700)
Only affects 1 pass vbr mode.

Change-Id: Ifd7ff3771eabe322a371b35b159cace6baa3b070

vp9/encoder/vp9_ratectrl.c

index 323aec6..291e787 100644 (file)
@@ -1557,7 +1557,7 @@ void vp9_rc_get_one_pass_vbr_params(VP9_COMP *cpi) {
     // Increase gf interval at high Q and high overshoot.
     if (cm->current_video_frame > 30 &&
         rc->avg_frame_qindex[INTER_FRAME] > (7 * rc->worst_quality) >> 3 &&
-        rate_err > 4.0) {
+        rate_err > 3.5) {
       rc->baseline_gf_interval =
           VPXMIN(15, (3 * rc->baseline_gf_interval) >> 1);
     } else if (cm->current_video_frame > 30 &&