Skip to main content

Advertisement

Log in

Adaptive Gradient Information and BFGS Based Inter Frame Rate Control for High Efficiency Video Coding

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

In order to meet the emerging demands of high-fidelity video services, a new video coding standard — High Efficiency Video Coding (HEVC) is developed to improve the compression performance of high definition (HD) videos and save half of the bitrate for the same perceptual video quality compared with H.264/Advanced Video Coding (AVC). Rate control still plays a significant role in HD video data transmission via the communication channel. However, R-lambda model based HEVC rate control algorithm does not take the relationship between the encoding complexity and Human Visual System (HVS) into account, what’s more, the convergence speed of Least Mean Square (LMS) algorithm is slow. In this paper, an adaptive gradient information and Broyden Fletcher Goldfarb Shanno (BFGS) based R-lambda model (GBRL) is proposed for the inter frame rate control, where the gradient based on Sobel operator can effectively measure the frame-content complexity and BFGS algorithm converges speedily than LMS algorithm. Experimental results show that the proposed GBRL method can achieve bitrate error reduction and peak signal to noise ratio (PSNR) improvement especially for the sequences with large motion, compared to the state-of-the-art rate control methods. In addition, if the optimal initial quantization parameter (QP) prediction model based on linear regression can be incorporated into the proposed GBRL method, the performance of rate control can be further improved.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

References

  1. Cheng X (1997) Convergence of Newton’s Method. Journal of Zhejiang University of Technology 25(3):230–235

    MathSciNet  Google Scholar 

  2. Choi H, Nam J, Yoo J, Sim D, and Bajić I (2012) Rate control based on unified RQ model for HEVC. JCT-VCof ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11, JCT-VC H0213 (m23088), San José, CA, USA

  3. Gao J, Xue W (2005) Analysis of the convergence rate on Newton iteration method. Journal of Zhengzhou University of Light Industry (Natural Science) 20(4):100–102

    Google Scholar 

  4. Gao W, Kwong S, Yuan H, Wang X (2016) DCT Coefficient Distribution Modeling and Quality Dependency Analysis Based Frame-level Bit Allocation for HEVC. IEEE Transactions on Circuits and Systems for Video Technology:139–153. doi:10.1109/TCSVT.2015.2444671

  5. Jing X, Lap-Pui Chau (2006) A Novel Intra-Rate Estimation Method for H.264 Rate Control. IEEE Int Symp Circuits Syst 5019–5022. doi:10.1109/ISCAS.2006.1693759

  6. Jing X, Chau L-P, Siu W-C (2008) Frame Complexity-Based Rate-Quantization Model for H.264 /AVC Intraframe Rate Control. IEEE Signal Process Lett 15:373–376. doi:10.1109/LSP.2008.920010

    Article  Google Scholar 

  7. Lee B, Kim M (2011) Modeling Rates and Distortions Based on a Mixture of Laplacian Distributions for Inter-Predicted Residues in Quadtree Coding of HEVC. IEEE Signal Process Lett:571–574. doi:10.1109/LSP.2011.2163935

  8. Lee B, Kim M, Nguyen T (2014) A Frame-Level Rate Control Scheme Based on Texture and Nontexture Rate Models for High Efficiency Video Coding. IEEE Transactions on Circuits and Systems for Video Technology:465–479. doi:10.1109/TCSVT.2013.2276880

  9. Li B, Li H, Li L, Zhang J (2014) Lambda Domain Rate Control Algorithm for High Efficiency Video Coding. IEEE Trans Image Process 23(9):3841–3854. doi:10.1109/TIP.2014.2336550

    Article  MathSciNet  MATH  Google Scholar 

  10. Liang X, Wang Q, Zhou Y, Luo B, and Men A (2013) A novel R-Q model based rate control scheme in HEVC. Vis Commun Image Process 1–6. doi:10.1109/VCIP.2013.6706343

  11. Lin H, He X, Teng Q, Fu W, Xiong S (2016) Adaptive bit allocation scheme for extremely low-delay intraframe rate control in high efficiency video coding. J. Electron. Imaging 25(4). doi:10.1117/1.JEI.25.4.043008

  12. Liu G, Yin H (1994) Analysis on the global convergence of BFGS algorithm. Journal of Qufu Normal University 20(1):1–8

    MathSciNet  MATH  Google Scholar 

  13. Shi C, Huang D (2012) Research on H.264 Rate Control Algorithm. MS Thesis of Central South University, pp.1–61

  14. Sun H, Liao J (2008) Image Fringe Detection and Realization Based on Sobel Operator. Comput Knowl Technol 1105–1125. doi:10.3969/j.issn.1009-3044.2008.15.054

  15. Wang H, Kwong S (2008) Rate-Distortion Optimization of Rate Control for H.264 With Adaptive Initial Quantization Parameter Determination. IEEE Transactions on Circuits and Systems for Video Technology 18(1):140–144

    Article  Google Scholar 

  16. Wang H, Zhang X (2008) An Improved QP Setting Algorithm of I Frame and Its Application in Scene Change. Journal of Beijing University of Posts and Telecommunications 31(6):99–103

    Google Scholar 

  17. Wu S (2012) The optimal question solution of BFGS and DFP and their realization in matlab. J. Chang. Univ 26(5):1–3

    Google Scholar 

  18. Wu D, Pan F, Lim KP, Wu S, Li ZG, Lin X, Rahardja S, Ko CC (2005) Fast Intermode Decision in H.264 /AVC Video Coding. IEEE Transactions on Circuits and Systems for Video Technology 15(6):953–958. doi:10.1109/TCSVT.2005.848304

    Article  Google Scholar 

  19. Yoon Y, Kim H, Jung S, Jun D, Kim Y, Choi J, Ko S (2012) A New Rate Control Method for Hierarchical Video Coding in HEVC. IEEE international Symposium on Broadband Multimedia Systems and Broadcasting:1–4. doi:10.1109/BMSB.2012.6264268

  20. Zhang Z, Jing T, Han J, Xu Y, Zhang F (2017) A New Rate Control Scheme For Video Coding Based On Region Of Interest. IEEE Early Access Articles:1–1. doi:10.1109/ACCESS.2017.2676125

