From: Dmitry Kovalev Date: Fri, 22 Aug 2014 22:45:11 +0000 (-0700) Subject: Choosing GOOD mode by default. X-Git-Tag: v1.4.0~938^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d363882fda9d5640e794e7df7da07edfbba5fd6;p=libvpx Choosing GOOD mode by default. This patch fixes slow first pass problem. Mode could only be determined from the deadline value during frame encode call. Unfortunately, we use mode value before any encode calls during the first pass encoding (see set_speed_features() logic). The mode for the first pass must be different from BEST to make first pass fast. Change-Id: I562a7d32004ff631695d91c09a44d8a9076fd6b5 --- diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c index efde63f15..83f8abb16 100644 --- a/vp9/vp9_cx_iface.c +++ b/vp9/vp9_cx_iface.c @@ -323,7 +323,7 @@ static vpx_codec_err_t set_encoder_config( if (oxcf->init_framerate > 180) oxcf->init_framerate = 30; - oxcf->mode = BEST; + oxcf->mode = GOOD; switch (cfg->g_pass) { case VPX_RC_ONE_PASS: