TSBK01 Image Coding and Data Compression Lecture 10 Jörgen Ahlberg

Slides:



Advertisements
Similar presentations
March 24, 2004 Will H.264 Live Up to the Promise of MPEG-4 ? Vide / SURA March Marshall Eubanks Chief Technology Officer.
Advertisements

Multimedia System Video
Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
Multimedia Technology2. Compression Algorithms ©Wolfgang Effelsberg 2.3 Video Compression 2.3.1MPEG MPEG stands for Moving Picture Experts Group.
MPEG Moving Picture Experts Group. What defines good video quality? Size of pictures Bitrate of channel medium (especially in real-time applications)
H.261: A Standard for VideoConferencing Applications Nimrod Peleg Update: Nov
Part II (MPEG-4) Audio TSBK01 Image Coding and Data Compression Lecture 11, 2003 Jörgen Ahlberg.
MPEG: A Video Compression Standard for Multimedia Applications Václav Hlaváč CTU Prague, Initial material were slides of Didier.
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.
MPEG-4 Objective Standardize algorithms for audiovisual coding in multimedia applications allowing for Interactivity High compression Scalability of audio.
Source Coding for Video Application
SWE 423: Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Size of Data Frame.
H.264 / MPEG-4 Part 10 Nimrod Peleg March 2003.
CT20A6100 MACHINE VISION AND DIGITAL IMAGE ANALYSIS MPEG Pauli Jutila Cristina Petre.
MPEG-4 Applications Interactive TV (broadcast) Streaming media on the web (internet) Multimedia titles (CD-ROM) Network games Mobile multimedia (picture.
Multimedia for our time (For Dummies) ISO/IEC Visa Hyoungjune Yi.
An Introduction to H.264/AVC and 3D Video Coding.
1 Video Compression 2: Bi-directional Coding Multimedia Systems (Module 4 Lesson 3) Summary: r MPEG Coding m Bi-directional Motion- Compensation r MPEG.
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 Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
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.
Moving PicturestMyn1 Moving Pictures MPEG, Motion Picture Experts Group MPEG is a set of standards designed to support ”Coding of Moving Pictures and Associated.
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.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
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
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)
Multimedia Data Video Compression The MPEG-1 Standard Dr Mike Spann Electronic, Electrical and Computer.
CMPT365 Multimedia Systems 1 Media Compression - Video Coding Standards Spring 2015 CMPT 365 Multimedia Systems.
Videos Mei-Chen Yeh. Outline Video representation Basic video compression concepts – Motion estimation and compensation Some slides are modified from.
1 Mpeg-4 Overview Gerhard Roth. 2 Overview Much more general than all previous mpegs –standard finished in the last two years standardized ways to support:
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.
Codec structuretMyn1 Codec structure In an MPEG system, the DCT and motion- compensated interframe prediction are combined. The coder subtracts the motion-compensated.
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.
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
MPEG-4 Systems Introduction & Elementary Stream Management
MPEG-4: Multimedia Coding Standard Supporting Mobile Multimedia System -MPEG-4 Natural Video Coding April, 2001.
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.
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.
UNIT V. Linear Predictive coding With the advent of inexpensive digital signal processing circuits, the source simply analyzing the audio waveform to.
6/9/20161 Video Compression Techniques Image, Video and Audio Compression standards have been specified and released by two main groups since 1985: International.
Introduction to MPEG  Moving Pictures Experts Group,  Geneva based working group under the ISO/IEC standards.  In charge of developing standards for.
Digital Video Representation Subject : Audio And Video Systems Name : Makwana Gaurav Er no.: : Class : Electronics & Communication.
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: 鄭芳炫
JPEG Compression What is JPEG? Motivation
CSI-447: Multimedia Systems
Video Compression - MPEG
CIS679: MPEG MPEG.
Standards Presentation ECE 8873 – Data Compression and Modeling
MPEG4 Natural Video Coding
Judith Molka-Danielsen, Oct. 02, 2000
Chapter 8 – Compression Aims: Outline the objectives of compression.
MPEG-1 MPEG is short for the ‘Moving Picture Experts Group‘.
Presentation transcript:

TSBK01 Image Coding and Data Compression Lecture 10 Jörgen Ahlberg Video Coding TSBK01 Image Coding and Data Compression Lecture 10 Jörgen Ahlberg

Outline Colour coding Moving images: From 2D to 3D? Hybrid coding Video coding standards

Three base colours enough to synthesize any visible colour! Part I: Colour Coding The base colours of colour television are Red: 700 nm Green: 546 nm Blue: 435 nm Three base colours enough to synthesize any visible colour!

The Colour Vector B In this plane, the luminance Y = R+G+B = 1 R G

The PAL colours R Y G Matrix R-Y B B-Y Y = 0.30B + 0.59G + 0.11B Cr = 0.70R - 0.59G - 0.11B Cb = - 0.30R - 0.59G + 0.89B Y luminance; Cr, Cb chrominance

