Editorial Manager(tm) for Journal of Real-Time Image Processing Manuscript Draft

Similar documents
EE 5359 H.264 to VC 1 Transcoding

Fast Decision of Block size, Prediction Mode and Intra Block for H.264 Intra Prediction EE Gaurav Hansda

Homogeneous Transcoding of HEVC for bit rate reduction

Advanced Video Coding: The new H.264 video compression standard

EE Low Complexity H.264 encoder for mobile applications

OVERVIEW OF IEEE 1857 VIDEO CODING STANDARD

International Journal of Emerging Technology and Advanced Engineering Website: (ISSN , Volume 2, Issue 4, April 2012)

Comparative and performance analysis of HEVC and H.264 Intra frame coding and JPEG2000

VHDL Implementation of H.264 Video Coding Standard

LIST OF TABLES. Table 5.1 Specification of mapping of idx to cij for zig-zag scan 46. Table 5.2 Macroblock types 46

EE 5359 H.264 to VC-1 TRANSCODING

Video Coding Standards. Yao Wang Polytechnic University, Brooklyn, NY11201 http: //eeweb.poly.edu/~yao

STUDY AND IMPLEMENTATION OF VIDEO COMPRESSION STANDARDS (H.264/AVC, DIRAC)

Advanced Encoding Features of the Sencore TXS Transcoder

EE 5359 MULTIMEDIA PROCESSING SPRING Final Report IMPLEMENTATION AND ANALYSIS OF DIRECTIONAL DISCRETE COSINE TRANSFORM IN H.

Reduced Frame Quantization in Video Coding

H.264 to MPEG-4 Transcoding Using Block Type Information

Efficient MPEG-2 to H.264/AVC Intra Transcoding in Transform-domain

The Scope of Picture and Video Coding Standardization

An Efficient Table Prediction Scheme for CAVLC

EE 5359 Low Complexity H.264 encoder for mobile applications. Thejaswini Purushotham Student I.D.: Date: February 18,2010

Implementation and analysis of Directional DCT in H.264

The VC-1 and H.264 Video Compression Standards for Broadband Video Services

PREFACE...XIII ACKNOWLEDGEMENTS...XV

Lecture 13 Video Coding H.264 / MPEG4 AVC

THE H.264 ADVANCED VIDEO COMPRESSION STANDARD

Transcoding from H.264/AVC to High Efficiency Video Coding (HEVC)

Video Codecs. National Chiao Tung University Chun-Jen Tsai 1/5/2015

Laboratoire d'informatique, de Robotique et de Microélectronique de Montpellier Montpellier Cedex 5 France

COMPARATIVE ANALYSIS OF DIRAC PRO-VC-2, H.264 AVC AND AVS CHINA-P7

Xin-Fu Wang et al.: Performance Comparison of AVS and H.264/AVC 311 prediction mode and four directional prediction modes are shown in Fig.1. Intra ch

Overview, implementation and comparison of Audio Video Standard (AVS) China and H.264/MPEG -4 part 10 or Advanced Video Coding Standard

H.264/AVC Baseline Profile to MPEG-4 Visual Simple Profile Transcoding to Reduce the Spatial Resolution

H.264/AVC und MPEG-4 SVC - die nächsten Generationen der Videokompression

Video Coding Standards

Mark Kogan CTO Video Delivery Technologies Bluebird TV

Objective: Introduction: To: Dr. K. R. Rao. From: Kaustubh V. Dhonsale (UTA id: ) Date: 04/24/2012

Complexity Reduced Mode Selection of H.264/AVC Intra Coding

Deblocking Filter Algorithm with Low Complexity for H.264 Video Coding

Complexity Estimation of the H.264 Coded Video Bitstreams

Interframe coding A video scene captured as a sequence of frames can be efficiently coded by estimating and compensating for motion between frames pri

Upcoming Video Standards. Madhukar Budagavi, Ph.D. DSPS R&D Center, Dallas Texas Instruments Inc.

Video coding. Concepts and notations.

Chapter 11.3 MPEG-2. MPEG-2: For higher quality video at a bit-rate of more than 4 Mbps Defined seven profiles aimed at different applications:

NEW CAVLC ENCODING ALGORITHM FOR LOSSLESS INTRA CODING IN H.264/AVC. Jin Heo, Seung-Hwan Kim, and Yo-Sung Ho

High Efficiency Video Coding. Li Li 2016/10/18

COMPLEXITY REDUCTION FOR VP6 TO H.264 TRANSCODER USING MOTION VECTOR REUSE JAY R PADIA. Presented to the Faculty of the Graduate School of

High Efficiency Video Coding: The Next Gen Codec. Matthew Goldman Senior Vice President TV Compression Technology Ericsson

Very Low Complexity MPEG-2 to H.264 Transcoding Using Machine Learning

Reducing/eliminating visual artifacts in HEVC by the deblocking filter.

Video Compression An Introduction

An Efficient Motion Estimation Method for H.264-Based Video Transcoding with Arbitrary Spatial Resolution Conversion

