Multimedia Data Video Compression The MPEG-1 Standard Dr Mike Spann Electronic, Electrical and Computer.

Slides:



Advertisements
Similar presentations
Multimedia System Video
Advertisements

JPEG Compresses real images Standard set by the Joint Photographic Experts Group in 1991.
MPEG Moving Picture Experts Group. What defines good video quality? Size of pictures Bitrate of channel medium (especially in real-time applications)
15 Data Compression Foundations of Computer Science ã Cengage Learning.
MPEG: A Video Compression Standard for Multimedia Applications Václav Hlaváč CTU Prague, Initial material were slides of Didier.
Data Compression CS 147 Minh Nguyen.
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.
Audiovisual digital documents Adolf Knoll National Library of the Czech Republic
Multimedia communications EG-371Dr Matt Roach Multimedia Communications EG 371 and EG 348 Dr Matthew Roach Lecture 2 Digital.
Source Coding for Video Application
Chapter 7 End-to-End Data
Video enhances, dramatizes, and gives impact to your multimedia application. Your audience will better understand the message of your application.
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.
Comp :: Fall 2003 Video As A Datatype Ketan Mayer-Patel.
CT20A6100 MACHINE VISION AND DIGITAL IMAGE ANALYSIS MPEG Pauli Jutila Cristina Petre.
ATSC Digital Television
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
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
Video Data Topic 4: Multimedia Technology. What is Video? A video is just a collection of bit-mapped images that when played quickly one after another.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
Video Data Topic 4: Multimedia Technology. What is Video? A video is just a collection of bit-mapped images that when played quickly one after another.
1 Digital Video. 2  Until the arrival of the Pentium processor, in 1993, even the most powerful PCs were limited to capturing images no more than 160.
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.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
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.
M P E G A Presentation by Sebastian Graf and Thomas Winterscheid.
Multimedia Data Video Compression The MPEG-1 Standard
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Encoding of Waveforms Encoding of Waveforms to Compress Information.
Video Basics. Agenda Digital Video Compressing Video Audio Video Encoding in tools.
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)
10/10/04 L5/1/28 COM342 Networks and Data Communications Ian McCrumRoom 5D03B Tel: voice.
Video Video.
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.
Video.
Videos Mei-Chen Yeh. Outline Video representation Basic video compression concepts – Motion estimation and compensation Some slides are modified from.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Multimedia Data DCT Image Compression
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
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”
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 10 ECEC 453 Image Processing Architecture Lecture 10, 2/17/2004 MPEG-2, Industrial.
Multimedia – Digital Video Dr. Lina A. Nimri Lebanese University Faculty of Economic Sciences and Business Administration 1 st branch.
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.
Block-based coding Multimedia Systems and Standards S2 IF Telkom University.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Video Compression and Standards
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.
Video Data Topic 4: Multimedia Technology. What is Video? A video is just a collection of bit-mapped images that when played quickly one after another.
6/9/20161 Video Compression Techniques Image, Video and Audio Compression standards have been specified and released by two main groups since 1985: International.
Video Concepts and Techniques 1 SAMARTH COLLEGE OF ENGINEERING &TECHNOLOLOGY DEPARTMENT OF ELECTRONIC & COMMUNICATION ENGINEERING 5th semester (E&C) Subject.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Digital Video Representation Subject : Audio And Video Systems Name : Makwana Gaurav Er no.: : Class : Electronics & Communication.
1 Introduction to Video Compression תשס"ט – 2009 דחיסת מולטימדיה – הנדסת מערכות תקשורת Part A Introduction to Video Compression תשס"ט – 2009 דחיסת מולטימדיה.
Level 3 Extended Diploma Unit 19 Computer Systems Architecture
Video Basics.
JPEG Image Coding Standard
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Data Compression.
Video Compression - MPEG
Standards Presentation ECE 8873 – Data Compression and Modeling
Judith Molka-Danielsen, Oct. 02, 2000
Presentation transcript:

Multimedia Data Video Compression The MPEG-1 Standard Dr Mike Spann Electronic, Electrical and Computer Engineering This lecture provides a short introduction to video compression using the original MPEG-1 standard as an example.

Contents  Analogue TV  Basic digital TV – the problem  MPEG-1 definition  Decimation (spatial, temporal and colour)  Spatial compression  Temporal compression  Difference coding  Motion compensation

