Image Processing Architecture, © 2001-2004 Oleh TretiakPage 1Lecture 9 ECEC-453 Image Processing Architecture Lecture 9, 2/12/ 2004 MPEG 1 Oleh Tretiak.

Slides:



Advertisements
Similar presentations
Multimedia System Video
Advertisements

MPEG-1: A Standard for Digital Storage of Audio and Video Nimrod Peleg Update: Dec
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.
A Brief Overview of the MPEG2 Standard Dr. David Corrigan.
Source Coding for Video Application
SWE 423: Multimedia Systems
Chapter 7 End-to-End Data
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Video Compression Hai Tao.
H.264 / MPEG-4 Part 10 Nimrod Peleg March 2003.
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Fundamentals of Multimedia Chapter 11 MPEG Video Coding I MPEG-1 and 2
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
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 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
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
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.
M P E G A Presentation by Sebastian Graf and Thomas Winterscheid.
Multimedia Data Video Compression The MPEG-1 Standard
Introduction to JPEG and MPEG Ingemar J. Cox University College London.
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.
MPEG Motion Picture Expert Group Moving Picture Encoded Group Prateek raj gautam(725/09)
Profiles and levelstMyn1 Profiles and levels MPEG-2 is intended to be generic, supporting a diverse range of applications Different algorithmic elements.
Concepts of Multimedia Processing and Transmission IT 481, Lecture 5 Dennis McCaughey, Ph.D. 19 February, 2007.
Videos Mei-Chen Yeh. Outline Video representation Basic video compression concepts – Motion estimation and compensation Some slides are modified from.
Final Review by Amy Zhang Digital Media Computing.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
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.
8. 1 MPEG MPEG is Moving Picture Experts Group On 1992 MPEG-1 was the standard, but was replaced only a year after by MPEG-2. Nowadays, MPEG-2 is gradually.
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, © 2001, 2002, 2003 Oleh TretiakPage 1 ECE-C490 Image Processing Architecture MP-3 Compression Course Review Oleh Tretiak.
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 Processing Architecture, © Oleh TretiakPage 1Lecture 6 ECE-C453 Image Processing Architecture Lecture 6, 2/3/04 Lossy Video Coding Ideas.
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.
JPEG.
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
Image Processing Architecture, © Oleh TretiakPage 1Midterm 2 review ECEC 453 Image Processing Architecture Midterm Review February 24, 2003.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 7 ECEC 453 Image Processing Architecture Lecture 8, February 5, 2004 JPEG: A Standard.
MPEG CODING PROCESS. Contents  What is MPEG Encoding?  Why MPEG Encoding?  Types of frames in MPEG 1  Layer of MPEG1 Video  MPEG 1 Intra frame Encoding.
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.
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.
Present by 楊信弘 Advisor: 鄭芳炫
JPEG Compression What is JPEG? Motivation
CSI-447: Multimedia Systems
Discrete Cosine Transform
CMPT 365 Multimedia Systems
CIS679: MPEG MPEG.
Standards Presentation ECE 8873 – Data Compression and Modeling
The JPEG Standard.
MPEG-1 MPEG is short for the ‘Moving Picture Experts Group‘.
Presentation transcript:

Image Processing Architecture, © Oleh TretiakPage 1Lecture 9 ECEC-453 Image Processing Architecture Lecture 9, 2/12/ 2004 MPEG 1 Oleh Tretiak Drexel University

Image Processing Architecture, © Oleh TretiakPage 2Lecture 9 Review JPEG  Modes  Sequential DCT  Progressive DCT  Lossless  Hierarchical  (Lossy) DCT  Multiple color components  Quantization tables  Entropy coding: DC coefficients ZZ scan, run-length coding, Huffman coding

Image Processing Architecture, © Oleh TretiakPage 3Lecture 9 Review: Data Interleaving with Subsampling Example: a color image with Y (intensity), Cb, Cr, (color) components is subsampled so that one color block corresponds to four Y blocks MCU 1 = Y 00 Y 01 Y 10 Y 11 Cr 00 Cb 00, MCU 2 = Y 02 Y 03 Y 12 Y 13 Cr 01 Cb 01

