Commit 7084a695 authored by smorlat's avatar smorlat

- send key frames at 2 and 4 seconds after the start of the call



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@102 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 0ff6a2ac
......@@ -80,7 +80,7 @@ static void enc_preprocess(MSFilter *f){
ms_message("Lucky guy, you have a hacked x264 lib that allows multislicing !");
params.slice_size_threshold=ms_get_payload_max_size()-100; /*-100 security margin*/
#endif
/*params.i_level_idc=10;*/
/*params.i_level_idc=30;*/
params.rc.i_rc_method = X264_RC_ABR;
params.rc.i_bitrate=(int)( ( ((float)d->bitrate)*0.8)/1000.0);
params.rc.f_rate_tolerance=0.1;
......@@ -132,6 +132,10 @@ static void enc_process(MSFilter *f){
x264_nal_t *xnals=NULL;
int num_nals=0;
/*send I frame 2 seconds and 4 seconds after the beginning */
if (d->framenum==(int)d->fps*2 || d->framenum==(int)d->fps*4)
d->generate_keyframe=TRUE;
if (d->generate_keyframe){
xpic.i_type=X264_TYPE_IDR;
d->generate_keyframe=FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment