Digital Video Processing

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

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

Lecture 6: Compression II. This Week s Schedule

Multimedia Standards

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013

Cross Layer Protocol Design

Digital Image Representation Image Compression

MPEG-4: Simple Profile (SP)

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

VIDEO AND IMAGE PROCESSING USING DSP AND PFGA. Chapter 3: Video Processing

Week 14. Video Compression. Ref: Fundamentals of Multimedia

Ch. 4: Video Compression Multimedia Systems

Video coding. Concepts and notations.

Using animation to motivate motion

Video Compression Standards (II) A/Prof. Jian Zhang

Video Compression An Introduction

The Scope of Picture and Video Coding Standardization

Chapter 10. Basic Video Compression Techniques Introduction to Video Compression 10.2 Video Compression with Motion Compensation

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

Advanced Video Coding: The new H.264 video compression 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

10.2 Video Compression with Motion Compensation 10.4 H H.263

CMPT 365 Multimedia Systems. Media Compression - Video

Outline Introduction MPEG-2 MPEG-4. Video Compression. Introduction to MPEG. Prof. Pratikgiri Goswami

In the name of Allah. the compassionate, the merciful

Multimedia Communications: Coding, Systems, and Networking. Prof. Tsuhan Chen H.261

Video Compression MPEG-4. Market s requirements for Video compression standard

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression

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

Lecture 4: Video Compression Standards (Part1) Tutorial 2 : Image/video Coding Techniques. Basic Transform coding Tutorial 2

LECTURE VIII: BASIC VIDEO COMPRESSION TECHNIQUE DR. OUIEM BCHIR

VC 12/13 T16 Video Compression

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

Video Coding Standards

Introduction to Video Coding

Multimedia Systems Video II (Video Coding) Mahdi Amiri April 2012 Sharif University of Technology

Index. 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5.

Fernando Pereira. Instituto Superior Técnico

Fundamentals of Video Compression. Video Compression

Lecture 5: Video Compression Standards (Part2) Tutorial 3 : Introduction to Histogram

Introduction ti to JPEG

Lecture 5: Compression I. This Week s Schedule

Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK

A real-time SNR scalable transcoder for MPEG-2 video streams

COMP 249 Advanced Distributed Systems Multimedia Networking. The Video Data Type Coding & Compression Basics

Introduction to Video Compression

Video Compression. Learning Objectives. Contents (Cont.) Contents. Dr. Y. H. Chan. Standards : Background & History

Tutorial T5. Video Over IP. Magda El-Zarki (University of California at Irvine) Monday, 23 April, Morning

Wireless Communication

Review and Implementation of DWT based Scalable Video Coding with Scalable Motion Coding.

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:

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

Lecture 13 Video Coding H.264 / MPEG4 AVC

Comparative Study of Partial Closed-loop Versus Open-loop Motion Estimation for Coding of HDTV

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

Computer and Machine Vision

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

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

Features. Sequential encoding. Progressive encoding. Hierarchical encoding. Lossless encoding using a different strategy

THE H.264 ADVANCED VIDEO COMPRESSION STANDARD

Chapter 2 MPEG Video Compression Basics

H.261. Lecture Special Topics in Signal Processing. Multimedia Communications: Coding, Systems, and Networking

MPEG-2. ISO/IEC (or ITU-T H.262)

VIDEO COMPRESSION STANDARDS

Image and Video Compression Fundamentals

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

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

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

DIGITAL TELEVISION 1. DIGITAL VIDEO FUNDAMENTALS

CMPT 365 Multimedia Systems. Media Compression - Video Coding Standards

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

JPEG 2000 vs. JPEG in MPEG Encoding

The Basics of Video Compression

EE Low Complexity H.264 encoder for mobile applications

Lecture 3 Image and Video (MPEG) Coding

EE 5359 H.264 to VC 1 Transcoding

Fernando Pereira. Instituto Superior Técnico. Comunicação de Áudio e Vídeo, Fernando Pereira

Digital Video Compression and H.261 Recommendation

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

7.5 Dictionary-based Coding

Video Coding in H.26L

Zonal MPEG-2. Cheng-Hsiung Hsieh *, Chen-Wei Fu and Wei-Lung Hung

INTERNATIONAL TELECOMMUNICATION UNION ITU-T H.263 (03/96) TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU TRANSMISSION OF NON-TELEPHONE SIGNALS VIDEO

Implementation and analysis of Directional DCT in H.264

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

