Hi,
Im working on a h.264 encoder based application on DM8168 where i need to change bitrate dynamically. I have referred to TI's user guide for this and lot of posts but I'm not able to achieve this.
Here's what I'm doing in a nutshell -
{
OMX_VIDEO_CONFIG_DYNAMICPARAMS tDynParams;
<some initialization here>
OMX_GetConfig(enc_comp, OMX_TI_IndexConfigVideoDynamicParams, &tDynParams);
tDynParams.videoDynamicParams.h264EncDynamicParams.\
videnc2DynamicParams.targetBitRate = <my_target_bitrate>;
OMX_SetConfig(enc_comp, OMX_TI_IndexConfigVideoDynamicParams, &tDynParams);
...
}
This does not give any error
I have collected logs from loggerDump also. Below is snippet of what it shows -
...
N:Video P:1 #:05345 T:000006fb86551235 M:xdc.runtime.Main S:OMX_TI_VIDENC_Process::Line 5089::VENC->Before VIDENC2_control XDM_SETPARAMS
N:Video P:1 #:05348 T:000006fb865a8023 M:xdc.runtime.Main S:OMX_TI_VIDENC_Process::Line 5112::VENC->VIDENC2_control XDM_SETPARAMS Successful
N:Video P:1 #:05349 T:000006fb865b6f97 M:xdc.runtime.Main S:OMX_TI_VIDENC_Process::Line 5130::VENC->VIDENC2_control XDM_GETSTATUS Successful
N:Video P:1 #:05350 T:000006fb865bf76b M:xdc.runtime.Main S:OMX_TI_VIDENC_Process::Line 5145::VENC->VIDENC2_control XDM_SETPARAMS Complete
N:Video P:1 #:05351 T:000006fb865da075 M:xdc.runtime.Main S:OMX_TI_VIDENC_Process::Line 5257::VENC->First VIDENC2_process after VIDENC2_control:XDM_SETPARAMS command
...
Again, no error reported
But what I'm seeing is that the bitrate change is not taking effect, except for the first time.
Can anyone let me know if this behaviour is expected or is there any way around this
I'm using EZSDK v5_05_02_00
Regards,
Manu