From 492d52b9cc549f0d8d8d6f370425a0cee16237eb Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 20 Jun 2017 12:20:52 -0700 Subject: [PATCH] vp9: Adjust key-frame pars in vpx_temporal_svc_encoder. Sample encoder change: reduce max-intra-rate to 1000 and buf-initial to 600. Paramaters affect target size of key frame. Change-Id: I2be6bc2927f5fa74e19e1efa3fb574d23a503300 --- examples/vpx_temporal_svc_encoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c index 62243176e..72ea396d1 100644 --- a/examples/vpx_temporal_svc_encoder.c +++ b/examples/vpx_temporal_svc_encoder.c @@ -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 = 700; + cfg.rc_buf_initial_sz = 600; 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 = 1500; + const int max_intra_size_pct = 1000; vpx_codec_control(&codec, VP8E_SET_MAX_INTRA_BITRATE_PCT, max_intra_size_pct); } -- 2.40.0