Image Processing Architecture, © Oleh TretiakPage 4Lecture 9 Color Conversion (from JFIF)

Image Processing Architecture, © Oleh TretiakPage 5Lecture 9 Resolution Reduction Trials FullY down by 64Cb, Cr down by 64

Image Processing Architecture, © Oleh TretiakPage 6Lecture 9 RGB reduction FullR, B reduced by 64

Image Processing Architecture, © Oleh TretiakPage 7Lecture 9 Coding AC Coefficients AC coefficients are coded in zig-zag order to maximize possible runs of zeros. Code unit consist of run length followed by coefficient size. Baseline coding of size is the same as for DC differences (Table 2.9) Example: run of 6 zeros, size = -18. In the table, -18 is in category 5. Code is (6/5, 01101). If the Huffman code for 6/5 is 1101, codeword =

Image Processing Architecture, © Oleh TretiakPage 8Lecture 9 Huffman Coding - Block Diagram

Image Processing Architecture, © Oleh TretiakPage 9Lecture 9 Lecture Outline Prediction and motion compensation MPEG-1 and relatives — history Video coding - how MPEG-1 works Details Wrapup Teleconferencing MPEG-2

Image Processing Architecture, © Oleh TretiakPage 10Lecture 9 Predicting sequential images f(t-1)f(t)f(t) f(t)–f(t–1)

Image Processing Architecture, © Oleh TretiakPage 11Lecture 9 Motion Compensation Macroblock size  MxN Matching criterion  MAE (mean absolute error) Search window  ±p pixel locations Search algorithm  Full search  Logarithmic search  Parallel Hierarchical One-Dimensional Search  Pixel subsampling and projection  Hierarchical downsampling

Image Processing Architecture, © Oleh TretiakPage 12Lecture 9 Motion Estimation Methods No compensation Full search logarithmic search 3 level hierarchical

Image Processing Architecture, © Oleh TretiakPage 13Lecture 9 Video Coding History & Standards

Image Processing Architecture, © Oleh TretiakPage 14Lecture 9 Video Coding Chronology Late 1970: High bandwidth digital links drop in price  H.120, H.130, CCITT standards for video telephony, not popular in US and Japan because of technical shortcomings Late 1980's:  H.261 (also known as Px64, reads as P times 64): videoconferencing over ISDN —> ratified in 1990 Mid 1980's:  Sarnoff lab develops system for recording video on CD's (1.5 Mbit). Others follow, ratified as MPEG-1 in — start work on MPEG-2, ratified as H.262 in  Build on the ideas of MPEG-1, but added features for broadcasting 1994 — start work on MPEG-4,  Object-based standard (multimedia).

Image Processing Architecture, © Oleh TretiakPage 15Lecture 9 MPEG Home Official web site  Information site  History  MPEG-1, the standard for storage and retrieval of moving pictures and audio on storage media (approved Nov. 92)  MPEG-2, the standard for digital television (approved Nov. 94)  MPEG-4 version 1, the standard for multimedia applications (approved Oct. 98), version 2, (approved Dec. 99)  MPEG-4 versions 3&4  MPEG-7 the content representation standard for multimedia information search, filtering, management and processing.  Started MPEG-21, the multimedia framework. 

Image Processing Architecture, © Oleh TretiakPage 16Lecture 9 MPEG-1: How it works Goals What the standard specifies MPEG-1 decoder block diagram

Image Processing Architecture, © Oleh TretiakPage 17Lecture 9 MPEG-1: ‘1.5’ Mbps Sample rate reduction in spatial and temporal domains Spatial  Block-based DCT  Huffman coding (no arithmetic coding) of motion vectors and quantized DCT coefficients  352 x 340 pixels, 12 bits per pixel, picture rate 30 pictures per second —> 30.4 Mbps  Coded bit stream 1.15 Mbps (must leave bandwidth for audio)  Compression 26:1  Quality better than VHS! Temporal  Block-based motion compensation  Interframe coding (two kinds)

Image Processing Architecture, © Oleh TretiakPage 18Lecture 9 MPEG-1 Facts Decoder only is specified (encoder is up to implementers) Layered specification Must work in real time over fixed bandwidth media: bit rate control Must satisfy diverse externally imposed requirements  NTSC vs. PAL  Recorded media vs. Broadcast