Analogue Television  How much bandwidth would we need for uncompressed digital television?  The European analogue TV format was 625 scan lines, 25 interlaced frames per second, 4:3 aspect ratio –However 50 lines are lost for ‘field blanking’  It used interlacing to reduce the vertical resolution by half  Horizontal resolution was 575/2*(4/3) = 383 points –For 25 frames per second, the line duration is about 52µs –Therefore the bandwidth required is about 383/52 MHz or about 7.3MHz –The value used in practice is 5.5MHz as additional bandwidth makes no difference subjectively  Analogue colour information was quite cleverly added without increasing bandwidth (NTSC, PAL and SECAM standards)

Digital Television – Raw Video  For digital use, let’s say an 8 bit resolution is adequate.  For colour pictures we will need Red, Green and Blue (RGB.)  To digitise, we need to sample at twice the highest frequency (Nyquist’s Theorem) of 5.5MHz and convert three colours (RGB) at 8 bits each. –Bitrate = (5.5x2) x 3 x 8 = 264 Mbits/sec  Compare with analogue bandwidth of 5.5MHz)  Digitising the analogue television signal created a huge digital bandwidth requirement. We needed some efficient compression.

Coding of Moving Pictures and Associated Audio for Digital Storage Media at up to about 1.5 Mbits/sec. International Standard IS-11172, completed in  Moving Picture Experts Group – 1 st phase  Video CD - A standard for video on CD’s at ‘VHS’ quality.  Audio CD’s have a data rate of 1.5Mb/s – video has a raw data rate of 264Mb/s about 200 times higher!  Something had to be lost. Commonly known as MPEG-1

MPEG-1 Decimation  This means just throwing data away...  Where can we decimate? –Spatial –Colour –Temporal –(also audio)  Temporal - Interlacing is dropped giving 25 full frames per second

Spatial Decimation  European broadcast TV standard  Resolution is reduced to 352 (width) by 288 (height) pixels –Source Input Format (SIF) 352 pixels 288 pixels 417 lines 625 Half-lines

Colour Decimation  Human perception is most sensitive to luminance (brightness) changes  Colour is less important e.g. a black and white photograph is still recognisable  RGB encoding is wasteful – human perception tolerates poorer colour.  Use YUV and only encode chrominance (UV) at half resolution in each direction (176 by 144) – Quarter SIF.) This gives 0.25 data for U and V compared to Y.

Original (100%)0.5 UV (25%)0.25 UV (6.25%) 0.2 UV (4%)0.1 UV (1%)0.0 UV (0%) Colour Decimation Example

Temporal Decimation  Three standards for frame rate in use today –Cinema uses 24 FPS –European TV uses 25 FPS –American TV uses 30 FPS  Lowest acceptable frame rate is 25 FPS so little decimation can be achieved for Video CD  MPEG-1 does allow much lower frame rates e.g. for internet video – but quality is reduced

Decimation – The Result  After throwing away all this information, we still have a data rate of (assuming 8 bits per YUV): –Y = (352*288) * 25 * 8 = 20.3 Mb/s –U = (352/2 * 288/2) * 25 * 8 = 5.07 Mb/s –V = (352/2 * 288/2) * 25 * 8 = 5.07 Mb/s TOTAL (for video) = Mb/s –MPEG 1 audio runs at 128Kb/s –Video CD - Target is 1.5Mb/sec Space for video = 1.5 – 0.128Mb/s = 1.372Mb/s  So now use compression to get a saving of 22:1

Spatial Compression  A video is a sequence of images – and images can be compressed.  JPEG uses lossy compression – typical compression ratios are around 10:1 and, with deteriorating, quality up toward 20:1  We could just compress images and send these.  Time does not enter into the process.  This is called intra-coding (intra = within) –Generically called Motion JPEG (M-JPEG) –Typically used by digital cameras

Spatial Compression  Very similar to JPEG  Image divided into 8 by 8 pixel sub-blocks  Number of blocks = 352/8 by 288/8 = 44 by 36 blocks  Each block DCT coded  Quantisation - dropping low- amplitude coefficients  Huffman coded  This produces a complete frame called an Intra frame (I)

Temporal Compression  Spatial compression does not take into account similarities between adjacent frames  Talking Heads - Backgrounds don’t change  Consecutive images (1/25th second apart) are very similar  Just send the difference between adjacent frames

Difference Coding  Only send difference between this frame and previous frame  Result is very sparse – high compression now possible using block-based DCT as before

Difference Coding  Using the previous frame and the encoded difference frame we can recreate the original – this is called a predicted frame (P frame).  This recreated frame can then be used to form the next frame and the process is repeated.  Usually a sequence of P frames is created until the next I frame (maybe a scene change!) IIPPPPP.....

Difference coding  Difference coding is good for ‘talking heads’  Not good for scenes with lots of movement

