Changeset 6151


Ignore:
Timestamp:
Feb 4, 2020 3:17:56 AM (5 years ago)
Author:
ming
Message:

Re #2253: Changed keyframe max distance to a max of 60s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/vpx.c

    r6147 r6151  
    452452    cfg.rc_buf_optimal_sz = 500; 
    453453    cfg.rc_buf_sz = 600; 
    454     cfg.kf_max_dist = 999999; 
     454    /* kf max distance is 60s. */ 
     455    cfg.kf_max_dist = 60 * vpx_data->prm->enc_fmt.det.vid.fps.num/ 
     456                      vpx_data->prm->enc_fmt.det.vid.fps.denum; 
    455457    cfg.rc_resize_allowed = 0; 
    456458    cfg.rc_dropframe_thresh = 25; 
Note: See TracChangeset for help on using the changeset viewer.