This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Modify h264 encode frame rate doesn't work!!

Hi,

  I'm trying to change h264 encode fps to 20(use 8148 with DVRRDK3.0 McFW multi-chan usecase),

modify the following parameters:

Venc_setInputFrameRate(chId, 30 );

params.frameRate = 20;

Venc_setDynamicParam(chId, 0, &params, VENC_FRAMERATE);

and also set the related params,

pLinkDynPrm->intraFrameInterval     = 20;

pLinkChPrm->encodingPreset          = XDM_USER_DEFINED;

(encLink_h264.c)

staticParams->vuiCodingParams.vuiCodingPreset = IH264_VUICODING_USERDEFINED;
staticParams->vuiCodingParams.hrdParamsPresentFlag = 1;
staticParams->vuiCodingParams.timingInfoPresentFlag = 1;

the encode file size would be smaller than 30 fps file,

and I use h264 tool to get:

MaxFPS =40 (time_scale=40000, num_units_in_tick=1000)

and it has I frame in every 20 frames, 

It's truly became 20 frames per second by counting step by step,

but played by VLC player will be fast forward,

how to solve this problem? thanks.