Chapter 10 Basic Video Compression Techniques

Slides:



Advertisements
Similar presentations
Multimedia System Video
Advertisements

Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
MPEG-1: A Standard for Digital Storage of Audio and Video Nimrod Peleg Update: Dec
MPEG4 Natural Video Coding Functionalities: –Coding of arbitrary shaped objects –Efficient compression of video and images over wide range of bit rates.
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.
Source Coding for Video Application
MPEG: A Video Compression Standard for Multimedia Applications Didler Le Gall.
SWE 423: Multimedia Systems
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
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.
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.
School of Computing Science Simon Fraser University
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
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.
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.
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.
Video Compression CIS 465 Spring 2013.
CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards.
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.
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.
Picture typestMyn1 Picture types There are three types of coded pictures. I (intra) pictures are fields or frames coded as a stand-alone still image. These.
Video Compression Techniques By David Ridgway.
MPEG Motion Picture Expert Group Moving Picture Encoded Group Prateek raj gautam(725/09)
1 Seminar Presentation Multimedia Audio / Video Communication Standards Instructor: Dr. Imran Ahmad By: Ju Wang November 7, 2003.
1 Chapter 5: Compression (Part 3) Video. 2 Video compression  We need a video (pictures and sound) compression standard for: teleconferencing digital.
UNIT V Video Compression. 2 Outline 1. Introduction to Video Compression 2 Video Compression with Motion Compensation 3 Search for Motion Vectors 4 H.261.
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.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Fundamentals of Multimedia Chapter 12 MPEG Video Coding II MPEG-4, 7 Ze-Nian Li & Mark S. Drew.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 10 ECEC 453 Image Processing Architecture Lecture 10, 2/17/2004 MPEG-2, Industrial.
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-4 Systems Introduction & Elementary Stream Management
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.
IntroductiontMyn1 Introduction MPEG, Moving Picture Experts Group was started in 1988 as a working group within ISO/IEC with the aim of defining standards.
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
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
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
Video Concepts and Techniques 1 SAMARTH COLLEGE OF ENGINEERING &TECHNOLOLOGY DEPARTMENT OF ELECTRONIC & COMMUNICATION ENGINEERING 5th semester (E&C) Subject.
Introduction to MPEG  Moving Pictures Experts Group,  Geneva based working group under the ISO/IEC standards.  In charge of developing standards for.
MPEG Video Coding II — MPEG-4, 7 and Beyond. Administrative Issues (04/26/2016)  Draft of Final Report is due on Tuesday, April 26, 2016  Submit a narrative.
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.
CSI-447: Multimedia Systems
CIS679: MPEG MPEG.
ENEE 631 Project Video Codec and Shot Segmentation
Standards Presentation ECE 8873 – Data Compression and Modeling
MPEG4 Natural Video Coding
Presentation transcript:

Chapter 10 Basic Video Compression Techniques Introduction to Video Compression Video Compression with Motion Compensation H.261 MPEG-1 MPEG-4 MPEG-21 Li & Drew

Introduction to Video Compression A video consists of a time-ordered sequence of frames, i.e., images. An obvious solution to video compression would be predictive coding based on previous frames. Compression proceeds by subtracting images: subtract in time order and code the residual error. It can be done even better by searching for just the right parts of the image to subtract from the previous frame. Li & Drew

Video Compression with Motion Compensation Consecutive frames in a video are similar — temporal redundancy exists. Temporal redundancy is exploited so that not every frame of the video needs to be coded independently as a new image. The difference between the current frame and other frame(s) in the sequence will be coded — small values and low entropy, good for compression. Steps of Video compression based on Motion Compensation (MC): 1. Motion Estimation (motion vector search). 2. MC-based Prediction. 3. Derivation of the prediction error, i.e., the difference. Li & Drew

Motion Compensation Each image is divided into macroblocks of size N x N. - By default, N = 16 for luminance images. For chrominance images, N = 8 if 4:2:0 chroma subsampling is adopted. Motion compensation is performed at the macroblock level. - The current image frame is referred to as Target Frame. - A match is sought between the macroblock in the Target Frame and the most similar macroblock in previous and/or future frame(s) (referred to as Reference frame(s)). - The displacement of the reference macroblock to the target macroblock is called a motion vector MV. - Figure 10.1 shows the case of forward prediction in which the Reference frame is taken to be a previous frame. Li & Drew

Fig. 10.1: Macroblocks and Motion Vector in Video Compression. MV search is usually limited to a small immediate neighborhood — both horizontal and vertical displacements in the range [−p, p]. This makes a search window of size (2p + 1) x (2p + 1). Li & Drew

H.261 H.261: An earlier digital video compression standard, its principle of MC-based compression is retained in all later video compression standards. - The standard was designed for videophone, video conferencing and other audiovisual services over ISDN. - The video codec supports bit-rates of p x 64 kbps, where p ranges from 1 to 30 (Hence also known as p * 64). - Require that the delay of the video encoder be less than 150 msec so that the video can be used for real-time bidirectional video conferencing. Li & Drew

Table 10.2 Video Formats Supported by H.261 Li & Drew

Fig. 10.4: H.261 Frame Sequence. Li & Drew

H.261 Frame Sequence Two types of image frames are defined: Intra-frames (I-frames) and Inter-frames (P-frames): - I-frames are treated as independent images. Transform coding method similar to JPEG is applied within each I-frame, hence “Intra”. - P-frames are not independent: coded by a forward predictive coding method (prediction from a previous P-frame is allowed — not just from a previous I-frame). - Temporal redundancy removal is included in P-frame coding, whereas I-frame coding performs only spatial redundancy removal. To avoid propagation of coding errors, an I-frame is usually sent a couple of times in each second of the video. Motion vectors in H.261 are always measured in units of full pixel and they have a limited range of ± 15 pixels, i.e., p = 15. Li & Drew

Intra-frame (I-frame) Coding Fig. 10.5: I-frame Coding. Macroblocks are of size 16 x 16 pixels for the Y frame, and 8 x 8 for Cb and Cr frames, since 4:2:0 chroma subsampling is employed. A macroblock consists of four Y, one Cb, and one Cr 8 x 8 blocks. For each 8 x 8 block a DCT transform is applied, the DCT coefficients then go through quantization zigzag scan and entropy coding. Li & Drew

Inter-frame (P-frame) Predictive Coding Figure 10.6 shows the H.261 P-frame coding scheme based on motion compensation: - For each macroblock in the Target frame, a motion vector is allocated by one of the search methods discussed earlier. - After the prediction, a difference macroblock is derived to measure the prediction error. - Each of these 8 x 8 blocks go through DCT, quantization, zigzag scan and entropy coding procedures. Li & Drew

For a motion vector, the difference MVD is sent for entropy coding: The P-frame coding encodes the difference macroblock (not the Target macroblock itself). Sometimes, a good match cannot be found, i.e., the prediction error exceeds a certain acceptable level. - The MB itself is then encoded (treated as an Intra MB) and in this case it is termed a non-motion compensated MB. For a motion vector, the difference MVD is sent for entropy coding: MVD = MVPreceding − MVCurrent (10.3) Li & Drew

Fig. 10.6: H.261 P-frame Coding Based on Motion Compensation. Li & Drew

H.261 Encoder and Decoder Fig. 10.7 shows a relatively complete picture of how the H.261 encoder and decoder work. A scenario is used where frames I, P1, and P2 are encoded and then decoded. Note: decoded frames (not the original frames) are used as reference frames in motion estimation. The data that goes through the observation points indicated by the circled numbers are summarized in Tables 10.3 and 10.4. Li & Drew

Fig. 10.7: H.261 Encoder and Decoder. Li & Drew

