1 Video Compression 1: H 261 Multimedia Systems (Module 4 Lesson 2) Summary: r H 261 Coding Compress color motion video into a low-rate bit stream at following.

Slides:



Advertisements
Similar presentations
Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
Advertisements

Basics of MPEG Picture sizes: up to 4095 x 4095 Most algorithms are for the CCIR 601 format for video frames Y-Cb-Cr color space NTSC: 525 lines per frame.
1 Video Coding Concept Kai-Chao Yang. 2 Video Sequence and Picture Video sequence Large amount of temporal redundancy Intra Picture/VOP/Slice (I-Picture)
Multimedia communications EG-371Dr Matt Roach Multimedia Communications EG 371 and EG 348 Dr Matthew Roach Lecture 2 Digital.
Source Coding for Video Application
SWE 423: Multimedia Systems
SWE 423: Multimedia Systems
School of Computing Science Simon Fraser University
Department of Computer Engineering University of California at Santa Cruz Video Compression Hai Tao.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
T.Sharon-A.Frank 1 Multimedia Size of Data Frame.
CS :: Fall 2003 MPEG Video (Part 2) Ketan Mayer-Patel.
Lecture06 Video Compression. Spatial Vs. Temporal Redundancy Image compression techniques exploit spatial redundancy, the phenomenon that picture contents.
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
Fundamentals of Multimedia Chapter 10 Basic Video Compression Techniques Ze-Nian Li & Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Fundamentals of Multimedia Chapter 11 MPEG Video Coding I MPEG-1 and 2
ITU-T Recommendation H.261
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
An Introduction to H.264/AVC and 3D Video Coding.
Video Compression Concepts Nimrod Peleg Update: Dec
1 Video Compression 2: Bi-directional Coding Multimedia Systems (Module 4 Lesson 3) Summary: r MPEG Coding m Bi-directional Motion- Compensation r MPEG.
IT 342 : Fundamentals of Multimedia
Video Compression CIS 465 Spring 2013.
Image and Video Compression
JPEG 2000 Image Type Image width and height: 1 to 2 32 – 1 Component depth: 1 to 32 bits Number of components: 1 to 255 Each component can have a different.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 9 ECEC-453 Image Processing Architecture Lecture 9, 2/12/ 2004 MPEG 1 Oleh Tretiak.
MPEG-2 Standard By Rigoberto Fernandez. MPEG Standards MPEG (Moving Pictures Experts Group) is a group of people that meet under ISO (International Standards.
MPEG MPEG-VideoThis deals with the compression of video signals to about 1.5 Mbits/s; MPEG-AudioThis deals with the compression of digital audio signals.
Page 19/15/2015 CSE 40373/60373: Multimedia Systems 11.1 MPEG 1 and 2  MPEG: Moving Pictures Experts Group for the development of digital video  It is.
Video Coding. Introduction Video Coding The objective of video coding is to compress moving images. The MPEG (Moving Picture Experts Group) and H.26X.
Multimedia Data Video Compression The MPEG-1 Standard
Video Concepts and Techniques
MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
Videos Mei-Chen Yeh. Outline Video representation Basic video compression concepts – Motion estimation and compensation Some slides are modified from.
1 Chapter 5: Compression (Part 3) Video. 2 Video compression  We need a video (pictures and sound) compression standard for: teleconferencing digital.
1 Data Compression: Source Coding: Part II Data Compression: Source Coding: Part II Chapter 8.
MPEG MPEG : Motion Pictures Experts Group MPEG : ISO Committee Widely Used Video Compression Standard.
Chapter 11 MPEG Video Coding I — MPEG-1 and 2
June, 1999 An Introduction to MPEG School of Computer Science, University of Central Florida, VLSI and M-5 Research Group Tao.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Image Processing Architecture, © 2001, 2002 Oleh TretiakPage 1Lecture 15 ECEC-453 Image Processing Architecture 3/11/2004 Exam Review Oleh Tretiak Drexel.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 10 ECEC 453 Image Processing Architecture Lecture 10, 2/17/2004 MPEG-2, Industrial.
Chapter 10 Basic Video Compression Techniques
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
Image/Video Coding Techniques for IPTV Applications Wen-Jyi Hwang ( 黃文吉 ) Department of Computer Science and Information Engineering, National Taiwan Normal.
MPEG-1Standard By Alejandro Mendoza. Introduction The major goal of video compression is to represent a video source with as few bits as possible while.
Chapter 10 Basic Video Compression Techniques 10.1 Introduction to Video Compression 10.2 Video Compression with Motion Compensation 10.3 Search for Motion.
MPEG.
Page 11/28/2016 CSE 40373/60373: Multimedia Systems Quantization  F(u, v) represents a DCT coefficient, Q(u, v) is a “quantization matrix” entry, and.
Block-based coding Multimedia Systems and Standards S2 IF Telkom University.
Video Compression and Standards
Motion Estimation Multimedia Systems and Standards S2 IF Telkom University.
Introduction to MPEG Video Coding Dr. S. M. N. Arosha Senanayake, Senior Member/IEEE Associate Professor in Artificial Intelligence Room No: M2.06
6/9/20161 Video Compression Techniques Image, Video and Audio Compression standards have been specified and released by two main groups since 1985: International.
Principles of Video Compression Dr. S. M. N. Arosha Senanayake, Senior Member/IEEE Associate Professor in Artificial Intelligence Room No: M2.06
1שידור ווידיאו ואודיו ברשת האינטרנט Dr. Ofer Hadar Communication Systems Engineering Department Ben-Gurion University of the Negev URL:
Video Compression Video : Sequence of frames Each Frame : 2-D Array of Pixels Video: 3-D data – 2-D Spatial, 1-D Temporal Video has both : – Spatial Redundancy.
CMPT365 Multimedia Systems 1 Media Compression - Video Spring 2015 CMPT 365 Multimedia Systems.
MPEG Video Coding I: MPEG-1 1. Overview  MPEG: Moving Pictures Experts Group, established in 1988 for the development of digital video.  It is appropriately.
H. 261 Video Compression Techniques 1. H.261  H.261: An earlier digital video compression standard, its principle of MC-based compression is retained.
Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
Present by 楊信弘 Advisor: 鄭芳炫
H.261 Video Compression Overview
CSI-447: Multimedia Systems
ENEE 631 Project Video Codec and Shot Segmentation
Standards Presentation ECE 8873 – Data Compression and Modeling
Presentation transcript:

1 Video Compression 1: H 261 Multimedia Systems (Module 4 Lesson 2) Summary: r H 261 Coding Compress color motion video into a low-rate bit stream at following resolutions: m QCIF (176 x 144) m CIF (352 x 288) r Inter and Intra Frame coding r Motion Vectors Sources: r “Digital Compression for Multimedia: Principles and Standards”, Jerry D. Gibson, Toby Berger, Tom Lookabaugh, Dave Lindbergh and Richard L. Baker. r My research notes

2 H 261 r The ITU-T recommendation H.261 (a.k.a px64), is for video telephony over ISDN lines. r H.261 is part of the H.320 group of standards which describes the different components of a video conferencing system and define a narrow-band multimedia terminal. r H.261 compression algorithm takes advantage of both the spatial and the temporal redundancy of video sequences to achieve high compression ratios. r H.261 supports low resolution formats due to bandwidth constrains and therefore cannot deliver video broadcast quality; Resolutions: m Common Intermediate Format (CIF ) 352x288 pixels. m Quarter CIF (QCIF ) at 176 x 144 pixels. r The maximum frame rate is 30 frames per second but it can be reduced depending on the application and bandwidth availability

3 H 261 Coding Basics r A frame of video is one screenshot. r Code frames as two types m I-frames or Intra-coded frames: Coded by exploiting redundancy within the frame You can think of these as being just the JPEG coding of the frame These are reference points in the video sequence m P-frames or Inter-coded frames These are codings of frames that exploit their similarity with previously coded frames Also called predicted or pseudo frames r An example H 261 Frame Sequence: JPEGJPEG I PPPPPI JPEGJPEG I JPEGJPEG

4 Intra-Frame Coding r Macroblocks for coding m A Macroblock spans a 16x16 pixel area with 4 Y blocks and one Cr block and 1 Cb block. A block is still 8x8 pixels m Uses a uniform Quantization as opposed to a table. Y Cr Cb 8x8 DCTUnif-Q 8x8 Rest of JPEG Macroblock

5 Inter-Frame Coding Basic Idea: r Encode the “difference” of a motion-compensated part of target frame (frame to code) with respect to a decoded reference frame. m The reference frame is always the previous I-frame. r Motion Vector: The “offset” w.r.t to the best match (macroblock) for this macroblock Macroblock(16x16) Target Reference (Decoded) Y Cr Cb DCT+Q+RLE+Huff Motion Vector Motion Vector Formatting Output MAE

6 P-Frame Coding: Motion Vector? In the previous slide I said, we are looking for a “best” match. How do we do this? Here is the basic idea: Target (x,y) Reference (x,y) Reference (x,y) Searching region Motion Vector(u,v) MAE(Mean Absolute Error): r C[x..x+15][y..y+15] is the target block r R[x+u..x+u+15][y+v,y+v+15] is the reference block

7 Motion Vector? We search inside the searching region to find a (u,v) such that MAE(u,v) is a minimum. Search Mechanisms r Full Search Method m Sequentially search the whole search region (indicated by the dashed area in the figure) m Disadvantage: It is an expensive search, hence very slow. r 2-D Logarithmic search r Hierarchical Estimation r Other Enhancements: m Relax the integer pixel offset limitation by allowing fractional- pixel offsets instead.

8 2-D Logarithmic Search We will discuss two approaches here: r This approach was published in a paper by Jain and Jain. m Iterative comparison of the error measure (MAE) at five neighboring points m Logarithmic refinement (divide by 2) of the search pattern if Best match is in the center of the 5-point pattern (right figure) OR, center of search pattern touches the border of the search range (left figure) Search edge

9 2-D Logarithmic Search Second Approach r Iterative comparison of the error measure (MAE) at Nine neighboring points m Repeat until the size of the search region is one pixel wide: 1.Find one of the nine locations that yields the minimum MAE 2.Form a new searching region with half of the previous size and centered at the location found in step

10 Hierarchical Estimation Basic Idea: m Form a collection of increasingly sub-sampled versions of the current and reference image m Find a motion vector (*use one of the previous methods) using the lowest resolution images. m Repeat the same in the higher resolution image using the previous (lower) answer as the initial point for search. Do this until we reach the highest resolution. Sample 1/2 Motion Estimation Motion Vector Level 2 Motion Vector estimate Level 1 Motion Vector estimate

11 Rate Control The Problem: H.261 is typically used to send data over a constant bit rate channel, such as ISDN (e.g. 384kbps). The encoder output bit rate varies depending on amount of movement in the scene (see the graph below which shows the bit rate variation for a typical H.261 encoded video sequence). Therefore, a rate control mechanism is required to map this varying bit rate onto the constant bit rate channel.

12 Rate Control: Solution r The encoded bitstream is buffered and the buffer is emptied at the constant bit rate of the channel r An increase in scene activity will result in the buffer filling up m the quantization step size in the encoder is increased which increases the compression factor and reduces the output bit rate r If the buffer starts to empty, then the quantization step size is reduced which reduces compression and increases the output bit rate r The compression, and the quality, can vary considerably depending on the amount of motion in the scene m relatively "static" scenes lead to low compression and high quality m "active" scenes lead to high compression and lower quality Encoder Rate Ctrl Channel Buffer Video Sequence

13 H.261 BitStream Format r Need to delineate boundaries between pictures, so send Picture Start Code --> PSC r Need timestamp for picture (used later for audio synchronization), so send Temporal Reference --> TR r Is this a P-frame or an I-frame? Send Picture Type --> PType r Picture is divided into regions of 11 x 3 macroblocks called Groups of Blocks --> GOB r Might want to skip whole groups, so send Group Number (Grp #) r Might want to use one quantization value for whole group, so send Group Quantization Value --> GQuant r Overall, bitstream is designed so we can skip data whenever possible while still unambiguous. PSCTRPType GOB … GOB StartGrp #GQuant MB … AddrTypeQuantM. VectorCBP b0 b1…b5 DCSkip,Val… EOB

14 H.261 BitStream Format r Many macroblocks will be exact matches (or close enough). So send address of each block in image --> Addr r Sometimes no good match can be found, so send INTRA block --> Type r Will want to vary the quantization to fine tune compression, so send quantization value --> Quant r Motion vector --> vector r Some blocks in macroblock will match well, others match poorly. So send bitmask indicating which blocks are present (Coded Block Pattern, or CBP). r Send the blocks (4 Y, 1 Cr, 1 Cb) as in JPEG. PSCTRPType GOB … GOB StartGrp #GQuant MB … AddrTypeQuantM. VectorCBP b0 b1…b5 DCSkip,Val… EOB

15 H.263 r H. 263 is an improved standard for low bit-rate. Like H. 261, it uses the transform coding for intra-frames and predictive coding for inter- frames. r Advanced Options: m Half-pixel precision in motion compensation m Unrestricted motion vectors m Syntax-based arithmetic coding m Advanced prediction and PB-frames r In addition to CIF and QCIF, H. 263 could also supports SQCIF, 4CIF, and 16CIF.