Digital Colour Coding Y Y U V 4:2:0 U V 4:2:2 Change basis to YUV (almost the same as YCrCb). For more info on color spaces, see colour FAQ at www.poynton.com/Poynton-color.html The Human Visual System perceives the luminance in higher resolution than the chrominance! Subsample the colour components. Y U V 4:2:0 Y U V 4:2:2

Part II: Coding of Moving Images Principle I - Extend known methods to 3D Coding Method Prestanda (bpp) Complexity Decoding complexity PCM 6 – 8 Low VQ 0.5 – 2 Very high Predictive 2 – 5 Transform 0.5 – 1.5 High Subband/ Wavelet 0.1 – 1.0 Fractal 0.1 - 0.5

Extending 2D Methods Predictive coding Transform coding Subband coding 3D predictors Motion compensated predictors Transform coding 3D transforms Subband coding 3D subband filters BUT! The properties of the image signal are different in the temporal and the spatial domain!

Hybrid predictive/transform coding popular++ Thus: Principle II: Hybrid methods Hybrid predictive/transform coding popular++

Part III: Hybrid Coding Combine predictive coding and transform coding. Use predictive coding to predict the next frame in the sequence. Use transform coding to code the prediction error.

Transform Coding T Q VLC T: Transform Q: Quantizer VLC: Variable Length Coder

Predictive Coding Q VLC Q-1 P Q: Quantizer Q-1: Inverse quantizer (reconstructor) P: Predictor

Hybrid Coding T Q VLC Q-1 T-1 P

Better prediction if it can compensate for motion! Frame Prediction Predictively coded P-frames Intra-coded I-frame Better prediction if it can compensate for motion!

Motion Compensation

Motion Compensated Hybrid Coding TQ-1 TQ P VLC TQ: Transform + quantization ME ME: Motion estimation VLC

Motion Compensation Typically one motion vector per macroblock (4 transform blocks) Motion estimation is a time consuming process Hierarchical motion estimation Maximum length of motion vectors Clever search strategies Motion vector accuracy: Integer, half or quarter pixel Bilinear interpolation

Part IV: Video Coding Standards Mobile videophone Videophone over PSTN ISDN videophone Video CD Digital TV HDTV 8 16 64 384 1.5 5 20 kbit/s Mbit/s Very low bitrate Low bitrate Medium bitrate High bitrate MPEG-4 H.263 H.261 MPEG-1 MPEG-2

Standards H.26x Standards for real time communication like video telephony and video conferencing. Standardized by ITU. MPEG Standards for stored video data like movies on CDs, DVDs, etc. Standardized by ISO.

H.261 Standard for ISDN picture phones in 1990. Motion compensation: One motion vector per macroblock. One macroblock = four 8£8 luminance blocks + two chrominance blocks (one U and one V). Motion vectors max 15 pixels long in each direction. Format: CIF (352£288) or QCIF (176£144) 7.5 – 30 frames/s. Bitrate: Multiple of 64 kbit/s (=ISDN) including audio. Quality: Acceptable for small motion at 128 kbit/s.

H.263 Standard for picture telephones over analog subscriber lines in 1995. Format: CIF, QCIF or Sub-QCIF. Usually less than 10 frames/s. Bitrate: Typically 20 – 30 kbit/s. Quality: With new options as good as H.261 (at half the bitrate).

MPEG Moving Pictures Expert Group – a committee under ISO and IEC. Original plan: MPEG-1 for 1.5 Mbit/s (VideoCD) MPEG-2 for 10 Mbit/s (Digital TV) MPEG-3 for 40 Mbit/s (HDTV) What happened: MPEG-1 for 1.5 Mbit/s (Video CD) MPEG-2 for 2 – 60 Mbit/s (TV and HDTV) MPEG-4, -7 and -21 for other things.

MPEG-1 ISO/IEC standard in 1991. Target bitrate around 1.5 Mbit/s (Video CD). Properties: Bi-directionally predictively coded frames (”B-frames”, see next slide). More flexible than H.261. Almost JPEG for intra frames. Format: CIF No interlace. 24 – 30 frames/s.

Bi-directionally predictively coded B-frames MPEG Frame Types Predictively coded P-frames Intra-coded I-frame Bi-directionally predictively coded B-frames I B P Group of frames (GOF)

MPEG-coding of I-frames Intracoded 8£8 DCT Arbitrary weighting matrix for coefficients Predictive coding of DC-coefficients Uniform quantization Zig-zag, run-level, entropy coding

MPEG-coding of P-frames Motion compensated prediction from I- or P-frame. Half-pixel accuracy of motion vectors, bilinear interpolation. Predictive coding of motion vectors. Prediction error coded as I-frame.

MPEG-coding of B-frames Motion compensated prediction from two consecutive I- or P-frames. Forward prediction only (1 vector/macroblock). Backward prediction only (1 vector/macroblock). Average of fwd and bwd (2 vectors/macroblock). Otherwise as P-frames.