Image Processing Architecture, © Oleh TretiakPage 19Lecture 9 Block Diagram of MPEG Decoder

Image Processing Architecture, © Oleh TretiakPage 20Lecture 9 Details and buzzwords Interlace, frame and field, picture NTSC and PAL CCIR 601 SIF Constrained parameter bit stream I, P, & B pictures Bit stream, GOP

Image Processing Architecture, © Oleh TretiakPage 21Lecture 9 Legacy Video Standards CRT technology, analog modulation and transmission NTSC (America and Japan)  2 interlaced fields = 1 frame  Frame contains 525 lines, about 10% not visible (vertical retrace)  30 frames per second, 60 fields per second  RGB in video camera and on CRT display, converted to composite video (luminance and chrominance in same frequency band) PAL (Europe)  Interlace, etc  625 lines per frame, 25 frames (50 fields) per second  Different (better) modulation of color (newer standard)

Image Processing Architecture, © Oleh TretiakPage 22Lecture 9 Frames and Fields MPEG 1 works with pictures (~ frames)

Image Processing Architecture, © Oleh TretiakPage 23Lecture 9 Input to MPEG-1 Standard allows many formats (up to 4095x4095 pixels) Standard optimized for CCIR 601 video formats: two source input formats (SIF’s) are specified (NTSC & PAL)  Coded color video has three components: Y, Cb, Cr A MPEG-1 macroblock has 16x16 Y and 8x8 Cb, Cr pixels

Image Processing Architecture, © Oleh TretiakPage 24Lecture 9 Picture Types MPEG-1 is designed to support random access & editing  I — intraframe coding only  P — predictive coding  B — bi-directional coding

Image Processing Architecture, © Oleh TretiakPage 25Lecture 9 Typical MPEG coding parameters Typical sequence  IPBBPBBPBBPBBPBB (16 frames) Average compression 26.3

Image Processing Architecture, © Oleh TretiakPage 26Lecture 9 Video Coder Preprocessing  Color conversion, format translations (interlaced to picture), downsampling Motion estimation, compensation and coding  I pictures — code directly (DCT)  Buffer regulator adjusts quantizer for constant bit rate  Entropy code, then decode and IDCT for further use  P pictures — estimate motion, take difference, code difference  B pictures — estimate two motion vectors  Form average of two predictive pictures  Code difference between current picture and (a) past picture, (b) future picture or (c) average picture, whichever produces least MAE Reorder pictures for transmission  Suppose we have sequence I1, B2, B3, P4, B5, B6, P7.  Send I1, P4, B2, B3, P7, B5, B6.

Image Processing Architecture, © Oleh TretiakPage 27Lecture 9 Coded Video Bit Stream Layered representation 1 Sequence layer May include tables 2 Group of Pictures (GOP) layer 3 Picture layer 4 Slice layer 5 Macroblock layer 6 Block layer

Image Processing Architecture, © Oleh TretiakPage 28Lecture 9 Picture of Layers

Image Processing Architecture, © Oleh TretiakPage 29Lecture 9 MPEG-1 Performance

Image Processing Architecture, © Oleh TretiakPage 30Lecture 9 Coding constraints (minimum) Constrained parameter bit stream. Every MPEG-1 decoder should support these parameters

Image Processing Architecture, © Oleh TretiakPage 31Lecture 9 Macroblock Coding: I & P I pictures  Divided into slices and macroblocks  No motion compensation  Each macroblock can have different quantization  DC and AC coded differently, as in JPEG  Different coding tables from JPEG P pictures  Divided into slices and macroblocks  Option: no motion compensation  Option: can code block as inter or intra (like I picture)  Can skip macroblock (replace with previous). Great compression

Image Processing Architecture, © Oleh TretiakPage 32Lecture 9 Coding Image Blocks B pictures  Inter or intra?  Forward, backward, interpolational?  Code block or skip?  Quantization step?