Fig. 10.7 (Cont'd): H.261 Encoder and Decoder. Li & Drew

MPEG • MPEG: Moving Pictures Experts Group, established in 1988 for the development of digital video. • It is appropriately recognized that proprietary interests need to be maintained within the family of MPEG standards: – Accomplished by defining only a compressed bitstream that implicitly defines the decoder. – The compression algorithms, and thus the encoders, are completely up to the manufacturers. Li & Drew

MPEG-1 MPEG-1 adopts the CCIR601 digital TV format also known as SIF (Source Input Format). MPEG-1 supports only non-interlaced video. Normally, its picture resolution is: – 352 × 240 for NTSC video at 30 fps – 352 × 288 for PAL video at 25 fps – It uses 4:2:0 chroma subsampling The MPEG-1 standard is also referred to as ISO/IEC 11172. It has five parts: 11172-1 Systems, 11172-2 Video, 11172-3 Audio, 11172-4 Conformance, and 11172-5 Software. Li & Drew

Motion Compensation in MPEG-1 • Motion Compensation (MC) based video encoding in H.261 works as follows: – In Motion Estimation (ME), each macroblock (MB) of the Target P-frame is assigned a best matching MB from the previously coded I or P frame - prediction. – prediction error: The difference between the MB and its matching MB, sent to DCT and its subsequent encoding steps. – The prediction is from a previous frame — forward prediction. Li & Drew

Fig 11. 1: The Need for Bidirectional Search Fig 11.1: The Need for Bidirectional Search. The MB containing part of a ball in the Target frame cannot find a good matching MB in the previous frame because half of the ball was occluded by another object. A match however can readily be obtained from the next frame. Li & Drew

Motion Compensation in MPEG-1 (Cont’d) • MPEG introduces a third frame type — B-frames, and its accompanying bi-directional motion compensation. • The MC-based B-frame coding idea is illustrated in Fig. 11.2: – Each MB from a B-frame will have up to two motion vectors (MVs) (one from the forward and one from the backward prediction). – If matching in both directions is successful, then two MVs will be sent and the two corresponding matching MBs are averaged (indicated by ‘%’ in the figure) before comparing to the Target MB for generating the prediction error. – If an acceptable match can be found in only one of the reference frames, then only one MV and its corresponding MB will be used from either the forward or backward prediction. Li & Drew

Fig 11.2: B-frame Coding Based on Bidirectional Motion Compensation. Li & Drew

Fig 11.3: MPEG Frame Sequence. Li & Drew

Typical Sizes of MPEG-1 Frames • The typical size of compressed P-frames is significantly smaller than that of I-frames — because temporal redundancy is exploited in inter-frame compression. • B-frames are even smaller than P-frames — because of (a) the advantage of bi-directional prediction and (b) the lowest priority given to B-frames. Table 11.4: Typical Compression Performance of MPEG-1 Frames Type Size Compression I 18kB 7:1 P 6kB 20:1 B 2.5kB 50:1 Avg 4.8kB 27:1 Li & Drew

Fig 11.5: Layers of MPEG-1 Video Bitstream. Li & Drew

MPEG-4 • MPEG-4: a newer standard. Besides compression, pays great attention to issues about user interactivities. • MPEG-4 departs from its predecessors in adopting a new object-based coding: – Offering higher compression ratio, also beneficial for digital video composition, manipulation, indexing, and retrieval. – Figure 12.1 illustrates how MPEG-4 videos can be composed and manipulated by simple operations on the visual objects. • The bit-rate for MPEG-4 video now covers a large range between 5 kbps to 10 Mbps. Li & Drew

Fig. 12.1: Composition and Manipulation of MPEG-4 Videos. Li & Drew

MPEG-4 (Cont’d) • MPEG-4 (Fig. 12.2(b)) is an entirely new standard for: Composing media objects to create desirable audiovisual scenes. (b) Multiplexing and synchronizing the bitstreams for these media data entities so that they can be transmitted with guaranteed Quality of Service (QoS). (c) Interacting with the audiovisual scene at the receiving end — provides a toolbox of advanced coding modules and algorithms for audio and video compressions. Li & Drew

(a) (b) Fig. 12.2: Comparison of interactivities in MPEG standards: (a) reference models in MPEG-1 and 2 (interaction in dashed lines supported only by MPEG-2); (b) MPEG-4 reference model. Li & Drew

MPEG-7 • The main objective of MPEG-7 is to serve the need of audio-visual content-based retrieval (or audiovisual object retrieval) in applications such as digital libraries. • Nevertheless, it is also applicable to any multimedia applications involving the generation (content creation) and usage (content consumption) of multimedia data. • MPEG-7 became an International Standard in September 2001 — with the formal name Multimedia Content Description Interface. Li & Drew

Applications Supported by MPEG-7 • MPEG-7 supports a variety of multimedia applications. Its data may include still pictures, graphics, 3D models, audio, speech, video, and composition information (how to combine these elements). • These MPEG-7 data elements can be represented in textual format, or binary format, or both. • Fig. 12.17 illustrates some possible applications that will benefit from the MPEG-7 standard. Li & Drew

Fig. 12.17: Possible Applications using MPEG-7. Li & Drew

MPEG-21 • The development of the newest standard, MPEG-21: Multimedia Framework, started in June 2000, and was expected to become International Stardard by 2003. • The vision for MPEG-21 is to define a multimedia framework to enable transparent and augmented use of multimedia resources across a wide range of networks and devices used by different communities. • The seven key elements in MPEG-21 are: – Digital item declaration — to establish a uniform and flexible abstraction and interoperable schema for declaring Digital items. – Digital item identification and description— to establish a framework for standardized identification and description of digital items regardless of their origin, type or granularity. Li & Drew

– Content management and usage — to provide an interface and protocol that facilitate the management and usage (searching, caching, archiving, distributing, etc.) of the content. – Intellectual property management and protection (IPMP) — to enable contents to be reliably managed and protected. – Terminals and networks — to provide interoperable and transparent access to content with Quality of Service (QoS) across a wide range of networks and terminals. – Content representation — to represent content in an adequate way for pursuing the objective of MPEG-21, namely “content anytime anywhere”. – Event reporting — to establish metrics and interfaces for reporting events (user interactions) so as to understand performance and alternatives. Li & Drew