An Efficient Mode Selection Algorithm for H.264

High Efficiency Video Coding (HEVC) test model HM vs. HM- 16.6: objective and subjective performance analysis

Digital Video Processing

Video compression with 1-D directional transforms in H.264/AVC

Fast Implementation of VC-1 with Modified Motion Estimation and Adaptive Block Transform

VIDEO COMPRESSION STANDARDS

TRANSCODING OF H264 BITSTREAM TO MPEG 2 BITSTREAM. Dr. K.R.Rao Supervising Professor. Dr. Zhou Wang. Dr. Soontorn Oraintara

Week 14. Video Compression. Ref: Fundamentals of Multimedia

10.2 Video Compression with Motion Compensation 10.4 H H.263

Welcome Back to Fundamentals of Multimedia (MR412) Fall, 2012 Chapter 10 ZHU Yongxin, Winson

Video Coding Using Spatially Varying Transform

Video Coding Standards: H.261, H.263 and H.26L

H.264 / AVC (Advanced Video Coding)

Optimizing the Deblocking Algorithm for. H.264 Decoder Implementation

PERFORMANCE ANALYSIS OF AVS-M AND ITS APPLICATION IN MOBILE ENVIRONMENT

A Novel Deblocking Filter Algorithm In H.264 for Real Time Implementation

EFFICIENT PU MODE DECISION AND MOTION ESTIMATION FOR H.264/AVC TO HEVC TRANSCODER

HEVC The Next Generation Video Coding. 1 ELEG5502 Video Coding Technology

White paper: Video Coding A Timeline

Comparative and performance analysis of HEVC and H.264 Intra frame coding and JPEG2000

4G WIRELESS VIDEO COMMUNICATIONS

An Improved H.26L Coder Using Lagrangian Coder Control. Summary

Video Quality Analysis for H.264 Based on Human Visual System

Transcoding from H.264/AVC to High Efficiency Video Coding (HEVC)

THE MPEG-2 video coding standard is widely used in

Complexity Reduction Tools for MPEG-2 to H.264 Video Transcoding

Title Adaptive Lagrange Multiplier for Low Bit Rates in H.264.

Adaptation of Scalable Video Coding to Packet Loss and its Performance Analysis

Analysis of Motion Estimation Algorithm in HEVC

ARTICLE IN PRESS. Signal Processing: Image Communication

Improved H.264/AVC Requantization Transcoding using Low-Complexity Interpolation Filters for 1/4-Pixel Motion Compensation

Emerging H.26L Standard:

Department of Electrical Engineering

2014 Summer School on MPEG/VCEG Video. Video Coding Concept

Encoding Video for the Highest Quality and Performance

Multimedia Decoder Using the Nios II Processor

Introduction to Video Coding

Performance Analysis of DIRAC PRO with H.264 Intra frame coding

BANDWIDTH REDUCTION SCHEMES FOR MPEG-2 TO H.264 TRANSCODER DESIGN

H.264 STANDARD BASED SIDE INFORMATION GENERATION IN WYNER-ZIV CODING

Selected coding methods in H.265/HEVC

A COST-EFFICIENT RESIDUAL PREDICTION VLSI ARCHITECTURE FOR H.264/AVC SCALABLE EXTENSION

IBM Research Report. Inter Mode Selection for H.264/AVC Using Time-Efficient Learning-Theoretic Algorithms

A VIDEO TRANSCODING USING SPATIAL RESOLUTION FILTER INTRA FRAME METHOD IN MULTIMEDIA NETWORKS

Module 7 VIDEO CODING AND MOTION ESTIMATION

Smoooth Streaming over wireless Networks Sreya Chakraborty Final Report EE-5359 under the guidance of Dr. K.R.Rao

Standard Codecs. Image compression to advanced video coding. Mohammed Ghanbari. 3rd Edition. The Institution of Engineering and Technology

A NOVEL SCANNING SCHEME FOR DIRECTIONAL SPATIAL PREDICTION OF AVS INTRA CODING

Transcription:

Editorial Manager(tm) for Journal of Real-Time Image Processing Manuscript Draft Manuscript Number: Title: LOW COMPLEXITY H.264 TO VC-1 TRANSCODER Article Type: Original Research Paper Section/Category: 1.1 Reduction in number of operations (e.g., pure reduction, approximations) Keywords: H.264; VC-1; Transcoding; Low complexity Corresponding Author: Mrs Vidhya Vijayakumar, Corresponding Author's Institution: UT Arlington First Author: Vidhya Vijayakumar Order of Authors: Vidhya Vijayakumar; Kamisetty Rao Abstract: The high definition video adoption has been growing rapidly for the last two years. The blue ray high definition format has mandated MPEG-2, H.264 and VC-1 as video compression formats. The co-existence of these different video coding standards creates a need for transcoding. In this paper, an efficient transcoding algorithm from H.264 video to VC-1 video is discussed. The proposed architecture, which considers I and P frames, is a low complexity transcoder which re-uses mode decisions, macroblock partition sizes and motion vectors, obtained from the incoming H.264 coded video bitstream, to make intelligent and fast decisions in the transcoding process. The simulation results show comparable video quality as that of the cascaded architecture with 80% lesser encoding time. The proposed architecture thus offers a real time solution for mobile applications and devices with less power and memory.

