From 8d363882fda9d5640e794e7df7da07edfbba5fd6 Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Fri, 22 Aug 2014 15:45:11 -0700 Subject: [PATCH] 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 --- vp9/vp9_cx_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.40.0