summaryrefslogtreecommitdiff
path: root/toxav/codec.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-10-17 19:54:42 -0400
committerirungentoo <irungentoo@gmail.com>2014-10-17 19:54:42 -0400
commita2db81bb1df5ab75eb7a5bc2081985f2aae61940 (patch)
tree8087ab79396c896f97709f76fe82bfb2bd4fb5b2 /toxav/codec.c
parent0fb3062f08b99cfbc3871ca1365d1b6a5b737d68 (diff)
Some video encoding improvements.
Diffstat (limited to 'toxav/codec.c')
-rw-r--r--toxav/codec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxav/codec.c b/toxav/codec.c
index 10dc4f53..2f00319f 100644
--- a/toxav/codec.c
+++ b/toxav/codec.c
@@ -214,7 +214,7 @@ int init_video_encoder(CodecState *cs, uint16_t max_width, uint16_t max_height,
214 cfg.g_error_resilient = VPX_ERROR_RESILIENT_DEFAULT | VPX_ERROR_RESILIENT_PARTITIONS; 214 cfg.g_error_resilient = VPX_ERROR_RESILIENT_DEFAULT | VPX_ERROR_RESILIENT_PARTITIONS;
215 cfg.g_lag_in_frames = 0; 215 cfg.g_lag_in_frames = 0;
216 cfg.kf_min_dist = 0; 216 cfg.kf_min_dist = 0;
217 cfg.kf_max_dist = 300; 217 cfg.kf_max_dist = 5;
218 cfg.kf_mode = VPX_KF_AUTO; 218 cfg.kf_mode = VPX_KF_AUTO;
219 219
220 cs->max_width = max_width; 220 cs->max_width = max_width;
@@ -228,7 +228,7 @@ int init_video_encoder(CodecState *cs, uint16_t max_width, uint16_t max_height,
228 return -1; 228 return -1;
229 } 229 }
230 230
231 rc = vpx_codec_control(&cs->v_encoder, VP8E_SET_CPUUSED, 7); 231 rc = vpx_codec_control(&cs->v_encoder, VP8E_SET_CPUUSED, 8);
232 232
233 if ( rc != VPX_CODEC_OK) { 233 if ( rc != VPX_CODEC_OK) {
234 LOGGER_ERROR("Failed to set encoder control setting: %s", vpx_codec_err_to_string(rc)); 234 LOGGER_ERROR("Failed to set encoder control setting: %s", vpx_codec_err_to_string(rc));