Skip to content

Commit

Permalink
Merge pull request #5 from zoff99/zoff99/av_tweaks_002
Browse files Browse the repository at this point in the history
tweak VP8 video codec settings for 3g connections
  • Loading branch information
dvor authored Sep 24, 2017
2 parents a6be9d9 + a51f56d commit 18e5418
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toxcore/toxav/video.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@
#endif
cfg.g_lag_in_frames = 0;
cfg.kf_min_dist = 0;
cfg.kf_max_dist = 48;
cfg.kf_mode = VPX_KF_AUTO;
cfg.kf_max_dist = 10; /* a full frame every 10 frames minimum (can be more often, codec decides automatically) */
cfg.kf_mode = VPX_KF_AUTO; /* Encoder determines optimal placement automatically */
cfg.rc_end_usage = VPX_CQ; /* Constrained Quality (CQ) mode -> give codec a hint that we may be on low bandwidth connection */

rc = vpx_codec_enc_init(vc->encoder, VIDEO_CODEC_ENCODER_INTERFACE, &cfg, 0);

Expand Down

0 comments on commit 18e5418

Please sign in to comment.