From 129f620fa5f8996bc73fd1031a8475e4c2a2f441 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 12 Dec 2014 19:55:47 -0500 Subject: [PATCH] Increase video quality and distance between keyframes. --- toxav/codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toxav/codec.c b/toxav/codec.c index a1aa2869..6aefa0b2 100644 --- a/toxav/codec.c +++ b/toxav/codec.c @@ -39,8 +39,8 @@ #include "rtp.h" #include "codec.h" -/* Assume 24 fps*/ -#define MAX_ENCODE_TIME_US ((1000 / 24) * 1000) +/* Good quality encode. */ +#define MAX_ENCODE_TIME_US VPX_DL_GOOD_QUALITY #define MAX_DECODE_TIME_US 0 // TODO this has to be exchanged in msi @@ -266,7 +266,7 @@ static int init_video_encoder(CSSession *cs, uint16_t max_width, uint16_t max_he cfg.g_error_resilient = VPX_ERROR_RESILIENT_DEFAULT | VPX_ERROR_RESILIENT_PARTITIONS; cfg.g_lag_in_frames = 0; cfg.kf_min_dist = 0; - cfg.kf_max_dist = 5; + cfg.kf_max_dist = 48; cfg.kf_mode = VPX_KF_AUTO; cs->max_width = max_width;