Hi!
I'm using the HDVICP" accelerated mpeg4 encoder to compress high resolution (up to 1080p) video on the dm8168 media processor. Is it possible somehow to set the framerate of the encoder? I tried three different API without success.
By using the output port definition:
PortDef.format.video.xFramerate = 10 << 16; //10fps in Q16 format
With openmax API:
OMX_IndexConfigVideoFramerate lFramerate;
...
OMX_SetParameter(OMX_CONFIG_FRAMERATETYPE, &lFramerate); //Will lead to unsupported index error
By using mpeg4 codec dynamic params:
XDAS_Int32 lFramerate = (pParams->aOutFrameRate * 1000) >> 16;
lDynParams.videoDynamicParams.mpeg4EncDynamicParams.videnc2DynamicParams.targetFrameRate = lFramerate;
lDynParams.videoDynamicParams.mpeg4EncDynamicParams.videnc2DynamicParams.refFrameRate = lFramerate;
OMX_SetParameter (lHandle, OMX_TI_IndexParamVideoDynamicParams, &lDynParams); //API call works but fps remains 30 fps.
All these three methods either fail or leave the framerate at 30 whatever the value I try to set. Also, Feeding the encoder with a lower fps stream will always lead to a 30 fps mpeg4 stream.
Is it possible somehow to set the encoder framerate?
Thanks
Bruno Marchand