]> granicus.if.org Git - libvpx/commitdiff
vp9: Adjust key-frame pars in vpx_temporal_svc_encoder.
authorMarco <marpan@google.com>
Tue, 20 Jun 2017 16:05:56 +0000 (09:05 -0700)
committerMarco <marpan@google.com>
Tue, 20 Jun 2017 16:08:13 +0000 (09:08 -0700)
Sample encoder change: reduce max-intra-rate to 1500 and
buf-initial to 700. Paramaters affect target size of key frame.

Change-Id: I01e238378b63eeef28dfc2178baadffcd3cc7561

examples/vpx_temporal_svc_encoder.c

index 0f14fadeb362b374a57e0f68733db8f89ba5f31d..62243176e76805230167ae8a49ae775f792b682c 100644 (file)
@@ -637,7 +637,7 @@ int main(int argc, char **argv) {
   if (strncmp(encoder->name, "vp9", 3) == 0) cfg.rc_max_quantizer = 52;
   cfg.rc_undershoot_pct = 50;
   cfg.rc_overshoot_pct = 50;
-  cfg.rc_buf_initial_sz = 800;
+  cfg.rc_buf_initial_sz = 700;
   cfg.rc_buf_optimal_sz = 600;
   cfg.rc_buf_sz = 1000;
 
@@ -746,7 +746,7 @@ int main(int argc, char **argv) {
   // For generating smaller key frames, use a smaller max_intra_size_pct
   // value, like 100 or 200.
   {
-    const int max_intra_size_pct = 2000;
+    const int max_intra_size_pct = 1500;
     vpx_codec_control(&codec, VP8E_SET_MAX_INTRA_BITRATE_PCT,
                       max_intra_size_pct);
   }