Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Frames dropped when using the precompiled OpenH264 binary provided by Cisco

I am experiencing a problem with frames being dropped when using the precompiled OpenH264 binary provided by Cisco. However, if I compile the library myself without modifying the source, I do not have that issue.

I need to use the precompiled binary from Cisco because I'm using this for a commercial application and cannot use the open-source BSD license. I am using the ISVCEncoder's InitializeExt() call with the parameter bEnableFrameSkip set to False.

//My full configuration is as follows:
    encoder_->GetDefaultParams (&param);
    param.iUsageType = SCREEN_CONTENT_REAL_TIME;
    param.iRCMode = RC_BITRATE_MODE;
    param.fMaxFrameRate = framerate;
    param.iPicWidth = width;
    param.iPicHeight = height;
    param.iTargetBitrate = bitrate;
    param.bEnableDenoise = 0;
    param.bEnableFrameSkip = 0;
    param.iSpatialLayerNum = 1;

    SliceModeEnum sliceMode = SM_SINGLE_SLICE;

Has anyone else ran into similar problems? Does anyone know why this might be happening?

Thanks in advance

like image 928
Pantelis Avatar asked Sep 15 '26 09:09

Pantelis


1 Answers

We have to set flag bEnableFrameSkip = false.

like image 94
MMHossain Avatar answered Sep 18 '26 04:09

MMHossain