Download presentation
Presentation is loading. Please wait.
1
Transcoding from H.264/AVC to HEVC
Shantanu Kulkarni UTA ID:
2
Introduction to Transcoding
Video transcoding is the operation of converting video from one format to another. A format is defined by characteristics such as bit-rate, spatial resolution etc. Transcoding is one of the most promising technologies, which provides video adaptation in terms of bit-rate reduction, resolution reduction and format conversion to meet various requirements
3
Following is the most basic transcoding architecture
Fig. 1 Basic architecture for transcoding [8]
4
Need for Transcoding Design of most video coding standards is primarily aimed at having the highest coding efficiency, which is the ability to encode the video at lowest possible bitrate while maintaining certain level of video quality. HEVC, which is a recently emerged video coding standard, aims at high coding efficiency while retaining the video quality With its hybrid coding architecture, motion compensation prediction and transform coding technique, it can be seen as an improved version of the previous standard H.264 [6]
5
Need for Transcoding contd.
Transcoding from H.264 to HEVC will enable lowering the bitrate resulting in a more efficient compression.[1] AVC and HEVC share a similar prediction, transform, quantization, and entropy coding architecture. [1]
6
Overview of HEVC The HEVC standard is based on the well-known block-based hybrid coding architecture, combining motion-compensated prediction and transform coding with high-efficiency entropy coding It employs a flexible quad-tree coding block partitioning structure that enables the efficient use of large and multiple sizes of coding, prediction, and transform blocks. It also employs improved intra prediction and coding, adaptive motion parameter prediction and coding, new loop filter and an enhanced version of context-adaptive binary arithmetic coding (CABAC) entropy coding.
7
Fig. 2 HEVC encoder block diagram
Overview of HEVC contd. Fig. 2 HEVC encoder block diagram
8
Fig. 3 Block based architecture HEVC – Intra-Prediction [17]
Overview of HEVC contd. Fig. 3 Block based architecture HEVC – Intra-Prediction [17]
9
Overview of H.264/AVC [6] Directional spatial prediction for intra coding (9 directional prediction modes) Variable block-size motion compensation with small block size Quarter-sample-accurate motion compensation Motion vectors over picture boundaries Multiple reference picture motion compensation Decoupling of referencing order from display order In-the-loop deblocking filtering
10
H.264/AVC Encoder-Decoder Block Diagram
Fig. 4 H.264/AVC Encoder [2] Fig. 5 H.264/AVC Decoder [2]
11
Comparison of AVC & HEVC
Larger block structure leading to maximum of 64x64 pixels per block Intra prediction direction modes which are upto 35 (33 modes + DC + Planar) in case of HEVC while H.264 has 9 directional modes of intra prediction Adaptive motion vector prediction, which allows codec to find more inter frame redundancies Superior parallelization tools, including wavefront parallel processing, for more efficient coding in a multi core environment Entropy using CABAC only, no more CAVLC Improvements to de-blocking filter and addition of one more filter called Sample Adaptive Offset (SAO) that further leaves artifacts along block edges
12
Simplified Mode Selection
HEVC Transcoder The transcoding schemes discussed here avoid high computational complexity in terms of reduced RDO evaluations and motion compensation operation as well as fractional pixel interpolation operation. AVC Decoder HEVC Re-encoder Simplified Mode Selection Input AVC Bitstream Output HEVC Bitstream Residual, modes and MVs CU, PU partitions Fig. 6 Pixel domain AVC-HEVC transcoder[1]
13
HEVC Transcoder Contd. The LCU will initially split according to the input MB modes in AVC The initial CU partitions will be further merged to larger size according to the predict directions of its adjacent four sub-CUs. For example, if the predict directions of adjacent four 8x8 CUs are the same, they will be merged to 16x16. Similar merge operations will also perform on CUs larger than 8x8. The merge process is applied from the 4x4 smallest 4x4 blocks to the blocks with size 32x32. The input information from AVC can be used to reduce the candidate predict directions for SATD, or reducing the candidate SATD list
14
HEVC Transcoder contd. The major complexity of Inter picture coding comes from the motion estimation (ME), MC operations when testing every set of possible coding parameters with possible CU size, PU and TU modes. Thus, it is proposed to reduce these operations with the help of input AVC information, e.g. residuals, modes and MVs.Since the largest CU (LCU) in HEVC consists of 16 MBs in AVC, after AVC decoding, the information of these MBs will transmit to the mode selection module.
15
HEVC Transcoder Contd. Since the input AVC bitstream already contains useful information of the MB partitions and prediction directions, we extract the information which can be utilized by HEVC encoder without having to do any computations. Key technology of AVC to HEVC transcoding consists of merging smaller blocks to a larger CU, especially for bit rate reduction transcoding. Since a large CU may consists of different 4x4 blocks, and probably, these blocks may have different MVs, merging these blocks now turns to measure the RD cost when the MV changes.
16
Cascaded encoder decoder transcoder architecture
Includes complete decoding and re-encoding High Complexity Error due to the lossy encoding of already decoded bit sequence Cascaded Decoder and Encoder Transcoded HEVC Bit stream Input Bit stream H.264 Bit stream Output Bit stream H.264 Encoder H.264 Decoder HEVC Encoder HEVC Decoder Reconstructed Bit stream Fig.7 Cascaded encoder – decoder transcoder
17
Simulation results Sequence Component Metric Encoded by H.264 Encoded by HEVC Transcoded output with respect to original Transcoded output with respect to H.264 akiyo_qcif Y MSE 7.9453 PSNR 39.14 U 7.6814 5.4491 41.234 V 5.099 3.8215 42.054 41.056 PSNR (color) 39.766 Bitrate (kbps) 15.53 11.64 Computation Time (sec) Table 1. MSE and PSNR of akiyo_qcif.yuv video sequence for 100 frames
18
Simulation results continued…
Sequence Component Metric Encoded by H.264 Encoded by HEVC Transcoded output with respect to original Transcoded output with respect to H.264 foreman_qcif Y MSE PSNR 36.134 U 7.3461 5.5639 3.5923 40.689 40.677 42.577 V 5.8822 4.0086 3.9526 42.124 PSNR color Bitrate (kbps) 90.6 Computation Time (sec) Table 2. MSE and PSNR of foreman_qcif.yuv video sequence for 100 frames
19
Simulation results continued…
Sequence Component Metric Encoded by H.264 Encoded by HEVC Transcoded output with respect to original Transcoded output with respect to H.264 mobile_cif Y MSE PSNR 33.021 U 9.5459 36.033 V 35.806 33.928 PSNR color Bitrate (kbps) 851.1 Computation Time (sec) Table 3. MSE and PSNR of mobile_cif.yuv video sequence for 100 frames
20
Simulation results continued…
Sequence Component Metric Encoded by H.264 Encoded by HEVC Transcoded output with respect to original Transcoded output with respect to H.264 coastguard_cif Y MSE PSNR 31.797 U 3.745 3.7246 42.499 42.42 34.747 V 2.9498 1.4232 43.26 PSNR color Bitrate (kbps) 428.1 Computation Time (sec) Table 4. MSE and PSNR of coastguard_cif.yuv video sequence for 100 frames
21
Fig 8. PSNR Video sequences: akiyo_qcif and foreman_qcif
Comparison of PSNR for colored images between ‘qcif’ video sequences akiyo and foreman PSNR (db) PSNR (dB) Video Sequences Video Sequences Fig 8. PSNR Video sequences: akiyo_qcif and foreman_qcif
22
Fig 9. PSNR Video sequences: mobile_cif and coastguard_cif
Comparison of PSNR for colored images between ‘cif’ video sequences mobile and coastguard PSNR (dB) Video Sequences Fig 9. PSNR Video sequences: mobile_cif and coastguard_cif
23
Comparison of bitrate for akiyo_qcif video sequence
(kbps) Video Sequences Fig 10. Bitrate comparison between H.264 encoded, HEVC encoded and transcoded output using foreman_qcif.yuv sequence. (100 frames)
24
Comparison of bitrate for foreman_qcif video sequence
(kbps) Video Sequences Fig 10. Bitrate comparison between H.264 encoded, HEVC encoded and transcoded output using foreman_qcif.yuv sequence. (100 frames)
25
Comparison of bitrate for mobile_cif video sequence
(kbps) Video Sequences Fig 11. Bitrate comparison between H.264 encoded, HEVC encoded and transcoded output using mobile_cif.yuv sequence. (100 frames)
26
Comparison of bitrate for coastguard_cif video sequence
(kbps) Video Sequences Fig 12. Bitrate comparison between H.264 encoded, HEVC encoded and transcoded output using coastguard_cif.yuv sequence. (100 frames)
27
Comparison of computation time for akiyo_qcif video sequence
(sec) Video Sequences Fig 13. Computation time comparison between H.264 encoded, HEVC encoded and transcoded output using akiyo_qcif.yuv sequence. (100 frames)
28
Comparison of computation time for foreman_qcif video sequence
(sec) Video Sequences Fig 14. Computation time comparison between H.264 encoded, HEVC encoded and transcoded output using foreman_qcif.yuv sequence. (100 frames)
29
Comparison of computation time for mobile_cif video sequence
(sec) Video Sequences Fig 15. Computation time comparison between H.264 encoded, HEVC encoded and transcoded output using mobile_cif.yuv sequence. (100 frames)
30
Comparison of computation time for coastguard_cif video sequence
(sec) Video Sequences Fig 16. Computation time comparison between H.264 encoded, HEVC encoded and transcoded output using coastguard_cif.yuv sequence. (100 frames)
31
Images Akiyo_qcif and Foreman_qcif
Fig 17a. Fig 17b. Fig 17c. Fig 17. Akiyo_qcif video sequence 17a) H.264 encoded, 17b) transcoded and 17c) HEVC encoded and reconstructed Fig 18a. Fig 18b. Fig 18c. Fig 18. Foreman_qcif video sequence 18a) H.264 encoded, 18b) transcoded and 18c) HEVC encoded and reconstructed
32
Images Mobile_cif Fig 19a. Mobile_cif H.264 encoded and reconstructed
Fig 19b. Mobile_cif Transcoded Fig 19c. HEVC Encoded and reconstructed
33
Images coastguard_cif
Fig 20a. Coastguard_cif H.264 encoded and reconstructed Fig 20b. Coastguard_cif Transcoded Fig 20c. Coastguard_cif HEVC Encoded and reconstructed
34
References D. Zhang, B. Li, J. Xu, and H. Li, ‘Fast Transcoding from H.264/AVC to High Efficiency Video Coding’ IEEE International Conference on Multimedia Expo, pp , July, 2012 T. Wiegand et al, “Overview of the H.264/AVC video coding standard,” IEEE Trans. CSVT, Vol. 13, pp , July 2003.J Xin, C.W. Lin and M.T. Sun, “Digital video transcoding”, Proceedings of the IEEE, Vol. 93, pp 84-97, Jan 2005. T. Wiegand, G. J. Sullivan, G. Bjøntegaard, and A. Luthra, ‘Overview of the H.264/AVC Video Coding Standard’, IEEE transactions on circuits and systems for video technology, vol. 13, no. 7, pp , July 2003 I. Kim, J. Min, T. Lee et al, ‘Block Partitioning Structure in the HEVC Standard’, IEEE transactions on circuits and systems for video technology, vol. 22, no. 12, pp , December 2012 G. Sullivan, P. Topiwalla and A. Luthra, “The H.264/AVC video coding standard: overview and introduction to the fidelity range extensions”, SPIE Conference on Applications of Digital Image Processing XXVII, vol. 5558, pp Aug 2004. T. D. Nguyen et al, “Efficient MPEG-4 to H.264/AVC transcoding with spatial downscaling”, ETRI Journal, vol.29, no.6, pp , Dec G.J. Sullivan, J. Ohm, W. Han et al, “Overview of High Efficiency Video Coding (HEVC) Standard” IEEE Transactions on Circuits and Systems for Video Technology, Vol. 22, No.12, Dec 2012 A. Vetros, C. Christopoulos and H. Sun, “Video transcoding architectures and techniques: An overview”, IEEE Signal Processing Magazine, Vol. 20, pp 18-29, March 2003 HEVC open source software (encoder/decoder) JM Reference Software H.264 reference software Eduardo Peixoto Fernandes da Silva, “Advanced Heterogeneous Video Transcoding” Queen Mary, University of London, PhD Thesis. J. Padia, “Complexity Reduction For Vp6 To H.264 Transcoder Using Motion Vector Reuse”, MPL, University of Texas at Arlington, May 2012.
35
References Contd. Reference Books
K. Sayood, “Introduction to Data compression”, III edition, Morgan Kauffmann publishers, 2006. I.E.G. Richardson, “H.264 and MPEG-4 video compression: video coding for next-generation multimedia”, Edition II ,Wiley, 2010. Websites : Website for Wikipedia, Encyclopedia Course website Website archive for IEEE papers online Impact of HEVC standard on digital media market like cell phones, TVs etc Summary about HEVC , information site. Diagram for H.264 prediction direction modes Diagram for Intra prediction block structure for HEVC
36
THANK YOU
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.