Authors' biography Click here to download Authors' biography: VidhyaBio.doc Vidhya Vijayakumar hails from Chennai (Madras), capital city of the southern state of Tamil Nadu in India. She received her bachelor s degree in Electronics and Communication from Sathyabama Deemed University, Chennai in May 2005. After her bachelors, she worked in the Digital Signal Processing and Multimedia group at Wipro technologies. To pursue her interest in academia, she later joined the graduate program at University of Texas at Arlington (UT Arlington). During her stay at UT Arlington, she was a member of the Multimedia Processing Lab, headed by Dr. K.R. Rao. She did her internship with Adobe Inc working in their Advanced Technology Lab. She worked as a Graduate Researcher for the Multimedia laboratory, headed by Dr. Ishfaq Ahmad. She was also awarded the Dean s Masters Scholarship at UT Arlington for the year 2008-10 for academic excellence. Her research interests are in the field of video compression, transcoding and wireless communications.

*Manuscript Click here to download Manuscript: H 264toVC-1PaperFinal.doc Click here to view linked References LOW COMPLEXITY H.264 TO VC-1 TRANSCODER Vidhya Vijayakumar and K.R. Rao, EE Dept, University of Texas at Arlington Box 19016, Arlington, TX 76019, USA ABSTRACT The high definition video adoption has been growing rapidly for the last two years. The blue ray high definition format has mandated MPEG-2, H.264 and VC-1 as video compression formats. The co-existence of these different video coding standards creates a need for transcoding. In this paper, an efficient transcoding algorithm from H.264 video to VC-1 video is discussed. The proposed architecture, which considers I and P frames, is a low complexity transcoder which re-uses mode decisions, macroblock partition sizes and motion vectors, obtained from the incoming H.264 coded video bitstream, to make intelligent and fast decisions in the transcoding process. The simulation results show comparable video quality as that of the cascaded architecture with 80% lesser encoding time. The proposed architecture thus offers a real time solution for mobile applications and devices with less power and memory. 1. INTRODUCTION The high definition video adoption has been growing rapidly for the last two years. The blue ray high definition format has mandated MPEG-2, H.264 and VC-1 as video compression formats [1] [2]. H.264 is an emerging standard that is replacing MPEG-2 for digital video applications and is, presently, the state of the art codec. The VC-1 standard is derived from Microsoft s proprietary WMV-9 [1] which is widely used on the Internet. VC-1 is a pure video compression technology developed by Microsoft, and is deployed as a key engine in satellite TV, IP set-tops and high-definition DVD recorders. The coexistence of these different video coding standards creates a need for transcoding. Another strong motivation for transcoding H.264 video to VC-1 video comes from the fact that VC-1 produces quality comparable video streams at the same bit rates as H.264 but is significantly less complex than H.264 [1]. In this paper, an efficient transcoding algorithm from H.264 video to VC-1 video is discussed. For H.264, mode decision for Intra MB and Inter MB is computationally intensive since each of these modes has to be checked to select the best coding mode. The key idea of the paper is to propose an efficient re-use of information in VC-1 encoding based on incoming H.264 encoded bitstreams. If mode decision and motion estimation take advantage of already encoded H.264 bitstreams, this will save a lot of computation in such MBs that would, otherwise, undergo different mode checks in the VC-1 encoding stage. The field of mobile video and wireless video communication demands a better video coding technology at low bit rates and lowest computational complexities without any loss of visual quality. Although H.264 offers good efficiency in terms of quality, its computational complexity, makes its implementation difficult for mobile and low power applications. Thus there is a need to use less complex codecs like VC-1 and thereby creating a need for transcoding H.264 to VC-1. The emergence of H.264 has resulted in increasing research in the area of transcoding to and from H.264 format. Transcoding tools and algorithms have been proposed to transcode video from H.263 [3], MPEG-4 [4], MPEG-2 [5] and VC-1 [6] to the H.264 format. Using the proposed H.264 to VC-1 transcoder, we can achieve indirect transcoding from standards like H.263, MPEG-4 and MPEG-2 to VC-1 in combination with existing algorithms described in [3], [4] and [5]. A complete decode followed by a low complex encode is proposed in this paper. The techniques proposed attempt to reuse the information gathered during the decoding stage to improve the transcoder performance. The transform domain approaches have limited applicability due to the fact that H.264 and VC-1 have different transform types and sizes. The use of variable block size motion estimation and deblocking filter also make transform domain transcoding impractical for full transcoding applications. The other approach is pixel domain transcoding. For example, in MPEG-2 to H.264 transcoding, MPEG-2 video is fully decoded followed by an accelerated H.264 encoding stage that uses information gathered during the

