A Brief Overview of the MPEG2 Standard Dr. David Corrigan.

Slides:



Advertisements
Similar presentations
T.Sharon-A.Frank 1 Multimedia Compression Basics.
Advertisements

Video Compression - MPEG
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.
SWE 423: Multimedia Systems
Chapter 7 End-to-End Data
School of Computing Science Simon Fraser University
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
Department of Computer Engineering University of California at Santa Cruz Video Compression Hai Tao.
JPEG.
H.264 / MPEG-4 Part 10 Nimrod Peleg March 2003.
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
ATSC Digital Television
Fundamentals of Multimedia Chapter 11 MPEG Video Coding I MPEG-1 and 2
1 Image and Video Compression: An Overview Jayanta Mukhopadhyay Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur,
Video Compression Basics
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.
MPEG-2 Transport streams tMyn1 MPEG-2 Transport streams The MPEG-2 Systems Standard specifies two methods for multiplexing the audio, video and other data.
MPEG2 FGS Implementation ECE 738 Advanced Digital Image Processing Author: Deshan Yang 05/01/2003.
Video Compression CIS 465 Spring 2013.
Image Formation and Digital Video
MPEG-2 Digital Video Coding Standard
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
EE 5359 H.264 to VC 1 Transcoding Vidhya Vijayakumar Multimedia Processing Lab MSEE, University of Arlington Guided.
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.
Audio/Video compression More about video compression and MPEG Alain Bouffioux December, 20, 2006.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
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.
Multimedia Data Video Compression The MPEG-1 Standard
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
Video Compression Techniques By David Ridgway.
D ATA C OMMUNICATIONS Compression Techniques. D ATA C OMPRESSION Whether data, fax, video, audio, etc., compression can work wonders Compression can be.
DIGITAL Video. Video Creation Video captures the real world therefore video cannot be created in the same sense that images can be created video must.
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Codec structuretMyn1 Codec structure In an MPEG system, the DCT and motion- compensated interframe prediction are combined. The coder subtracts the motion-compensated.
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.
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.
An introduction to audio/video compression Dr. Malcolm Wilson.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 10 ECEC 453 Image Processing Architecture Lecture 10, 2/17/2004 MPEG-2, Industrial.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Fine Granularity Scalability in MPEG-4 Video by Weiping Li Presentation by Warren Cheung.
Multimedia – Digital Video Dr. Lina A. Nimri Lebanese University Faculty of Economic Sciences and Business Administration 1 st branch.
MPEG.
Overview of Fine Granularity Scalability in MPEG-4 Video Standard Weiping Li Presented by : Brian Eriksson.
IntroductiontMyn1 Introduction MPEG, Moving Picture Experts Group was started in 1988 as a working group within ISO/IEC with the aim of defining standards.
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.
4C8 Dr. David Corrigan Jpeg and the DCT. 2D DCT.
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.
JPEG Compression What is JPEG? Motivation
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Dr. Jim Rowan ITEC 2110 Video Part 2
Data Compression.
Video Compression - MPEG
Dr. Jim Rowan ITEC 2110 Video Part 2
CIS679: MPEG MPEG.
Standards Presentation ECE 8873 – Data Compression and Modeling
MPEG4 Natural Video Coding
Judith Molka-Danielsen, Oct. 02, 2000
Presentation transcript:

A Brief Overview of the MPEG2 Standard Dr. David Corrigan

MPEG-2 the Basics  We have already covered a lot of the background of how video compression (or coding) works inside MPEG2.  Intra-Coding (I-frames) v Prediction Coding (P-frames) v Bi-Directional Prediction Coding (B-frames) & the Group of Pictures (GOP)  Most of the subsequent coding architecture is inherited from JPEG  DCT.  Quantisation.  Variable Length Coding (VLC) – ie Huffman + Run Length Coding.  But it is not that simple  motion vectors need to be coded, we may need to include direction prediction information  must deal with interlaced video  plus what about audio & subtitles (either in text or lossless image format)?  and what about streaming  so….

MPEG-2 the Basics  MPEG 2 is about more than video coding  Part 1 – Systems (describes how audio and video are plugged together)  Part 2 – Video  Part 3 – Audio (an extension of the MPEG 1 audio standards)  Part 4 – conformance testing  Part 5 – software simulation  Part 6 – Digital Storage Media Command and Control – (eg. rewind forward etc etc)  Part 7 – Advanced Audio Coding (AAC) – a 2 nd audio standard  there are even more parts

Challenges in MPEG2 (besides compression) 1. Multiplexing  How to combine audio video and text?  They must appear at the same time. 2. Media  Streams can be stored on a hard drive or DVD  Data can be broadcast or streamed on the internet 3. Sequencing  how to send data so that it will be received in the correct order?  how to sychronise the decoder and encoder?

Challenges in MPEG2 (besides compression) 4. Error Resilience  like synchronisation in JPEG.  but temporal propagation of errors is a problem in video. 5. Rate Control/Bandwidth  need to be able to specify a bit rate given the bandwidth available  need to be able to adaptive adjust the quantisation step size 6. Scalability/Multiplatform  adaptive quality based on the decoder hardware  can we have one stream for both low and high quality video?

Scalability in MPEG 2 SNR Scalability Spatial Scalability

Profiles and Levels  MPEG 2 supports a wide variety of scenarios  eg. high quality tv broadcast, low bit rate internet streaming etc  decoders can have varying degrees of complexity + plus a decoder for internet streaming should not have to support decoding of digital tv signals.  MPEG 2 defines Profiles and Level for streams  Profiles define the required decoder complexity (feature set) to decode the stream  Levels define the maximum allowed resolution frame rate and bit rate.

