diff options
author | Ralph Giles <giles@mozilla.com> | 2012-01-05 10:39:38 -0600 |
---|---|---|
committer | James Zern <jzern@google.com> | 2012-01-06 11:34:45 -0800 |
commit | 2a0d7b1a55aff0870f6bda485cf7cb63662c2337 (patch) | |
tree | b794a3baa24f63cd37c05eede11bd542e8735673 | |
parent | 70a5104eada4058524c3ce43754731f0c9e239a2 (diff) | |
download | libvpx-2a0d7b1a55aff0870f6bda485cf7cb63662c2337.tar libvpx-2a0d7b1a55aff0870f6bda485cf7cb63662c2337.tar.gz libvpx-2a0d7b1a55aff0870f6bda485cf7cb63662c2337.tar.bz2 libvpx-2a0d7b1a55aff0870f6bda485cf7cb63662c2337.zip |
Reduce the default kf_max_dist to 128.
The default maximum keyframe interval is 9999, or over five minutes
at normal video rates. When the encoder produces streams with such
a long interval seeking (with correct output) is more expensive,
and live streaming is impossible.
Of course the encoding application should set this parameter
based on its knowledge of the intended use of the stream, but
reducing the default gives better results for applications
which do not.
Change-Id: I900b15d74ce72ecc3ade4d43f758c5cf97a2098a
-rw-r--r-- | vp8/vp8_cx_iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/vp8_cx_iface.c b/vp8/vp8_cx_iface.c index 6181ee8ee..abaf85b40 100644 --- a/vp8/vp8_cx_iface.c +++ b/vp8/vp8_cx_iface.c @@ -1237,7 +1237,7 @@ static vpx_codec_enc_cfg_map_t vp8e_usage_cfg_map[] = /* keyframing settings (kf) */ VPX_KF_AUTO, /* g_kfmode*/ 0, /* kf_min_dist */ - 9999, /* kf_max_dist */ + 128, /* kf_max_dist */ #if VPX_ENCODER_ABI_VERSION == (1 + VPX_CODEC_ABI_VERSION) 1, /* g_delete_first_pass_file */ |