MPEG-2 ISO/IEC standard in 1994. Properties: Format: Bitrate: Handles interlace (optimized for TV) Even more flexible than MPEG-1 Format: 352£288 704£576 (25 frames/s) or 720£480 (30 frames/s) 1440£1152 or 1920£1080 (HDTV) Bitrate: 2 – 60 Mbit/s ~4 Mbits/s: Image quality similar to PAL / NTSC / SECAM. 18 – 20 Mbit/s: HDTV.

MPEG-2 (cont.) Profiles: Experience tells that: Simple profile without B-frames. Scaleable profiles. Experience tells that: At 1.5 – 2 Mbit/s MPEG-2 is not better than MPEG-1. With manual interaction at the coding, good quality can be achieved at 3 – 4 Mbit/s. Problems with implementing the full standard has caused compatibility problems. Buffering and rate control hard problems.

MPEG-4 ISO/IEC standard in 1998, version 2 in 1999 Instead of frames as coding units, MPEG-4 use audio-visual objects Focus is not primarily on compression, but on content-based functionality Contains definitions of: Media object types (video, audio, text, graphics, ...) Parameters for describing the objects Bitstream syntax for the (compressed) parameters Scene description, file format, streaming, synchronization, ... Allows mixing of media objects.

Parts of the MPEG-4 standard Part 1, Systems, contains The bitstream syntax and the the binary ”language” for scene description Computer graphics object descriptions Multiplexing, transport, ... Part 2, Visual, contains Video coding Still image coding Texture coding, ... Part 3, Audio, contains a toolbox of audio coders for different applications ...

Structure of an MPEG-4 Decoder A/V object Decoder A/V object Decoder Bitstream Audio/Video scene MUX Compositor A/V object Decoder

MPEG-4 (Natural) Video Instead of frames: Video Object Planes Coded with Shape Adaptive DCT Alpha map A video frame Background VOP VOP SA DCT

MPEG-4 Video Coding TQ-1 TQ VLC Mux VLC VLC TQ: Transform + quantization TQ-1 TQ VLC Predictor Motion estimation Mux VLC VLC Shape coding

Synthetic/Natural Hybrid Coding Mix traditional video with 2D/3D graphics Compose virtual environments Easy to add text, graphs, images, etc High compression Receive object from separate sources Use predefined or locally defined objects Scaleability Progressive decoding Better terminal gives better quality.

Synthetic Objects 2D/3D graphics VRML scenes and objects Lines, polygons Still images Image/video mapping on polygon meshes VRML scenes and objects Animated people More on animation and virtual characters in Lecture 12! Synthetic audio More on natural and synthetic audio in Lecture 11!

All mixed in the decoder!!! Natural video object mapped on 2D mesh Natural video object Still image or natural video object mapped on animated 3D mesh Computer graphics generated virtual environment All mixed in the decoder!!!

Virtual Environments Downloaded virtual environment Different environments for different users Simple change between environments Synthetic environments are cheaper than real ones

Tools for Synthetic Objects Wavelet-based still image compression Scaleable quality and resolution Progressive decoding Can be mapped on 2D or 3D meshes Compression of 2D and 3D meshes Mesh geometry and animation Transmit vertex coordinates and let the receiving terminal calculate the polygons A moving or still image can be mapped on the mesh (texture mapping).

More Tools for Synthetic Objects Face and Body Animation Text-to-speech (TTS) interface View-dependent scaleable texture Information about the users view position in a 3D scene is transmitted on a back-channel Only the necessary texture information is transmitted to the user

View-dependent Scaleable Texture The texture is mapped on a surface Original texture What the user sees

Other formats Microsoft, RealVideo, QuickTime, ... All are variations of the hybrid coder used in MPEG-coders, with some extra features.

ITU and ISO in cooperation: New Stuff ITU and ISO in cooperation: H.264 = MPEG-4 part 10 Finished in 2003.

H.264 / MPEG-4 part 10 4£4 integer transform (approximating DCT). Prediction of blocks of sizes up to 16£16. Motion vectors for blocks of sizes 4£4 up to 16£16. Up to 5 reference images for prediction. Non-uniform qunatization. Arithmetic coding of run-level pairs.

More on audio coding in Lecture 11. What about the sound? MPEG-1 Audio layer I, II and III (mp3). MPEG-2 Four channels, same codec as in MPEG-1. AAC (Advanced Audio Codec) added later. MPEG-4 AAC Two speech coders Structured audio And more... More on audio coding in Lecture 11.

Conclusion Color coding Moving image coding Change basis from RGB to YUV Colour components are compressed harder than the luminance Moving image coding Hybrid coding: Motion compensated predictive coding and transform coding of the prediction error I-, P-, and B-frames Object-based coding (MPEG-4) mixing synthetic and natural audio & video

Conclusion (cont) Standards MPEG-1: Video CD MPEG-2: Digital TV MPEG-4: Multimedia H.261: ISDN videophone H.263: PSTN videophone H.264 / MPEG-4 part 10: Universal video

That was the last slide!