Commit e7722332 authored by Simon Morlat's avatar Simon Morlat

don't send IDR frames every 10 seconds in AVPF mode

parent 04afbb78
......@@ -107,7 +107,7 @@ void MSOpenH264Encoder::initialize()
params.iMaxBitrate = maxBitrate;
params.iRCMode = RC_BITRATE_MODE;
params.fMaxFrameRate = mVConf.fps;
params.uiIntraPeriod=mVConf.fps*10;
params.uiIntraPeriod = mAVPFEnabled ? (mVConf.fps * 40) :(mVConf.fps*10);
//params.bEnableRc = true;
params.bEnableFrameSkip = true;
params.bPrefixNalAddingCtrl = false;
......@@ -198,6 +198,8 @@ void MSOpenH264Encoder::feed()
if (sFbi.eFrameType == videoFrameTypeIDR) {
ms_iframe_requests_limiter_notify_iframe_sent(&mIFrameLimiter, mFilter->ticker->time);
ms_message("MSOpenH264Encoder: sending IDR");
}else if (sFbi.eFrameType == videoFrameTypeI){
ms_message("MSOpenH264Encoder: sending I (but not IDR) frame");
}
mFrameCount++;
if (!mAVPFEnabled && (mFrameCount == 1)) {
......
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