summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorpaulwilkins <paulwilkins@google.com>2017-10-10 19:49:59 +0100
committerpaulwilkins <paulwilkins@google.com>2017-11-08 10:41:04 +0000
commit93e83fd7cfd7322da61960e8e8e5a5685b5245fb (patch)
treea4accda42ae9dd181445fe7000b2f6a2e95b17da /vp8
parent6fbc354c97ca45754a76674dba5f6b43c2b0c15a (diff)
downloadlibvpx-93e83fd7cfd7322da61960e8e8e5a5685b5245fb.tar
libvpx-93e83fd7cfd7322da61960e8e8e5a5685b5245fb.tar.gz
libvpx-93e83fd7cfd7322da61960e8e8e5a5685b5245fb.tar.bz2
libvpx-93e83fd7cfd7322da61960e8e8e5a5685b5245fb.zip
CVBR command line option.
Added command line control of Corpus VBR. The new corpus vbr mode is a variant of standard VBR (end-usage=0) where the complexity distribution mid point is passed in rather than calculated for a specific clip or chunk. The new variant is enabled by setting a new command line parameter --corpus-complexity to a zero value. Omitting this parameter or setting it to 0 will cause the codec to use standard vbr mode. The correct value for a given corpus needs to be derived experimentally using a training set such that the average rate for the corpus is close to the target value. For example our using our low res test set with upper and lower vbr limits of 50%-150% and a corpus complexity value of 650 gives a similar average data rate across the set to using standard vbr. However, with the corpus mode easier clips will be allocated fewer bits and harder clips more bits rather than having the same rate target for all. Change-Id: I03f0fc8c6fb0ee32dc03720fea6a3f1949118589
Diffstat (limited to 'vp8')
-rw-r--r--vp8/vp8_cx_iface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vp8/vp8_cx_iface.c b/vp8/vp8_cx_iface.c
index f8475ed61..af6689fd9 100644
--- a/vp8/vp8_cx_iface.c
+++ b/vp8/vp8_cx_iface.c
@@ -1216,6 +1216,7 @@ static vpx_codec_enc_cfg_map_t vp8e_usage_cfg_map[] = {
50, /* rc_two_pass_vbrbias */
0, /* rc_two_pass_vbrmin_section */
400, /* rc_two_pass_vbrmax_section */
+ 0, // rc_2pass_vbr_corpus_complexity (only has meaningfull for VP9)
/* keyframing settings (kf) */
VPX_KF_AUTO, /* g_kfmode*/