Part Number: TDA2EVM5777
Tool/software: TI-RTOS
Is it possible to configure the H264 encoder such that SPS and PPS are sent on a given interval of IDR frames?
I have configured the encoder to send all IDR frames as follows:
if (hObj->staticParams.videnc2Params.encodingPreset == XDM_USER_DEFINED){
hObj->dynamicParams.videnc2DynamicParams.intraFrameInterval = 1;
hObj->dynamicParams.videnc2DynamicParams.interFrameInterval = 1;
hObj->staticParams.videnc2Params.maxInterFrameInterval = 1;
hObj->dynamicParams.rateControlParams.maxPicSizeRatioI = 0;
}
With the above configuration the stream is as follows:
SPS | PPS | IDR | SPS | PPS | IDR | SPS | PPS | IDR | ...
Basically, all frames are sent as IDR frames and each IDR frame is prefixed with corresponding SPS and PPS.
However, I want to configure the stream such that SPS and PPS is sent only after a fixed number of IDR frames.
For example:
□ SPS num_frames_refs = 3
SPS | PPS | IDR | IDR | IDR | SPS | PPS | IDR | IDR | IDR | SPS | PPS | IDR | IDR | IDR |
I cannot find such setting and documentation in the user guide and source code.
Because of this, may I ask if this is possible and if so may I ask reference to the correct settings to do this?