summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-12-12 19:55:47 -0500
committerirungentoo <irungentoo@gmail.com>2014-12-12 19:55:47 -0500
commit129f620fa5f8996bc73fd1031a8475e4c2a2f441 (patch)
treef0add81336f9110bef6b1a7c26b8f934784dc5df
parent39cc14cceaae74ac5c7e7c1d513eddb745e399c4 (diff)
Increase video quality and distance between keyframes.
-rw-r--r--toxav/codec.c6
1 files 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 @@
39#include "rtp.h" 39#include "rtp.h"
40#include "codec.h" 40#include "codec.h"
41 41
42/* Assume 24 fps*/ 42/* Good quality encode. */
43#define MAX_ENCODE_TIME_US ((1000 / 24) * 1000) 43#define MAX_ENCODE_TIME_US VPX_DL_GOOD_QUALITY
44#define MAX_DECODE_TIME_US 0 44#define MAX_DECODE_TIME_US 0
45 45
46// TODO this has to be exchanged in msi 46// 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
266 cfg.g_error_resilient = VPX_ERROR_RESILIENT_DEFAULT | VPX_ERROR_RESILIENT_PARTITIONS; 266 cfg.g_error_resilient = VPX_ERROR_RESILIENT_DEFAULT | VPX_ERROR_RESILIENT_PARTITIONS;
267 cfg.g_lag_in_frames = 0; 267 cfg.g_lag_in_frames = 0;
268 cfg.kf_min_dist = 0; 268 cfg.kf_min_dist = 0;
269 cfg.kf_max_dist = 5; 269 cfg.kf_max_dist = 48;
270 cfg.kf_mode = VPX_KF_AUTO; 270 cfg.kf_mode = VPX_KF_AUTO;
271 271
272 cs->max_width = max_width; 272 cs->max_width = max_width;