Download references

Acknowledgements

This work was supported by the National Natural Science Foundation of China (Grant No. 61471248), the Science and Technology Program of Sichuan Province (Grant No. 2015JY0189), and the 2014 Graduate education reform and innovation project of Sichuan Department of Education (Grant No. 2014-Edu-034).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xiaohai He.

Appendices

Appendix 1

1.1 Proof of α and β updating in (20) and (21)

The α old , β old , bpp real and λ real are known variables. According to (6), we have

$$ {\lambda}_{comp}={\alpha}_{old}\cdot {bpp}_{real}^{\beta_{old}} $$
(28)

After the lnoperation

$$ \ln {\lambda}_{comp}= \ln \alpha +\beta \cdot \ln bpp={\alpha}^{\hbox{'}}+\beta \cdot \ln bpp $$
(29)

The squared error between the real λ and caculated λ is

$$ {e}^2={\left( \ln {\lambda}_{real}- \ln {\lambda}_{comp}\right)}^2 $$
(30)

Take the derivative of the eq. (30) with respect to α ' and β

$$ \frac{\partial {e}^2}{\partial {\alpha}^{\hbox{'}}}=-2\cdot \left( \ln {\lambda}_{real}- \ln {\lambda}_{comp}\right) $$
(31)
$$ \frac{\partial {e}^2}{\partial \beta }=-2\cdot \left( \ln {\lambda}_{real}- \ln {\lambda}_{comp}\right)\cdot \ln bpp $$
(32)

Update α ' according to BFGS algorithm

$$ {\alpha}_{new}^{\hbox{'}}={\alpha}_{old}^{\hbox{'}}+{\delta}_{armijo}\cdot {d}_{\alpha } $$
(33)

According to (29), we have

$$ \ln {\alpha}_{new}= \ln {\alpha}_{old}+{\delta}_{armijo}\cdot {d}_{\alpha } $$
(34)

Thus,

$$ {\alpha}_{new}={e}^{\ln {\alpha}_{old}}\cdot {e}^{\delta_{armijo}\cdot {d}_{\alpha }} $$
(35)

After Taylor’s expansion and ignore high-order items

$$ {\alpha}_{new}\approx {\alpha}_{old}\cdot \left(1+{\delta}_{armijo}\cdot {d}_{\alpha}\right)={\alpha}_{old}+{\delta}_{armijo}\cdot {d}_{\alpha}\cdot {\alpha}_{old} $$
(36)

It is similar to the updating of β according to BFGS algorithm

$$ {\beta}_{new}={\beta}_{old}+{\delta}_{armijo}\cdot {d}_{\beta } $$
(37)

(36) and (37) form the model of parameter update together.

Appendix 2

1.1 The specific caculation process of δ armijo

According to (29) and (30), we have

$$ {e}^2={\left( \ln {\lambda}_{real}-{\alpha}^{\hbox{'}}-\beta \cdot \ln bpp\right)}^2 $$
(38)

The initial search step size δ InitialArmijo is set to 0.55, related parameter σ is set to 0.4, the loop count m is initialized to 0, and m k is set to 0.

Accordin to (31) and (32), we form the error gradient vector ∇f(x k )

$$ \nabla f\left({x}_k\right)=\left(\begin{array}{c}\hfill \frac{\partial {e}^2}{\partial {\alpha}^{\hbox{'}}}\hfill \\ {}\hfill \frac{\partial {e}^2}{\partial \beta}\hfill \end{array}\right) $$
(39)

According to the equation \( d=-{B}_k^{-1}\cdot \nabla f\left({x}_k\right) \), we obtain the search direction vector d

$$ d=\left(\begin{array}{c}\hfill {d}_{\alpha}\hfill \\ {}\hfill {d}_{\beta}\hfill \end{array}\right) $$
(40)

According to (33) and (37), we have

$$ {\alpha}_{new}^{\hbox{'}}={\alpha}_{old}^{\hbox{'}}+{\delta}_{InitialArmijo}\cdot {d}_{\alpha } $$
(41)
$$ {\beta}_{new}={\beta}_{old}+{\delta}_{InitialArmijo}\cdot {d}_{\beta } $$
(42)

According to (B.1), we get the old and new mean square error formulas

$$ {e}_{old}^2={\left( \ln {\lambda}_{real}-{\alpha}_{old}^{\hbox{'}}-{\beta}_{old}\cdot \ln bpp\right)}^2 $$
(43)
$$ {e}_{new}^2={\left( \ln {\lambda}_{real}-{\alpha}_{new}^{\hbox{'}}-{\beta}_{new}\cdot \ln bpp\right)}^2 $$
(44)

The specific caculation steps of δ armijo are as follows:

  1. Step 1

    Determine whether m is less than 20, if it is, then go to step 2, otherwise, jump to step 4;

  2. Step 2

    Determine whether \( {e}_{new}^2 \) is less than \( {e}_{old}^2+\sigma \cdot {\delta}_{InitialArmijo}^m\cdot \nabla f{\left({x}_k\right)}^T\cdot d \), if it is, then m k  = m, jump to step 4, otherwise, make m = m + 1;

  3. Step 3

    Jump to step 1;

  4. Step 4

    \( {\delta}_{armijo}={\delta}_{InitialArmijo}^{m_k} \).

δ armijo in step 4 is the so-called search step size.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Ye, Y., He, X., Teng, Q. et al. Adaptive Gradient Information and BFGS Based Inter Frame Rate Control for High Efficiency Video Coding. Multimed Tools Appl 77, 14557–14577 (2018). https://doi.org/10.1007/s11042-017-5047-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-017-5047-5

Keywords

Navigation