Skip to main content


Efficient MPEG-2 to H.264/AVC Transcoding of Intra-Coded Video

Article metrics

  • 887 Accesses

  • 6 Citations


This paper presents an efficient transform-domain architecture and corresponding mode decision algorithms for transcoding intra-coded video from MPEG-2 to H.264/AVC. Low complexity is achieved in several ways. First, our architecture employs direct conversion of the transform coefficients, which eliminates the need for the inverse discrete cosine transform (DCT) and forward H.264/AVC transform. Then, within this transform-domain architecture, we perform macroblock-based mode decisions based on H.264/AVC transform coefficients, which is possible using a novel method of calculating distortion in the transform domain. The proposed method for distortion calculation could be used to make rate-distortion optimized mode decisions with lower complexity. Compared to the pixel-domain architecture with rate-distortion optimized mode decision, simulation results show that there is a negligible loss in quality incurred by the direct conversion of transform coefficients and the proposed transform-domain mode decision algorithms, while complexity is significantly reduced. To further reduce the complexity, we also propose two fast mode decision algorithms. The first algorithm ranks modes based on a simple cost function in the transform domain, then computes the rate-distortion optimal mode from a reduced set of ranked modes. The second algorithm exploits temporal correlations in the mode decision between temporally adjacent frames. Simulation results show that these algorithms provide additional computational savings over the proposed transform-domain architecture while maintaining virtually the same coding efficiency.


  1. 1.

    ITU-T Rec. H.264—ISO/IEC 14496-10: Advanced Video Coding 2003.

  2. 2.

    Zhou Z, Sun S, Lei S, Sun M-T: Motion information and coding mode reuse for MPEG-2 to H.264 transcoding. Proceedings of IEEE International Symposium on Circuits and Systems (ISCAS '05), May 2005, Kobe, Japan 2: 1230–1233.

  3. 3.

    Lu X, Tourapis AM, Yin P, Boyce J: Fast mode decision and motion estimation for H.264 with a focus on MPEG-2/H.264 transcoding. Proceedings of IEEE International Symposium on Circuits and Systems (ISCAS '05), May 2005, Kobe, Japan 2: 1246–1249.

  4. 4.

    Qian T, Sun J, Li D, Yang X, Wang J: Transform domain transcoding from MPEG-2 to H.264 with interpolation drift-error compensation. IEEE Transactions on Circuits and Systems for Video Technology 2006,16(4):523-534.

  5. 5.

    Bruce KB, Cardelli L, Pierce BC: Comparing object encodings. In Proceedings of 3rd International Symposium on Theoretical Aspects of Computer Software (TACS '97), September 1997, Sendai, Japan, Lecture Notes in Computer Science. Volume 1281. Edited by: Abadi M, Ito T. Springer; 415–438.

  6. 6.

    Yu H: Joint 4:4:4 Video Model (JFVM) 2. JVT-R205, 2006

  7. 7.

    Xin J, Vetro A, Sun H: Converting DCT coefficients to H.264/AVC transform coefficients. Proceedings of IEEE Pacific-Rim Conference on Multimedia (PCM '04), November 2004, Tokyo, Japan 2: 939–946.

  8. 8.

    Shen B: From 8-tap DCT to 4-tap integer-transform for MPEG to H.264/AVC transcoding. Proceedings of the International Conference on Image Processing (ICIP '04), October 2004, Singapore 1: 115–118.

  9. 9.

    Park CY, Cho NI: A fast algorithm for the conversion of DCT coefficients to H.264 transform coefficients. Proceedings of the International Conference on Image Processing (ICIP '05), September 2005, Genova, Italy 3: 664–667.

  10. 10.

    Chen W-H, Smith C, Fralick S: A fast computation algorithm for the discrete cosine transform. IEEE Transactions on Communications 1977,25(9):1004-1009. 10.1109/TCOM.1977.1093941

  11. 11.

    Malvar HS, Hallapuro A, Karczewicz M, Kerofsky L: Low-complexity transform and quantization in H.264/AVC. IEEE Transactions on Circuits and Systems for Video Technology 2003,13(7):598-603. 10.1109/TCSVT.2003.814964

  12. 12.

    Xin J, Vetro A, Sun H: Efficient macroblock coding-mode decision for H.264/AVC video coding. Proceedings of the 24th Picture Coding Symposium (PCS '04), December 2004, San Francisco, Calif, USA 53–58.

  13. 13.

    Hallapuro A, Karczewicz M, Malvar H: Low complexity transform and quantization—part II: extensions. JVT-B039, 2002

  14. 14.

    Xin J, Vetro A: Fast mode decision for intra-only H.264/AVC coding. Proceedings of the 25th Picture Coding Symposium (PCS '06), April 2006, Beijing, China

  15. 15.

    MPEG-2 encoder/decoder v1.2 1996, by MPEG Software Simulation Group,

  16. 16.

    H.264/AVC reference software JM7.6 2003,

Download references

Author information

Correspondence to Jun Xin.

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and Permissions

About this article


  • Information Technology
  • Cost Function
  • Quantum Information
  • Discrete Cosine Transform
  • Temporal Correlation