TKT-2431 SoC design. Introduction to exercises

TKT-2431 SoC design. Introduction to exercises. SoC design / September 10

Audio and video compression

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

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

Image, video and audio coding concepts. Roadmap. Rationale. Stefan Alfredsson. (based on material by Johan Garcia)

Introduction to Video Encoding

FPGA based High Performance CAVLC Implementation for H.264 Video Coding

Introduction of Video Codec

Digital video coding systems MPEG-1/2 Video

5LSE0 - Mod 10 Part 1. MPEG Motion Compensation and Video Coding. MPEG Video / Temporal Prediction (1)

Multimedia Signals and Systems Motion Picture Compression - MPEG

H.264 / AVC (Advanced Video Coding)

Improving Intra Pixel prediction for H.264 video coding

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

Transcription:

Video signal is basically any sequence of time varying images. In a digital video, the picture information is digitized both spatially and temporally and the resultant pixel intensities are quantized. Spatial Sampling In the digital representation of the image, the value of each pixel needs to be quantized using some finite precision. In practice, 8 bits are used per luminance sample. Temporal sampling A video consists of a sequence of images, displayed in rapid succession, to give an illusion of continuous motion. If the time gap between successive frames is too large, the viewer will observe jerky motion. In practice, most video formats use temporal sampling rates of 24 frames per second and above.

Common Video Formats Digital video frames that are displayed at a prescribed frame rate. For example, frame rate of 30 frames/sec is used in NTSC video. The Common Intermediate Format (CIF) has 352 x 288 pixels, and the Quarter CIF (QCIF) format has 176 x 144 pixels. Pixel Resolution (dots per lines) SD Resolution: 640 480 (720p) HD Resolution:1280 720 (720p) / 1920 1080 (1080p)

Common Video Formats Each pixel is represented by three components: the luminance component Y, and the two chrominance components Cb and Cr. RGB to YCbCr Conversion Video quality is commonly evaluated by using PSNR in luminance (Y )Channel, which is referred to as the Y-PSNR (db).

Video Frame Types Three types of video frames are I-frame, P-frame and B-frame. I stands for Intra coded frame, P stands for Predictive frame and B stands for Bidirectional predictive frame. I frames are encoded without any motion compensation and are used as a reference for future predicted P and B type frames. I frames however require a relatively large number of bits for encoding. P frames are encoded using motion compensated prediction from a reference frame which can be either I or P frame. P frames are more efficient in terms of number of bits required compared to I frames, but still require more bits than B frames. B frames require the lowest number of bits compared to both I and P frames but incur computational complexity.

Intraframe coding Removing the spatial redundancy with a frame is generally termed as intraframe coding. The spatial redundancy within a frame is minimized by using transform. The commonly used transform is DCT. Interframe coding The temporal redundancy between successive frames is removed by interframe coding. Interframe coding exploits the interdependencies of video frames. Interframe coding relies on the fact that adjacent pictures in a video sequence have high temporal correlation. Intra (I-coding) MB (Macro Block) is encoded as is, without motion compensation. DCT followed by Q (Quantization), zig-zag, run-length, Huffman Coding. Inter ( P- and B-coding) Block-matching - motion estimation Predictive motion residue from best-match block is DCT encoded (similarly to intramode) Motion vector is differentially encoded.

Intra coding Quantization Entopy coding input MB DCT Q E to bit-stream Encoder 1 Q IDCT to motion compensated frame bit-stream Decoder 1 E 1 Q IDCT to display frame

Inter coding Motion compensation Motion Estimation Frame Buffer (Delay)

Video Sequence and Picture Intra 0 Inter 1 Inter 2 Inter 3 Inter 4 Inter 5 Intra Picture (I-Picture) Encoded without referencing others All MBs are intra coded Inter Picture (P-Picture, B-Picture) Encoded by referencing other pictures Some MBs are intra coded, and some are inter coded

Group of Pictures (GOP) GOP GOP GOP Video stream I B B P B B P B B I B B P Frame order: 0 1 2 3 4 5 6

Coding of I-Slice DCT Original block Transformed block Quantization matrix Bit-stream 15 0-2 -1-1 -1 0 Entropy coding Zig-zag scan

Coding of P-Slice - = Original current frame Motion Estimation = Motion Vectors + Residual (Difference Frame) Frame buffer Reconstructed reference frame Motion Compensation