Motion Compensation  Difference coding is good, but often an object will simply change position between frames.  DCT coding not as good as for ‘sparse’ difference image.

Motion Compensation  Motion compensation is a simple and efficient means of accounting for the motion of objects  Assumes the frame is split up into macroblocks of typically 16x16 pixels  Instead of transmitting the pixel colours for a macroblock in the current frame, we search for the position it in the previous frame (reference frame) and simply transmit the motion vector –Relies on simplistic assumptions –The search is computationally expensive Current frame Reference frame (dx,dy)

Motion Compensation  Block Matching--how to find the matching block? –Matching criteria:  In practice we couldn’t expect to find the exactly identical matching block, instead we look for close match.  Most motion estimation schemes look for minimum mean square error(MMSE) between block in the current frame and the block in the previous frame at some displacement (dx,dy). –Matching block size:  The block size will affect coding efficiency and computational complexity – For MPEG, a block size of 16×16 is used

Motion Compensation  ml ml

Motion Compensation – The Problems  Objects rarely move and retain their shape.  But what is an object? We have an array of pixels.  Could try and segment image into separate objects – but very intense processing! –Basis of the MPEG4 standard  Simple option - split image up into small blocks (macroblocks) –Assumption is that the motion across a macroblock is uniform  Roughly correct if a macroblock is internal to an object but not if it straddles 2 objects Straddles motion boundary Doesn’t straddle motion boundary

MPEG1 Compression  MPEG1 uses the DCT to encode the difference between the motion compensated current frame and the reference frame  Also motion vectors are predictively coded  The whole system is quite complex and a detailed knowledge is beyond the scope of this course! –The diagram below shows a simplified MPEG encoder Frame recorder DCT Quantize Variable- length coder Transmit buffer Prediction encoder De- quantize Inverse DCT Motion predictor Reference frame Rate controller IN OUT Scale factor Buffer fullness Prediction Motion vectors DC

I, P and B frames  We have seen that an I frame is a frame coded without reference to previous frames  A P frame (predicted frame) use preceding frame as reference image  Sometimes it is necessary to use the both the preceding frame and following frame as reference images – B frame (Bi-directional)

I, P and B frames XZ Y Available from earlier frame (X) Available from later frame (Z)

Group of Pictures - GOP  Problem with P and B frames is any errors are propagated (like making copies of copies of copies) - so we regularly send full (I) frames to eliminate errors  Every 0.5 seconds approx we send a full frame (I)  In the event of an error, data stream is resynchronised after 12/25th of a second (or 15/30th for USA)  The sequence between ‘I’s is called a Group Of Pictures I B B B P B B B P B B B P I GOP

Multimedia presentation on the internet  The following are a couple of video clips are ‘low’ and ‘high’ compression: –‘Heads’ high compression …… –‘Heads’ low compression …....

Multimedia presentation on the internet –‘Horses’ high compression …… –‘Horses’ low compression ……

MPEG - xxx  There are a number of standards covering different technologies and target bit rates –MPEG-1: “Coding of moving pictures and associated audio for digital storage media” (1992)  Target was VHS Quality at 1.5MBits/s  Basis of Video-CD  MP3 is still with us! (MPEG-1 Layer 3) –MPEG-2: “Generic coding of Moving Pictures and Associated Audio”  Broadcasting and storage  Bitrates: 4-9 MBits/s  Satellite TV, DVD – MPEG-4: “Coding of audio-visual objects”  Started as very low-bitrate project  Turned out to be much more: – Coding of media objects – 64kbps to 240Mbps (Part 10/H.264) – Synthetic/Semi-synthetic objects – XMT: Like HTML, but to build videos – First standard with Intellectual Property Management

 Where is MPEG – xxx used? –MPEG-1  Video-CD  Usually.mpg or.mpeg files are MPEG-1  DAB Digital Radio is MP2 (MPEG-1 Layer 2)  MP3 files (MPEG-1 Layer 3) –MPEG-2: .vob,.m2v, rarely.mpg files  Anything to do with DVD – Camcorders, DVD players, DVD recorders, TiVo  Digital TV –MPEG-4:  High Quality AVI files  Video Phones  DivX  Some advanced audio players support MPEG-4 Advanced Audio Coding (AAC) MPEG - xxx

Summary Analogue TV Basic digital TV – the bandwidth problem MPEG-1 definition Decimation (spatial, temporal and colour) Spatial compression Temporal compression Difference coding Motion compensation MPEG - xxx

 This concludes our introduction to video compression.  You can find course information, including slides and supporting resources, on-line on the course web page at Thank You