decoding stage. This approach has shown promising results and is reported in several papers [7], [8] and [9]. Hence this approach is chosen to transcode H.264 to VC-1. While there has been recent work on MPEG-2 to H.264 [10], VC-1 to H.264 [6] transcoding, the published work on H.264 to VC-1 transcoding is non-existent. There is very limited amount of published work on VC-1 and no work has been published on H.264 to VC-1 transcoding. This paper gives a brief overview of H.264 and VC-1 and discusses the opportunities for low-complexity tools for H.264 to VC-1 transcoding. The rest of the paper is organized as follows: Section 2 gives an overview of the H.264 coding tools; Section 3 gives an overview of the VC-1 coding tools; Section 4 details the proposed algorithm and Section 5 discusses the experiments and results. 2. OVERVIEW OF H.264 This section presents an overview of H.264/AVC. H.264/AVC is the newest video coding standard [11] of the ITU-T Video Coding Experts Group (VCEG) and the ISO/IEC Moving Picture Experts Group (MPEG). The main goals of the H.264/AVC standardization efforts are enhanced compression performance and provision of a network friendly video representation addressing conversational (video telephony) and non conversational (storage, broadcast, or streaming) applications. H.264/AVC has achieved a significant improvement in rate-distortion efficiency relative to existing standards. Like previous video coding standards (MPEG-4, H263 etc), Advanced video coding (AVC) [12] is also based on hybrid block-based motion compensation and transform-coding model, but it supports a lot of additional and enhanced tools. Figure 1 and Figure 2 illustrate the encoder and decoder of H.264/AVC respectively. Figure 1 H.264 encoder block diagram [2] Figure 2 H.264 decoder block diagram [2] H.264/AVC contains a number of new features that allow it to compress video much more efficiently than older standards and to provide more flexibility for application to a wide variety of network environments. In particular, some such key features include:

Multi-picture inter-picture prediction including the following features: o Using previously-encoded pictures as references, allowing up to 16 reference frames (or 32 reference fields, in the case of interlaced encoding) o Variable block-size motion compensation (VBSMC) with block sizes as large as 16 16 and as small as 4 4, enabling precise segmentation of moving regions. The supported luma prediction block sizes include 16 16, 16 8, 8 16, 8 8, 8 4, 4 8, and 4 4, many of which can be used together in a single macroblock. Chroma prediction block sizes are correspondingly smaller according to the chroma sub sampling in use. o The ability to use multiple motion vectors per macroblock (one or two per partition) with a maximum of 32 in the case of a B macroblock constructed of 16 4 4 partitions. The motion vectors for each 8 8 or larger partition region can point to different reference pictures. o The ability to use any macroblock type in B-frames, including I-macroblocks, resulting in much more efficient encoding when using B-frames. o Six-tap filtering for derivation of half-pel luma sample predictions, for sharper sub pixel motion-compensation. Quarter-pixel motion is derived by linear interpolation of the half pel values, to save processing power. o Quarter-pixel precision for motion compensation, enabling precise description of the displacements of moving areas. For chroma the resolution is typically halved both vertically and horizontally (4:2:0) therefore the motion compensation of chroma uses one-eighth chroma pixel grid units. o Weighted prediction, allowing an encoder to specify the use of a scaling and offset when performing motion compensation, and providing a significant benefit in performance in special cases such as fade-to-black, fade-in, and cross-fade transitions. This includes implicit weighted prediction for B-frames, and explicit weighted prediction for P-frames. Spatial prediction from the edges of neighboring blocks for intra coding. This includes luma prediction block sizes of 16 16, 8 8, and 4 4 (of which only one type can be used within each macroblock). Flexible interlaced-scan video coding features New transform design features, including: o An exact-match integer 4 4 spatial block transform. o An exact-match integer 8 8 spatial block transform. o Adaptive encoder selection between the 4 4 and 8 8 transform block sizes for the integer transform operation. o A secondary Hadamard transform performed on DC coefficients of the primary spatial transform applied to chroma DC coefficients (and also luma in intra 16x16 case) to obtain even more compression in smooth regions. A quantization design including: o Logarithmic step size control for easier bit rate management by encoders and simplified inverse-quantization scaling o Frequency-customized quantization scaling matrices selected by the encoder for perceptual-based quantization optimization An in-loop deblocking filter that helps prevent the blocking artifacts common to other DCT-based image compression techniques, resulting in better visual appearance and compression efficiency An entropy coding design including: o Context-adaptive binary arithmetic coding (CABAC) o Context-adaptive variable-length coding (CAVLC) o A common simple and highly structured variable length coding (VLC) technique for many of the syntax elements not coded by CABAC or CAVLC, referred to as Exponential-Golomb coding (or Exp-Golomb). Support of monochrome, 4:2:0, 4:2:2, and 4:4:4 chroma sampling (depending on the selected profile). Support of sample bit depth precision ranging from 8 to 14 bits per sample (depending on the selected profile).

