Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Venkat_R_1
Beginner
57 Views

H264 Encoder - Rate Control Method

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
Employee
57 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

Reply