Commit 7084a695 authored by smorlat's avatar smorlat
Browse files

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

git-svn-id: svn+ssh:// 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*/
params.rc.i_rc_method = X264_RC_ABR;
params.rc.i_bitrate=(int)( ( ((float)d->bitrate)*0.8)/1000.0);
......@@ -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)
if (d->generate_keyframe){
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