These techniques, along with several others, help H.264 to perform significantly better than any prior standard under a wide variety of circumstances in a wide variety of application environments. H.264 can often perform radically better than MPEG-2 video typically obtaining the same quality at half the bit rates or less, especially in high bit rate and high resolution situations. The enhanced performance of H.264 comes at the price of being very complex. 3. OVERVIEW OF VC-1 This section provides a brief overview of VC-1 [1] with emphasis on the features that impact transcoding. Like all MPEG standards, VC-1 is based on motion compensated transform coding. There is no fixed GOP structure in VC-1. I, P, B and Skipped P are defined as pictures/frames. Unlike MPEG standards, I (Intra) frame does not have to occur periodically. Therefore, if there is no big scene change for a lengthy period of time, there could be only P frames in the sequence after the first I frame. Unlike H.264, B frames cannot be used as reference frames. Skipped P frame is signaled when the frame is exactly the same as the previous reference. In I frames, no intra-prediction is used. For Intra-coded MBs (such as in I frames), only 8x8 transform size is used. For Inter-coded MBs (such as in P/ B frames), 4 transform sizes 8x8, 4x8, 8x4, 4x4 are potentially used on the residual data. Transform block size can change adaptively in P/ B frames with 4 different size options, while block size for motion compensation is either 16x16 or 8x8 in VC-1. Note that this is quite the opposite to that of H.264. H.264 normally uses fixed size 4x4 transform with variable block size prediction for motion compensation. The transforms are 16 bit transforms where both the sums and the products of two 16 bit values produce results within 16 bits the inverse transform can be implemented in 16 bit fixed point arithmetic. Note that the transform approximates a DCT, and norms of basis functions between transforms are identical to enable the same quantization scheme through various transform types. Figure 3 and Figure 4 illustrate the encoder and decoder of VC-1 respectively. Figure 3 VC-1 encoder block diagram [1] Figure 4 VC-1 decoder block diagram [1]

VC-1 supports a few options for motion compensation: 1) Half-pel or quarter-pel resolution motion compensation can be used. 2) Bi-cubic or bi-linear filter can be used for the interpolation. 3) 16x16 or 8x8 block size can be used. Only some combinations of such options can be defined to signal at the frame level. Quantization is generally defined with two parameters in video standards Quantization parameter (QP) and Dead zone. The QP varies from 1 to 31, while there are two choices for Dead-zone in VC-1 3Qp and 5Qp. In I frames, primary quantization parameter is applied to all the MBs. However, differential quantization parameter is used to adaptively describe QP in each MB in P/B frames. Another QP usage option is to use only two QPs for an entire frame depending on the MB positions either boundary MB or non-boundary MB. There are two techniques used in VC-1 to reduce blocky effects around transform boundary Overlapped Transform (OLT) smoothing and In Loop deblocking Filtering (ILF). OLT and ILF are performed on reference frames I and P. Thus, the result of filtering affects only the quality of following pictures that use overlap transformed and/or in loop filtered frames as references. 4. H.264 TO VC-1 TRANSCODING For H.264 to VC-1 standards transcoding, it is required to implement several changes in order to accommodate the mismatches between the two standards. For instance, for motion estimation and compensation, H.264 supports 16x16, 16x8, 8x16, 8x8, 8x4, 4x8, 4x4 macroblock partitions, but VC-1 supports 16x16 and 8x8 only. The transform size and type - 8x8 and 4x4 in H.264 and 8x8, 4x8, 8x4 and 4x4 in VC-1 are different and make transform domain transcoding prohibitively complex. Hence, the use of frequency domain transcoders is poor for heterogeneous transcoding and pixel domain transcoding is preferred. The transcoding algorithms discussed in this paper assume full H.264 decoding down to the pixel level, followed by a reduced complexity VC-1 encoding. The data gathered during the H.264 decoding stage is used to accelerate the VC-1 encoding stage. It is assumed that the H.264 encoded bitstreams were generated with an R-D optimized encoder. Table 1 shows a comparison of the VC-1 and H.264 features from a transcoding point of view. The picture coding types used are similar. The transform size and type are different resulting in transform domain transcoding prohibitively complex. The semantics of intra MBs are similar except for the intra prediction allowed in H.264 and the mixed inter MBs in VC-1. The inter prediction has significant differences including the block size of MC, block size of transform, and reference frames used. These similarities between the codecs can be exploited in reducing the transcoding complexity. Figure 5 illustrates the proposed transcoder architecture. Figure 5 Proposed transcoder architecture

Feature H.264 Baseline VC-1 Simple Picture type I, P I, P Transform Size 4x4 4x4, 4x8, 8x4, 8x8 Transform Integer DCT Integer DCT Intra Prediction 4x4, 16x16 spatial, Frequency domain DC IPCM and AC Prediction Motion Compensation 16x16, 16x8, 8x16, Block Size 8x8, 8x4, 4x8, 4x4 16x16, 8x8 Total MB Modes 7 inter + (9 + 4) intra 3 Motion Vector resolution ¼ pixel ¼ pixel In loop filter Deblocking Deblocking, Overlap transform Reference Frames Single, Multiple Single Entropy coding CAVLC Adaptive VLC Table 1 Comparison of H.264 baseline and VC-1 simple profile tools 4.1. Intra MB Mode Mapping An intra MB in the incoming H.264 bitstream is coded as a VC-1 intra MB. An H.264 intra MB can be coded as Intra 4x4 (9 different directional modes) or Intra 16x16 (4 different modes). But a VC-1 intra MB has four 8x8 blocks and has no intra prediction modes. Figure 6 illustrates the nine intra 4x4 directional modes available in H.264/AVC. Figure 7 illustrate the intra 4x4 and intra 16x16 directional modes specified in H.264/AVC. Figure 6 4x4 Luma prediction (intra-prediction) modes in H.264 [2]

Figure 7 16x16 Luma prediction (intra-prediction) modes in H.264 [2] Since intra MB in VC-1 uses an 8x8 transform, irrespective of the block size (16x16 or 4x4) in H.264, we need not carry over the information of the intra prediction type in H.264. Table 2 shows the proposed intra MB mapping. H.264 Intra MB VC-1 Intra MB Intra 16x16 (Any mode) Intra MB 8x8 Intra 4x4 (Any mode) Intra MB 8x8 Table 2 H.264 and VC-1 Intra MB mapping 4.2. Inter MB Mode Mapping An inter coded MB in the incoming H.264 bitstream is coded as inter MB in VC-1. The inter MB in H.264 has 7 different motion compensation sizes 16x16, 16x8, 8x16, 8x8, 4x8, 8x4, 4x4. The inter MB in VC-1 has 2 different motion compensation sizes 16x16 and 8x8. Another significant difference is that H.264 uses 4x4 (and 8x8 in fidelity range extensions) transform sizes where as VC-1 uses 4 different transform sizes 8x8, 4x8, 8x4 and 4x4. The 16x16 motion compensation sizes are usually selected in H.264 for areas that are relatively uniform and will be mapped to inter 16x16 MB in VC-1 with a transform size of 8x8. Motion compensation sizes 8x16, 16x8 have small non-uniform motion and hence they are mapped to inter 8x8 MB in VC-1 since 16x16 MB size will yield worse quality due to the non-uniform motion. Using the selected H.264 block size as a measure of homogeneity in the block, the transform size is determined and applied in VC-1. In other words, the H.264 block size determines the transform size used for that particular block. This method eliminates the need to compute the half sum and half difference values of each 8x8 block to determine the transform size. Figure 8 and Figure 9 illustrate the block sizes used in motion estimation in H.264 and VC-1 respectively. (a) (b) Figure 8 Block sizes and macroblock partitioning in H.264 for inter prediction (a) (L-R) 16x16, 8x16, 16x8, 8x8 blocks (b) (L-R) 8x8, 4x8, 8x4, 4x4 blocks [2]

Figure 9 Block sizes for motion compensation in VC-1 [1] The 8x8, 8x4, 4x8 and 4x4 modes are usually selected in H.264 for areas that have non-uniform motion. The 16x16 mode in VC-1 is eliminated for such non-uniform MBs. The MB is then mapped to an 8x8 block size in VC-1 with the H.264 block size determining the transform size to be used in VC-1. Table 3 describes the decision making for mapping the inter MBs and the type of transform to be used in VC-1. H.264 Inter MB VC-1 Inter MB Transform size in VC-1 Inter 16x16 Inter 16x16 8x8 Inter 16x8 Inter 8x8 8x4 Inter 8x16 Inter 8x8 4x8 Inter 8x8 Inter 8x8 8x8 Inter 4x8 Inter 8x8 4x8 Inter 8x4 Inter 8x8 8x4 Inter 4x4 Inter 8x8 4x4 Table 3 H.264 and VC-1 Inter MB mapping and VC-1 transform type 4.3. Motion vector mapping Re-use of motion vectors selected in H.264 can significantly reduce the complexity of VC-1 encoding. Since the proposed transcoder does format conversion from H.264 to VC-1, median motion vectors [13] [14] are selected when there are more than 2 motion vectors in the incoming H.264 macroblock and average of the motion vectors when there are 2 motion vectors. Table 4 describes the selection of motion vectors. H.264 Inter MB VC-1 Inter MB Motion Vector Re-use Inter 16x16 Inter 16x16 Same motion vectors for 16x16 block Inter 16x8 Inter 8x8 Average of motion vectors for each 8x8 block Inter 8x16 Inter 8x8 Average of motion vectors for each 8x8 block Inter 8x8 Inter 8x8 Same motion vectors for each 8x8 block Inter 4x8 Inter 8x8 Median of motion vectors for each 8x8 block Inter 8x4 Inter 8x8 Median of motion vectors for each 8x8 block Inter 4x4 Inter 8x8 Median of motion vectors for each 8x8 block 4.4. Reference Pictures: Table 4 H.264 and VC-1 Inter MB motion vector mapping The H.264/AVC standard defines the use of up to sixteen reference pictures for motion estimation, while VC-1 uses only one or two, according to the slice type P or B respectively. The reuse of motion vectors implies using the same reference pictures to maintain their meaning. Since the profiles considered are baseline profile for H.264 (single

reference picture) and simple profile for VC-1 (single reference picture), the same reference picture as the incoming bitstream is used and no re-scaling of motion vectors is required. 4.5. Skipped Macroblock When a skipped macro block is signaled in the bit stream, no further data is sent for that macro block. The mode conversion of skipped macroblocks in H.264 to skipped macroblocks in VC-1 is a straight forward process. Since the skipped macro block definition of both standards is fully compatible, a direct conversion is possible. 4.6. Extraction of re-usable information The H.264 bitstream has the macroblock type, sub-macroblock type, reference picture index and motion vectors (if applicable). These details are extracted out of the bitstream. This information is used while encoding in VC-1. H.264 bitstream contains information about 1. Macroblock type P16x16 P block type 16x16 P16x8 P block type 16x8 P8x16 P block type 8x16 P8x8 P block type 8x8 I4MB I block type 4x4 I16MB I block type 16x16 2. Macroblock sub block type SMB8x8 sub macroblock type 8x8 SMB8x4 sub macroblock type 8x4 SMB4x8 sub macroblock type 4x8 SMB4x4 sub macroblock type 4x4 3. Reference picture index 4. Motion vector x, y 5.1. Implementation 5. IMPLEMENTATION & RESULTS The implementation of the transcoder consists of two steps; modify the H.264 decoder to output the required information and then modify the VC-1 encoder to re-use this information. The H.264 codec used was the joint module implementation of the H.264 standard [15] and the VC-1 software [16] was the SMPTE implementation. Both the codecs are implemented in the C programming language. 5.2. Results Three test sequences are chosen for testing and evaluation purposes. They are Akiyo (low motion QCIF sequence), Foreman (medium-high motion, CIF sequence) and Football (high motion, CIF sequence). 5.3. Comparison of proposed transcoder with cascaded transcoder with respect to H.264 video The performance of the proposed transcoder is compared against the performance of cascaded transcoder architecture as there is no previous work that can be compared with. The results are divided into the comparison of quality and comparison of complexity. 5.3.1. Rate Distortion Analysis A comparison of the PSNR and SSIM [17] between the proposed architecture and the cascaded re-encoding transcoder is illustrated for various quantization parameters (QP). The reference video used for all the comparison purposes is the H.264 decoded video. This is the

Y SSIM Y PSNR (db) available video to compare in real time applications when the original video may or may not be available. Akiyo - Comparison of Y PSNR Re-encoding Proposed 44.00 42.00 40.00 38.00 36.00 34.00 32.00 30.00 10 15 20 28 35 QP Figure 10 Transcoder Results - Akiyo, QCIF, Comparison of Y peak signal to noise ratio, cascade transcoder Vs proposed transcoder 1.00 Akiyo - Comparison of Y SSIM Re-encoding Proposed 0.98 0.96 0.94 0.92 0.90 0.88 10 15 20 28 35 QP Figure 11 Transcoder Results - Akiyo, QCIF, Comparison of Y structural similarity index, cascade transcoder Vs proposed transcoder

Y PSNR (db) Figure 12 Akiyo sequence (a) Original (b) H.264 decoded (c) Reference cascade decoded at QP 10 (d) Proposed transcoder decoded at QP 10 Foreman - Comparison of Y PSNR Re-encoding Proposed 44.00 42.00 40.00 38.00 36.00 34.00 32.00 10 15 20 28 35 QP Figure 13 Transcoder Results Foreman, CIF, Comparison of Y peak signal to noise ration, cascade transcoder Vs proposed transcoder

Y SSIM 1.00 Foreman- Comparison of Y SSIM Re-encoding Proposed 0.98 0.96 0.94 0.92 0.90 0.88 10 15 20 28 35 QP Figure 14 Transcoder Results Foreman, CIF, Comparison of Y structural similarity index, cascade transcoder Vs proposed transcoder Figure 15 Foreman sequence (a) Original (b) H.264 decoded (c) Reference cascade decoded at QP 10 (d) Proposed transcoder decoded at QP 10

Y SSIM Y PSNR (db) Football - Comparison of Y PSNR Re-encoding Proposed 44.00 42.00 40.00 38.00 36.00 34.00 32.00 30.00 28.00 10 15 20 28 35 QP Figure 16 Transcoder Results Football, CIF, Comparison of Y peak signal to noise ratio, cascade transcoder Vs proposed transcoder 1.00 0.98 0.96 0.94 0.92 0.90 0.88 0.86 0.84 0.82 Football - Comparison of Y SSIM 10 15 20 28 35 QP Re-encoding Proposed Figure 17 Transcoder Results Football, CIF, Comparison of Y structural similarity index, cascade transcoder Vs proposed transcoder

Encoding time (s) Figure 18 Football sequence (a) Original (b) H.264 decoded (c) Reference cascade decoded at QP 10 (d) Proposed transcoder decoded at QP 10 5.3.2. Complexity Analysis A comparison of the encoding time between the proposed architecture and the cascaded re-encoding transcoder is illustrated for various quantization parameters (QP). 14 12 10 8 6 4 2 Akiyo - Comparison of encoding times Re-encoding Proposed 0 10 15 20 28 35 QP

Encoding time (s) Encoding time (s) Figure 19 Transcoder Results - Akiyo, QCIF, Comparison of encoding times, cascade transcoder Vs proposed transcoder Foreman - Comparison of encoding times Re-encoding Proposed 70 60 50 40 30 20 10 0 10 15 20 28 35 QP Figure 20 Transcoder Results Foreman, CIF, Comparison of encoding times, cascade transcoder Vs proposed transcoder Football - Comparison of encoding times Re-encoding Proposed 70 60 50 40 30 20 10 0 10 15 20 28 35 QP Figure 21 Transcoder Results Football, CIF, Comparison of encoding times, cascade transcoder Vs proposed transcoder 5.4. Conclusions This paper addresses an important problem of transcoding H.264 to VC-1 coding format. Both VC-1 and H.264 are hybrid video coding algorithms that exploit motion compensation and transform coding. The H.264 coded video has enough similarities with VC-1 to enable

reduced complexity transcoding. The paper proposes reducing the MB coding mode and motion estimation complexity in VC-1 by re-using the motion vectors from the H.264 encoded bit stream. Also, the variable transform size used in VC-1 is determined by the H.264 block partition. The quality vs. complexity tradeoffs are addressed using a low cost design for the transcoder. The proposed transcoder performs comparable to the cascade architecture in terms of quality and is 70% less complex. REFERENCES [1] S. Srinivasan et al, "Windows Media Video 9: overview and applications", Signal Processing: Image Communication, vol. 19, Issue 9, pp. 851-875, Oct. 2004. [2] I. E. Richardson, The H.264 advanced video compression standard, Second Edition, Wiley, 2010. [3] J. Bialkowski, A. Kaup, K. Illgner, Fast transcoding of intra frames between H.263 and H.264, IEEE International Conference on Image Processing, ICIP '04. vol.4, pp. 2785-2788, 2004. [4] Y.-K. Lee, S.-S. Lee, and Y.-L. Lee, MPEG-4 to H.264 transcoding using macroblock statistics, Proceedings of the IEEE ICME 2006, Toronto, Canada, July 2006. [5] B. Petljanski and H. Kalva, DCT domain intra MB mode decision for MPEG-2 to H.264 transcoding Proceedings of the IEEE ICCE, pp. 419-420, Jan. 2006. [6] Jae-Beom Lee and H. Kalva, "An efficient algorithm for VC-1 to H.264 video transcoding in progressive compression," IEEE International Conference on Multimedia and Expo, pp. 53-56, July 2006. [7] Z. Zhou, S. Sun, S. Lei and M-T. Sun, "Motion information and coding mode reuse for MPEG-2 to H.264 transcoding", Proceedings of the IEEE ISCAS, pp. 1230-1233, May 2005. [8] J. Xin, A. Vetro, S. Sekiguchi, and K. Sugimoto, MPEG-2 to H.264/AVC transcoding for efficient storage of broadcast video bitstreams, IEEE International Conference on Consumer Electronics, pp. 417-418, Jan. 2006. [9] G. Fernandez-Escribano, H. Kalva, P. Cuenca, and L. Orozco- Barbosa, Speedingup the macro block partition mode decision for MPEG-2 to H.264 transcoding, Proceedings of IEEE ICIP, pp. 869-872, Sep. 2006. [10] R. Pereira, K.R. Rao and A. Kruafak, Efficient transcoding of an MPEG-2 bitstream to an H.264 bit stream, University Scientific Journal series Telecommunications and Electronics, vol.11, pp. 5-31, Poland, 2008. [11] Joint Video Team of ITU-T and ISO/IEC JTC 1, ITU-T Rec. H.264 ISO/IEC 14496-10 AVC, March 2003. [12] T. Wiegand, G. J. Sullivan, G. Bjontegaard and A. Luthra, Overview of the H.264 / AVC video coding standard, IEEE Trans. on Circuits and Systems for Video Technology, vol. 13, pp. 560-576, July 2003. [13] I. Ahmad et al, Video transcoding: An overview of various techniques and research issues, IEEE Trans. on Multimedia, vol. 7, pp. 793-804, Oct. 2005. [14] T. Shanableh and M. Ghanbari, Heterogeneous video transcoding to low spatial temporal resolutions and different encoding formats, IEEE Trans. Multimedia, vol. 2, no. 2, pp. 101-110, Jun. 2000. [15] JM reference software http://iphome.hhi.de/suehring/tml/ [16] VC-1 SMPTE software http://store.smpte.org/category-s/30.htm [17] Z. Wang, A. C. Bovik, H. R. Sheikh and E. P. Simoncelli, "Image quality assessment: From error visibility to structural similarity," IEEE Trans. on Image Processing, vol. 13, pp. 600-612, Apr. 2004.