mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
- 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
This commit is contained in:
parent
0ff6a2acf7
commit
7084a69518
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue