VIDEO FORMATS AND MPEG COMPRESSION

Similar documents
Video Coding Basics. Yao Wang Polytechnic University, Brooklyn, NY11201

Module 8 VIDEO CODING STANDARDS. Version 2 ECE IIT, Kharagpur

H 261. Video Compression 1: H 261 Multimedia Systems (Module 4 Lesson 2) H 261 Coding Basics. Sources: Summary:

Figure 1: Relation between codec, data containers and compression algorithms.

Video Coding Standards. Yao Wang Polytechnic University, Brooklyn, NY11201

Quality Estimation for Scalable Video Codec. Presented by Ann Ukhanova (DTU Fotonik, Denmark) Kashaf Mazhar (KTH, Sweden)

Understanding HD: Frame Rates, Color & Compression

CM0340 SOLNS. Do not turn this page over until instructed to do so by the Senior Invigilator.

White paper. H.264 video compression standard. New possibilities within video surveillance.

Digital Video Coding Standards and Their Role in Video Communications

Introduction to image coding

Performance Analysis and Comparison of JM 15.1 and Intel IPP H.264 Encoder and Decoder

Video compression: Performance of available codec software

Video-Conferencing System

Chapter 5 Fundamental Concepts in Video

Computer Vision and Video Electronics

MPEG-1 and MPEG-2 Digital Video Coding Standards

White paper. An explanation of video compression techniques.

MPEG Digital Video Coding Standards

For Articulation Purpose Only

REIHE INFORMATIK 7/98 Efficient Video Transport over Lossy Networks Christoph Kuhmünch and Gerald Kühne Universität Mannheim Praktische Informatik IV

JPEG File Interchange Format

Introduzione alle Biblioteche Digitali Audio/Video

Study and Implementation of Video Compression Standards (H.264/AVC and Dirac)

Data Storage 3.1. Foundations of Computer Science Cengage Learning

High performance digital video servers: storage. Seungyup Paek and Shih-Fu Chang. Columbia University

Bandwidth Adaptation for MPEG-4 Video Streaming over the Internet

Temporal Sampling and Interpolation

Chapter 3 ATM and Multimedia Traffic

Compressing Moving Images. Compression and File Formats updated to include HTML5 video tag. The DV standard. Why and where to compress

Classes of multimedia Applications

JPEG Image Compression by Using DCT

BIT RATE CONTROL FOR REAL-TIME MULTIPOINT VIDEO CONFERENCING. Xiaoping Hu. BS, Shanghai Jiaotong University, 2001


Overview: Video Coding Standards

We are presenting a wavelet based video conferencing system. Openphone. Dirac Wavelet based video codec

Study and Implementation of Video Compression standards (H.264/AVC, Dirac)

How To Improve Performance Of The H264 Video Codec On A Video Card With A Motion Estimation Algorithm

*EP B1* EP B1 (19) (11) EP B1 (12) EUROPEAN PATENT SPECIFICATION

Multidimensional Transcoding for Adaptive Video Streaming

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

THE EMERGING JVT/H.26L VIDEO CODING STANDARD

A Guide to MPEG Fundamentals and Protocol Analysis (Including DVB and ATSC)

White paper. HDTV (High Definition Television) and video surveillance

Digital Audio and Video Data

H.264/MPEG-4 AVC Video Compression Tutorial

MPEG-4 Natural Video Coding - An overview

Video Signal Representation. Visual Representation. Visual Representation

Understanding Network Video Security Systems

ENGINEERING COMMITTEE Digital Video Subcommittee SCTE METHODS FOR CARRIAGE OF CEA-608 CLOSED CAPTIONS AND NON-REAL TIME SAMPLED VIDEO

ATSC Standard: 3D-TV Terrestrial Broadcasting, Part 2 Service Compatible Hybrid Coding Using Real-Time Delivery

Information, Entropy, and Coding

INTERNATIONAL TELECOMMUNICATION UNION 42!.3-)33)/. /&./.4%,%0(/.% 3)'.!,3

Image Compression through DCT and Huffman Coding Technique

Video Encryption Exploiting Non-Standard 3D Data Arrangements. Stefan A. Kramatsch, Herbert Stögner, and Andreas Uhl

FAQs. Getting started with the industry s most advanced compression technology. when it counts

IMPACT OF COMPRESSION ON THE VIDEO QUALITY

Understanding Megapixel Camera Technology for Network Video Surveillance Systems. Glenn Adair

FacultyofComputingandInformationTechnology DepartmentofRoboticsandDigitalTechnology TechnicalReport93-11

Parameter values for the HDTV standards for production and international programme exchange

Video codecs in multimedia communication

Huffman Movement DCT. Encoding H.261 Detection. video Raw video Interframe coding data. Inverse Inverse Memory

VIDEOTELEPHONY AND VIDEOCONFERENCE OVER ISDN

Understanding Compression Technologies for HD and Megapixel Surveillance

PRODUCING DV VIDEO WITH PREMIERE & QUICKTIME

Video Authentication for H.264/AVC using Digital Signature Standard and Secure Hash Algorithm

The Essence of Image and Video Compression 1E8: Introduction to Engineering Introduction to Image and Video Processing

Compression techniques

Structures for Data Compression Responsible persons: Claudia Dolci, Dante Salvini, Michael Schrattner, Robert Weibel

Survey of Dirac: A Wavelet Based Video Codec for Multiparty Video Conferencing and Broadcasting

Microsoft Lync. Unified Communication Specification for H.264 AVC and SVC UCConfig Modes V 1.1

Fast Hybrid Simulation for Accurate Decoded Video Quality Assessment on MPSoC Platforms with Resource Constraints

White Paper: Video Compression for CCTV

Application Note. Introduction. Video Basics. Contents. IP Video Encoding Explained Series Understanding IP Video Performance.

The H.264/MPEG-4 Advanced Video Coding (AVC) Standard

Comparison of different image compression formats. ECE 533 Project Report Paula Aguilera

Solomon Systech Image Processor for Car Entertainment Application

To determine vertical angular frequency, we need to express vertical viewing angle in terms of and. 2tan. (degree). (1 pt)

Accelerating Wavelet-Based Video Coding on Graphics Hardware

SDI TO HD-SDI HDTV UP-CONVERTER BC-D2300U. 1080i/720p HDTV Up-Converter with built-in Audio/Video processor

An Introduction to Ultra HDTV and HEVC

A Look at Emerging Standards in Video Security Systems. Chris Adesanya Panasonic Network Systems Company

ENCRYPTION QUALITY ANALYSIS IN MPEG VIDEO FORMAT

Sommario [1/2] Vannevar Bush Dalle Biblioteche ai Cataloghi Automatizzati Gli OPAC accessibili via Web Le Biblioteche Digitali

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

The Roadmap of Digital TV System in USA

Quick Start. Guide. The. Guide

Overview of the Scalable Video Coding Extension of the H.264/AVC Standard

Conceptual Framework Strategies for Image Compression: A Review

Standards compliant watermarking for access management

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

!"#$"%&' What is Multimedia?

Alberto Corrales-García, Rafael Rodríguez-Sánchez, José Luis Martínez, Gerardo Fernández-Escribano, José M. Claver and José Luis Sánchez

COMPACT DISK STANDARDS & SPECIFICATIONS

High Definition (HD) Technology and its Impact. on Videoconferencing F770-64

IP Video Rendering Basics

Transform-domain Wyner-Ziv Codec for Video

Comparison of Video Compression Standards

. ImagePRO. ImagePRO-SDI. ImagePRO-HD. ImagePRO TM. Multi-format image processor line

Thor High Efficiency, Moderate Complexity Video Codec using only RF IPR

Transcription:

VIDEO FORMATS AND MPEG COMPRESSION N. C. State University CSC557 Multimedia Computing and Networking Fall 2001 Lecture # 15

Video Standards 2 BroadcastTV (analog) VCR (analog) Film (analog) Computer video Digital TV, HDTV Digital (compressed) video

Frame Rates 3 Sampling rates must be high enough to avoid motion "aliasing" At least 50 frames/sec needed in the ideal case Few video standards support this high a rate

Raster Scanning Order 4

Interlaced Video 5

Interlaced Video 6 Display of alternating, interleaved fields at 2X the frame rate The net bandwidth, or number of bits being transmitted, remains the same The fields are taken at half-frame intervals; vertical lines don t line up exactly! Frame 1 Frame 2 Frame 3 Even Fields Time Odd Fields "Fools" the eye into thinking the sampling rate is greater than the frame rate

Video Standards 7 Standard Digital or Analog Color VxH Resolution Aspect Ratio Frame Rate (fps) Interlaced? Comments TV (NTSC standard) analog YIQ 525 lines (40 not displayed) 4x3 (1.33) 29.97 yes Used in North America and Japan TV (PAL standard) analog YUV 625 lines 25 Yes Used in Europe VHS Analog 240 lines Film (motion pictures) Analog Subtra ctive 1.85 24 VGA (computer video) Digital RGB 640x480 1600x1200 4:3 (1.33) (70-80 fps) No CCIR-601 (Digital Component Video): SIF Digital YCbCr 352x240 29.97 No ITU-R standard, many resolutions supported. SIF is typical size used in MPEG-I HDTV Digital 1920x1080 16x9 (1.78) 30 Yes Many competing proposals exist.

Issues in Converting Between Standards 8 Differences in pixel aspect ratios (square vs. non-square) Difference in screen resolution and aspect ratio Interlaced vs. Non-interlaced Differences in frame rates E.g., speedup up film by 4% for 25 fps TV E.g., use 3:2 pulldown to convert 2 frames at 24 fps into 5 fields (= 2.5 frames) at 30 fps Differences in color systems Differences in chroma sub-sampling

Video Data Requirements (example) 9 30 frames / second * 640x480 pixels / frame (VGA) * 3 bytes / pixel = 26.4 MB/second! (211 Mb/s) Or, 92 GB for a one hour video! Many computer components are too slow/small for this

MPEG Compression Standard 10 An international (open) standard MPEG = Motion Picture Expert Group Best quality / compression combination Assymetrical not too hard to decode: software encoding requires a lot of computation: hardware MPEG standard specifies syntax and semantics of the bit stream not the method of compression!

Mpeg Video Standards 11 MPEG-I Targeted for 1.2-1.5 Mb/s 352x240, 30 frames / second "VHS quality MPEG-II Targetted for 4-15 Mb/s Up to 1920x1152, 30 frames/sec Interlaced video "TV and HDTV quality" MPEG-IV Very low bandwidth: 10-64 kb/sec "Videoconference quality

Basic Idea 12 Use spatial compression on some frames (I.e., JPEG) Add temporal compression ( motion compensation ) as well Improves compression ratio by 2-4X

Macro Blocks 13 Macro block = 16x16 pixel region 4 8x8 blocks of Y 1 8x8 block (subsampled) of Cb 1 8x8 block (subsampled) of Cr Macro block is basic unit of temporal coding

Macroblocks 14

Temporal Encoding 15 Search forward or backward (or both) in time for a "similar" macro block Interpolated match: average of forward and backwards block

16

Temporal Encoding 17 Search a spatial region for a similar macro block

Searching For Similar Macroblocks 18 Search method not specified by standard Can search on full pixel or half-pixel boundaries Interpolated images are effectively low-pass filtered How define "best" match? Minimize absolute difference = 15 15 i= 0 j= 0 V n ( x + i, y + j) V m ( x + x + i, y + y + j) Where V n is macroblock, V m is matching macroblock (V m is the compressed/decompressed representation of the matching macroblock, I.e., the prediction algorithm is feedforward)

Size Of Search Region 19 How big is big enough? More separation in time means greater amount of motion possible

Motion Vector Encoding 20 Motion vector = X, Y (I.e., offset or displacement) to best match Sign is always relative to the current picture Number of vectors needed 1 for forward or backwards predictions 2 for bi-directional (interpolated) prediction Then, differentially encoded relative to motion vectors of the previous (adjacent) macroblock Entropy code the resulting differentially-coded vectors

21

22

23

24 Effects Of Scene Changes Temporal compression not nearly as effective after scene changes

25

Temporal Results 26 If closest match is "close enough", just output the motion vector If not close enough, then spatially code (JPEG) all 6 blocks (I.e., no temporal compression possible) But if almost close enough

"Almost" Close Enough 27 Output motion vector Create 6-bit block code For each block... Subtract from the reference (matched) block Spatially compress the difference block If the result is completely zero, clear the block bit and skip the block Otherwise, set the block bit and output the (spatially compressed) difference block

Quantization 28 Can tolerate higher quantization (I.e., greater loss of quality) for difference blocks than for I blocks Possible to adapt the quantizer scale to video content Q factor can be part of the macroblock Default quantization matrices for predicted and nonpredicted blocks Can be overridden for entire video, or frame-by-frame

29 Default "non-predicted block" quantization matrix 1 16 19 22 26 27 29 34 16 16 22 24 27 29 34 37 19 22 26 27 29 34 34 38 22 22 26 27 29 34 37 40 22 26 27 29 32 35 40 48 26 27 29 32 35 40 48 58 26 27 29 34 38 46 56 69 27 29 35 38 46 56 69 83

30 Default "predicted block" quantization matrix 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16

Run-length and Huffman Coding 31 Zigzag ordering: like JPEG Run-length coding: like JPEG Huffman coding: just encode a subset of the possible inputs, consisting of the most probable symbols Escape sequence used to represent remaining (infrequent) symbols in unencoded form

Types Of Macroblocks 32 I macro blocks Spatial information only Temporal macro blocks Motion vector(s) Block code Spatially-coded difference blocks "Skip" macro block (no change)

Types Of Frames 33 I frames Spatial macro blocks only Serves as "anchor" frame P frames Spatial, forward motion, and skip macro blocks Can refer backwards to previous I and P frames Can serve as "anchor" frame

Frames (Cont.) 34 B frames Spatial, forward/backward/interpolated motion, and skip macro blocks Can refer backwards or forwards to I and P frames Never used as "anchor" frame Depends on a "future" frame which must be received and decoded first Anchor frames are transmitted before the frames that reference them Reordering required at decoder Typical size ratios of I:P:B frames = 5:3:1

Group Of Pictures (GOP) 35 Repetitive Sequence of Frame Types (IB^m(PB^m)^n)^o Examples I I I... IPP IPP IPP... common: IBBPBBPBB IBBPBBPBB IBBPBBPBB...

GOP Sequence (example) 36

GOP Tradeoffs 37 How much compression desired? More anchor frames = larger file size How much buffer space required? More anchor frames = less reordering buffer space needed How much compression / decode delay is tolerable? More anchor frames = less delay What degree of random access desired? More anchor frames = easier and faster random access, with less memory required How much error recovery is needed? More anchor frames = less sensitive to errors

MPEG Systems 38 The size of the decoder buffer is specified An encoder constraint is that the decoder buffers must never overflow or underflow

MPEG Layers 39 Sequence: picture size, picture rate, buffer sizes, quantization matrices, GOP pattern GOP: SMPTE time code Picture (frame): frame type, motion vector range for frame Slice: unit of resynchronization, collection of consecutive macroblocks preceded by resynchronization code Macroblock: unit of motion compensation (16x16) Block: unit of spatial coding (8x8)

Levels and Profiles 40 MPEG I constrained parameters (reduce possible combinations): # columns <= 720, #rows <= 576 # macroblocks/frame <= 396 # macroblocks / sec <= 396*25 = 330 * 30 Frames rate <= 30 / sec Bit rate <= 1.86 Mb/s Decoder buffer <= 368 Kb MPEG-2 Level = resolution Profile = features used

Levels and Profiles (cont.) 41 Levels Low: 352H x 288V Main: either 720H x 576V x 25 fps, or 720H x 480v x 29.97 fps High: up to 1920H x 1152V Profiles Simple: no B pictures allowed Main: features we have discussed SNR: layered coder (low quality picture and quality enhancement layer both encoded) Spatial: low resolution and resolution enhancement layer both encoded High: all of the above, plus a low frame rate and frame rate enhancement layer both encoded

Compression Example 42

Exhaustive Strategy 43 Check every possible match within some spatial region

Search Strategies 44 Not part of the standard, but the most computationally expensive part of compression One possibility (expensive): exhaustive search Example: offset from -15 to +15 in X and Y directions Approximately 3600 half-pixel possible matches 3600 * 256 subtracts / match * # predicted macroblocks / frame * # predicted frames / sec = around 7 billion operations / second, just for matching More for bidirectionally-predicted!

Pyramid Search 45 Form lower and lower resolution versions of the frames to match and be matched, using low-pass filtering and subsampling Compare lowest-resolution versions first to find best match Then, do search within this region at a higher resolution to find best match etc., until regions are 16x16 macroblocks and best match is found

Logarithmic Search 46 One method: search corners and center of a diagonal square If a corner is the best match, shift diagonal square to be centered on that, and repeat If the center is the best match, do a local exhaustive search around the center Another method: search boundary and center of a large square If a boundary point is the best match, shift the square to center on that point, reduce the square size, and repeat If the center is the best match, do a local exhaustive search

Decompression 47 Much faster; No searching or matching required If motion vector present Use tables to undo entropy coding of motion vector Undo differential encoding of motion vector Read reference block(s) from buffer If quantizer present Scale the quantization matrix

Decompression (Cont.) 48 If block code present Use tables to entropy decode coefficients Undo RLE Undo zigzag Undo quantization Undo DCT Combine differential and reference blocks

Decompression (Cont.) 49 Combine 6 blocks into a macro block (with unsubsampling) Combine macroblocks into an image Convert YCbCr to RGB for display

H.261 50 Standard for videoconferencing Much lower bit rates / quality than MPEG Also called px64, p = 1..30 YCbCr color coding 288 lines by 352 pixels (CIF)or 144 by 176 (QCIF)

H.261 (cont.) 51 Macro blocks like MPEG Intraframe coding like JPEG Interframe coding like P frames from MPEG

Sources Of Info 52 [Gibson98] Digital Compression for Multimedia [Mitchell97] MPEG Video Compression Standard [Poynton96] A Technical Introduction to Digital Video [Fluckiger95] Understanding networked multimedia : applications and technology