Image Processing Architecture, © Oleh TretiakPage 33Lecture 9 MPEG-1 Wrap-up Data below for decoder, SIF pictures, 2 B pictures per P IDCT must be precise, because of inter-frame coding MPEG-1 does not deliver quality acceptable for broadcast —> MPEG-2

Image Processing Architecture, © Oleh TretiakPage 34Lecture 9 MPEG-1: ‘1.5’ Mbps Sample rate reduction in spatial and temporal domains Spatial  Block-based DCT  Huffman coding (no arithmetic coding) of motion vectors and quantized DCT coefficients  352 x 340 pixels, 12 bits per pixel, picture rate 30 pictures per second —> 30.4 Mbps  Coded bit stream 1.15 Mbps (must leave bandwidth for audio)  Compression 26:1  Quality better than VHS! Temporal  Block-based motion compensation  Interframe coding (two kinds)

Image Processing Architecture, © Oleh TretiakPage 35Lecture 9 Video Teleconferencing Comprehensive Standard: H.320 Components of H.320  H.261: Video coding, 64 to 1920 kbits/sec  G.722, G.726, G.728: Audio coding from 16 kbits/sec to 64 kbits/sec  H.221: Multiplexing of audio and video (frame based rather than packet based)  H.230 and H.242: Handshaking and control  H.233: encryption

Image Processing Architecture, © Oleh TretiakPage 36Lecture 9 Generic Video Telephone System

Image Processing Architecture, © Oleh TretiakPage 37Lecture 9 H.261 Features Common Interchange Format  Interoperability between 25 fps and 30 fps countries  252 pix/line, 288 line, 30 fps noninterlace  Terminal equipment converts frame and line numbers  Y Cb Cr components, color sub-sampled by a factor of 2 in both directions Coding  DCT, 8x8, 4 Y and 2 chrominance per masterblock  I and P frames only, P blocks can be skipped  Motion compensation optional, only integer compensation  (Optional) forward error correction coding

Image Processing Architecture, © Oleh TretiakPage 38Lecture 9 H.261 vs MPEG-1 Similarities  CIF, SIF, non-interlaced  DCT technology Differences  H.261 uses mostly P frames, no B frames  H.261 typical bit rates much lower (down to 64 kbits/sec)  Low bit rates achieved by reducing frame rate and picture count  Simpler motion compensations  End-to-end coding delay must be low Conclusion: Same technology, different design to meet different needs

Image Processing Architecture, © Oleh TretiakPage 39Lecture 9 MPEG 2 i, i = 0, 1 History & Goals Expanding universe of video coding What are MPEG-2 profiles? Features of MPEG-2

Image Processing Architecture, © Oleh TretiakPage 40Lecture 9 MPEG-2 Goals Compatibility with MPEG-1 Good picture quality Flexibility in input format Random access capability (I pictures) Capability for fast forward, fast reverse play, stop frame Bit stream scalability Low delay for 2-way communications (videoconferencing) Resilience to bit errors

Image Processing Architecture, © Oleh TretiakPage 41Lecture 9 MPEG-2 Implications No reason to restrict to CCIR 601  High resolution can be included (HDTV) No single standard can satisfy all requirements  Family of standards Most applications use a small set of the features  Toolkit approach

Image Processing Architecture, © Oleh TretiakPage 42Lecture 9 MPEG-2 profiles A profile is a subset of the entire MPEG-2 bit-stream syntax  Simple  Main  4:2:2  SNR  Spatial  High  Multiview Each profile has several levels (resolution quality)  Low — MPEG1  Main — CCIR 601  High-1440 (Video Editing)  High (HDTV)

Image Processing Architecture, © Oleh TretiakPage 43Lecture 9 Features of MPEG-2 Support of both non-interlaced and interlaced pictures Color handling  Y Cb Cr color space  Several subsampling schemes are used  4:2:0, 4:2:2, 4:4:4 MPEG-2 sequence can be either frames or fields  Both frame prediction and field prediction are supported  There can be motion between two fields in a frame, so that frame prediction is more tricky  In frame prediction, both fields constitute one picture  In field prediction, either field in the previous frame or the previous field in this frame can be used as reference  Robustified coding of motion vectors to protect against bit errors  Special prediction modes: 16x8, dual-prime