Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

H264 Encoder - Rate Control Method

Venkat_R_1
Beginner
268 Views

Hi,

Version IPP 5.3

I am encoding YUV420 image into H264. I would like to use quant parameter values for rate control method instead of constant bitrate. I used the following with MPEG encoder and it worked flawlessly with good compression. I just want to replicate the same for H264 encoder.

....m_pMPEGParams->m_Param.quantIVOP = m_pMPEGParams->m_Param.quantPVOP = 5;

Following is what I did for H264, and whatever QP values I use I seem to get the same level of compression which is 3rd of YUV420 data length. Whereas, MPEG4 with same qp values yielded much much better compression (about 1/30 of YUV420 length).

.... m_pH264Params->rate_controls.method = UMC::H264_RCM_QUANT;
.... m_pH264Params->rate_controls.quantI = m_pH264Params->rate_controls.quantP = 5;

Any suggestions or pointers are much appreciated. Thank you very much.

0 Kudos
1 Reply
Chao_Y_Intel
Moderator
268 Views

Hello,

For H.264, it needs to use H264_RCM_DEBUG to take the QP parameters. See how the following works:

.... m_pH264Params->rate_controls.method = H264_RCM_DEBUG;

.... m_pH264Params->rate_controls.quantI = m_pH264Params->rate_controls.quantP = 5;

Thanks,

Chao

0 Kudos
Reply