Levels in MPEG 2

Allowed Profile/Level Combinations 4:2:2 profile extends on the main profile but does not support scalabilty

Profile/Level Combinations  Standard Definition TV uses the Main Profile and the Main Level  allows bi-directional prediction but not scalability and stream must use 4:2:0 YC b C r chroma downsampling  Streams have a max resolution of 720x576, max frame rate of 30 fps and max bit rate of 15 mbits/second  also used on DVDs  HDTV uses the Main Profile and the High Level  The Main Profile defines the core set of algorithms in MPEG 2.

MPEG 2 Main Profile (Layers)  MPEG Sequence is organised into a hierarchy of layers, like an onion  The Sequence Layer – the entire video sequence  The GOP Layer – delineating exactly one Group of Pictures (PAL max 15, NTSC max 18 frames)  The Picture Layer – referring to a single I- P- or B-frame.  The Slice Layer – represents a horizontal group of macroblocks that do not span multiple rows.  The Macrobock Layer – represents unit of data for motion estimation (16x16). Conists of blocks for luminance and chrominance.  The Block Layer – contains the DCT coefficients for 1 8x8 block of pixels (can be either a luminance of chrominance block).

The GOP Layer (Frame Ordering)  When using IBBP…. prediction mode we have to reorder frames so that all prediction is “backward” (ie. causal)  so if a B-frame requires a subsequent P-frame for forward prediction the p-frame is placed first in the stream. B-frames from previous GOP come after I frame P-frame 4 is sent before B-frames 2 and 3

The Picture Layer (Interlacing)  The odd and even fields can be coded together as if it were a frame or the can be coded independently  if there is no motion then we can combine the two fields into a single image called a “frame-picture.” Better for compression efficiency.  if there is motion then the two fields are coded separately as if they were two pictures called “field-pictures”. Odd Field-Picture Even Field-Picture Frame Picture

The Slice Layer (Synchronisation)  Slices can be of arbitrary length but can not extend onto a new line.  They are the MPEG-2 solution to the problem of spatial synchronisation (errors can not propagate spatially between slices).  Slice length set depending on the error conditions  ie. shorter when the error rate is high.  Can get temporal propagation of errors too but they can extend longer than 1 GOP because of the prediction strategy.

The Macroblock Layer  Each macroblock contains 4 luminance blocks and 2 chrominance blocks if 4:2:0 (4 chrominance if 4:2:2)  I-frame macroblocks contain no vectors, 1 in P-frames and 2 in B-frames. If interlaced then the number of vectors doubles.  Macroblocks for P- and B-frames can be intra-coded if the prediction error (DFD) is too large.  Motion estimator not specified but the vectors are limited in range and are quantised to 0.5 pixel accuracy.

Coding of Motion Vectors

Coding Δ x and Δ y

 A table of how the choice of Size effects the range of difference that can be coded.  Size is set once at the start of each Picture Layer. (ie. it is the same over the entire picture).  It is common to choose larger size for P-frames cause motion is bigger.

Coding Δ x and Δ y

Huffman Codes for motion_code

Example

The Block Layer (Quantisation) Quantisation step sizes for intra-coded blocks Quantisation step size for prediction-coded blocks similar to the matrix used in JPEG a fixed Q step = 16 for all coefficients

The Block Layer (Quantisation)

The Block Layer (Scan Order) Scan Order for Progressive VideoScan Order for Interlaced Video

The Block Layer (Scan Order)  Idea is to maximise length of runs of zeros in the block.  So progressive frames use the zig-zag scan like JPEG  Interlaced Frames use an alternative scan because there are likely to be non-zero DCT coefficients toward the bottom left corner of the block.

Sequencing, Media and Multiplexing  We could have multiple elementary streams (ie. video, audio, text etc.). They have to combined into a single non-elementary stream and have to be both decoded and displayed in a certain order in the receiver.  The MPEG 2 Part 1 (Systems) standard specifies two different ways of doing this  Program Stream (PS) – used for reliable media such as DVDs  Transport Stream (TS) – used for Digital TV Transmission over noisy channels.  Note there are other ways of doing this that exist outside of the standard  eg. the avi and mov file formats can be used with compressed MPEG2 data.  To do this the notions of time and packets are introduced.  each elementary stream is divided into packets. They can be of fixed or variable length.  these packets are interleaved by the encoder.  each packet carries a timestamp which tells the decoder the correct order.

MPEG 2 Program Stream (PS)  Consists of Packetised Elementary Stream (PES) packets.  PES packets contain 2 timestamps 1. Decoding Time Stamp (DTS) – this tells the decoder when the packet should be decoded. The data is then decoded into the bit stream. 2. Presentation Time Stamp (PTS) – this tells the decoder when the data should be displayed.  The systems part specifies that the decoder must contain a Systems Clock called the STC  when a decoder’s STC is equal to a packet’s DTS the data in the packet is decoded  when the STC is equal to a packet’s PTS the decoded data is sent to the display device (eg. graphics card or sound card)  the state of the encoders clock is placed in the stream at regular intervals. This synchronises the decoder with the encoder.

MPEG-2 Transport Stream (TS)  The transport stream uses a fixed packet length (188 bytes)  this allows easy decoder/encoder synchronisation.  it also allows error correction codes to be inserted.  Transport Streams can contain packets from a number of Programs  These can be different TV channels or maybe an EPG.  Each program has a unique Packet ID placed in the packet header.  Decoder can discard packets of other programs by checking the PID.