Motion Estimation in H.261 8 8 Y Y Macro-block Luminance: 16x16, four 8x8 blocks Chrominance: two 8x8 blocks Motion estimation only performed for luminance component Motion vector range [ -15, 15] Y Y Cr Cb 15 15 MB 15 15 Search Area in Reference Frame

Coding of Motion Vectors MV has range [-15, 15] Integer pixel ME search only Motion vectors are differentially & separably encoded MVD MVD x y MV MV x y [ n] MV [ n] MV x y [ n 1] [ n 1] 11-bit VLC (Variable Length Coding) for MVD Example MV = 2 2 3 5 3 1-1 MVD = 0 1 2-2 -2-2 Binary: 1 010 0010 0011 0011 0011

VAR Inter/Intra Switching Based on energy of prediction error High energy: scene change, occlusions, uncovered areas use intra mode Low energy: stationary background, translational motion use inter mode 64 INTER INTRA VAR 1 256 MB c[ x, y] c 2 64 MSE MSE 1 256 MB c[ x, y] r[ x dx, y dy] 2

H.263 Standard Standardization effort started Nov 1993 Aim low bit-rate video communications, less than 64 kbps target PSTN and mobile network: 10-32 kbps Near-term H.263 and H.263+: established late 1997 Long-term H.26L, H.264: still under investigation Main properties H.261 with many MPEG features optimized for low bit rates Performance: 3-4 db improvements over H.261 at less than 64 kbps; 30% bit rate saving over MPEG-1.

H.263 Standard Coder original video compressed video Motion Compensation Image Transform Lossy Coding

original video H.263 Standard Coder H.263 Motion Compensation Image is divided into 16x16 macroblocks, Each macroblock is matched against nearby blocks in previous frame (called reference frame), Nearby = within 15-pixel horizontal/vertical range Half-pixel accuracy (with bilinear pixel interpolation) Best match is used to predict the macroblock, The relative displacement, or motion vector, is encoded and transmitted to decoder Motion Compensation Image Transform Prediction error for all blocks constitute the residual. Lossy Coding compressed video

Motion Compensation Example T=1 (reference) T=2 (current)

Motion Compensation Example original video compressed video H.263 Image Transform Residual is divided into 8x8 blocks, 8x8 2-d Discrete Cosine Transform (DCT) is applied to each block Motion independently Image Lossy Compensation DCT coefficients describe Transform spatial frequencies in the block: Coding High frequencies correspond to small features and texture Low frequencies correspond to larger features Lowest frequency coefficient, called DC, corresponds to the average intensity of the block

8x8 DCT Example

8x8 DCT Example

8x8 DCT Example

original video H.263 Standard Coder H.263 Lossy Coding Transform coefficients are quantized: Some less-significant bits are dropped Only the remaining bits are encoded For inter-frames, all coefficients get the same number of bits, except for the DC which gets more. For Motion intra-frames, lower-frequency coefficients get more bits Image Lossy Compensatio To preserve larger features better The actual Transform Coding n number of bits used depends on a quantization parameter (QP), whose value depends on the bit-allocation policy Finally, bits are encoded using entropy (lossless) code Traditionally Huffman-style code compressed video

Quality Y-PSNR [db] Comparison to MPEG-2, H.263, MPEG-4 38 37 36 35 34 33 32 31 30 29 28 27 26 25 Tempete CIF 30Hz 0 500 1000 1500 2000 2500 3000 3500 Bit-rate [kbit/s] H.264/AVC MPEG-4 Visual MPEG-2 H.263

Quality Y-PSNR [db] Comparison to MPEG-2, H.263, MPEG-4 39 38 37 36 35 34 33 32 31 30 29 28 27 Foreman QCIF 10Hz H.264/AVC MPEG-4 Visual MPEG-2 H.263 0 50 100 150 200 250 Bit-rate [kbit/s]

Standards H.264/AVC

Standards H.264/AVC

Standards ISO (Int. Organization for Standardization) MPEG-1 (1992) 1.5Mbps, VCD MPEG-2 (1996) 2-10Mbps, DVD MPEG-4 (2000) 8-1024Kbps, videophone Digital cinema (ongoing) ITU (Int. Telecommunication Union) H.261 (1990) p 64Kbps H.263 8-64Kbps, videophone H.263+/++ 8-64Kbps, videophone H.264/AVC windows media player(microsoft) real player(real-networks) Skype Video

Benchmark Videos Carphone Suzie Foreman