CSc 461/561 Multimedia Systems Part B: 2. Lossy Compression

Slides:



Advertisements
Similar presentations
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.
Advertisements

Chapter 7 End-to-End Data
SWE 423: Multimedia Systems
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) 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.
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.
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Image (and Video) Coding and Processing Lecture: DCT Compression and JPEG Wade Trappe Again: Thanks to Min Wu for allowing me to borrow many of her slides.
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
JPEG Still Image Data Compression Standard
CSc 461/561 CSc 461/561 Multimedia Systems 0. Introduction.
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
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.
©Brooks/Cole, 2003 Chapter 15 Data Compression. ©Brooks/Cole, 2003 Realize the need for data compression. Differentiate between lossless and lossy compression.
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.
Still Image Conpression JPEG & JPEG2000 Yu-Wei Chang /18.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
{ Lossy Compression William Dayton Nick Trojanowski.
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
JPEG Motivations: Motivations: 1.Uncompressed video and audio data are huge. In HDTV, the bit rate easily exceeds 1 Gbps. --> big problems for.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
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.
Video Coding. Introduction Video Coding The objective of video coding is to compress moving images. The MPEG (Moving Picture Experts Group) and H.26X.
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.
DATA COMPRESSION LOSSY COMPRESSION METHODS What it is… A compression of information that is acceptable in pictures or videos, but not texts or programs.
Final Review by Amy Zhang Digital Media Computing.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
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.
JPEG CIS 658 Fall 2005.
MPEG MPEG : Motion Pictures Experts Group MPEG : ISO Committee Widely Used Video Compression Standard.
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.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
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
MPEG.
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
JPEG.
Block-based coding Multimedia Systems and Standards S2 IF Telkom University.
Video Compression and Standards
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver compression.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
Introduction to MPEG Video Coding Dr. S. M. N. Arosha Senanayake, Senior Member/IEEE Associate Professor in Artificial Intelligence Room No: M2.06
By Dr. Hadi AL Saadi Lossy Compression. Source coding is based on changing of the original image content. Also called semantic-based coding High compression.
6/9/20161 Video Compression Techniques Image, Video and Audio Compression standards have been specified and released by two main groups since 1985: International.
MP3 and AAC Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
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.
Chapter 8 Lossy Compression Algorithms
JPEG Compression What is JPEG? Motivation
Chapter 9 Image Compression Standards
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
JPEG Image Coding Standard
Discrete Cosine Transform
JPEG.
CMPT 365 Multimedia Systems
Presentation transcript:

CSc 461/561 Multimedia Systems Part B: 2. Lossy Compression

Summary (1) Why is lossy compression possible? (2) Distortion measure (3) Quantization (4) Transformation (5) Introduction to JPEG- Part I (6) Introduction to MPEG-Part I

1. Why is lossy compression possible? some information is more important than others for human keep the important one Original Compression Ratio: 7.7 Compression Ratio: 12.3 Compression Ratio: 33.9

2. Distortion measure Rate Distortion Rate vs distortion B Rate # of bits per source symbol Distortion one measure: mean square error (MSE) x: original value; y: reconstructed value MSE = [(x1-y1)2+(x2-y2)2+…+(xN-yN)2]/N Rate vs distortion lower rate, higher distortion

3. Quantization (1) Quantization (recall audio A/D) use a discrete value to represent a value range information loss! The smaller range, the less distortion granular distortion Quantization steps uniform: all ranges have the same size non-uniform: otherwise

3. Uniform quantization (2) Quantization step: uniform Two constructions: midrise, midtread ∆ 2∆ 3∆ Input -3∆ -2∆ -∆ Reconstruction 3.5∆ 2.5∆ 1.5∆ 0.5 ∆ -0.5∆ -1.5∆ -2.5∆ -3.5∆ Uniform Midrise Quantizer -2.5∆ -1.5∆ -0.5∆ 3∆ 2∆ ∆ -∆ -2∆ -3∆ Uniform Midtread Quantizer 0.5∆ 1.5∆ 2.5∆ Input

3. Signal-to-quantization-noise ratio (3) n bits; 2n steps for [-Xmax,Xmax] step size: delta = 2Xmax / 2n granular distortion: SQNR in dB 10 log10 signal_energy / noise_energy =10 log10 [(2Xmax)2/12]/[delta2/12]=20n log102 One more bit adds 6 dB to SQNR

3. Non-uniform quantization (4) Recall u-law or A-law voice compander How to choose quantization steps? Int f(x) dx = 1/2n xi+1 xi f(x) f(x) Uniform Non-uniform x x xi xi+1 xi xi+1

3. Non-uniform quantization: more (5) How to represent a range? Int f(x) dx = 1/2n+1 when uniform: yi=(xi+xi+1)/2 yi xi f(x) f(x) Uniform Non-uniform x x xi xi+1 xi xi+1 yi yi

4. Transformation (1) Transformation Inverse transformation represent information in anther space identify and remove (hard-to-remove) correlation, i.e., redundancy, in the original space information loss! e.g., time/space => frequency (FFT) Inverse transformation represent the info back in the original space

4. Discrete Cosine Transform (2) Recall: a wave is of many waves “Any signal can be expressed as a sum of multiple signals that are sine or cosine waveforms at various amplitudes and frequencies.” Cosine transform: using cosine waveforms DCT: integer indexes widely used in image compression (e.g., JPEG)

4. DCT: more (3) 2-D DCT (8x8); C(x)=1/sqrt(2) when x=0 Inverse 2-D DCT (IDCT); C(x)=1 otherwise

4. DCT: examples (4) Original values of an 8x8 block DC Component Original values of an 8x8 block (in spatial domain) Corresponding DCT coefficients (in frequency domain)

5. Introduction to JPEG-Part I (1) Joint Photographic Experts Group (JPEG) ISO standard (1992) widely used (.jpeg, .jpe, .jpg; C/R: 10~20) The family of JPEGs lossless JPEG: prediction-based compression lossy JPEG: DCT-based compression M-JPEG: motion JPEG JPEG2000: discrete wavelet transform; new!

5. Introduction to JPEG-Part I (2) JPEG compression guidelines Brightness vs color sensitivity RGB => YUV/YIQ chroma subsampling (4:2:0) Spatial correlation among nearby pixels slice an image into 8x8 blocks (bad for text) Remove redundancy in frequency domain discrete cosine transform (DCT) coarse quantization for high freq coefficients

5. Introduction to JPEG-Part I (3) Sequential mode Progressive mode low quality first, then differential data added DC first, then AC; or MSB first, then LSB Hierarchical mode lowest resolution first and then higher resolutions Lossless mode prediction and entropy encoding

5. Introduction to JPEG-Part I (4) We will revisit the topic later.

6. Introduction to MPEG-Part I (1) MPEG-1 (1991): VCD (VCR+CD quality) 352x240, 1.2Mbps video CBR, 256Kbps audio progressive scan only (1x CD-ROM) MPEG-1 video compression similar to H.261, with a few differences more formats, flexible slices, quantization table I-frame: JPEG-like compression P-frame: prediction-based; B-frame

6. Introduction to MPEG-Part I (2) MPEG-1: more 1 2 3 4 5 6 7 8 9 I B B P B B P B B Bi-directional search search both previous and next frames for similar macro-blocks MPEG-1 GOP I-frame, P-frame, B-frame display order: IBBPBBPBBPBBPBBI (M=3, N=15) coding order: IPBBPBBPBBPBBIBB; timestamps D-frame: for search through the video, DC only

6. Introduction to MPEG-Part I (3) MPEG-2 MPEG-2 (1994): DVD, HDTV, etc also adopted as ITU-T H.262 many video formats and data rates; better audio profiles: simple (4:2:0, I/P), main (+B), SNR (+variable quality), spatial (+variable resolution), high (+4:2:2) levels: low (352x288), main (720x576), high 1440 (1440x1152), high (1920x1152) support interlaced video (broadcasting!)

6. Introduction to MPEG-Part I (4) MPEG-2 scalability Layered encoding base layer: independent for basic quality enhancement layer: dependent on the base layer E.g., SNR scalability base: low SQNR (coarse quantization) enhance: high SQNR (fine Q on actual-base) E.g., spatial scalability base: low resolution; enhance: high resolution

6. Introduction to MPEG-Part I (5) MPEG-4 MPEG-4 (1999): content-based, object-oriented based on H.263, initially for low bit-rate apps video sequence: a collection of media objects objects: still image, moving object, audio, etc how to decompose is NOT specified (encoder) VOP: video object plane GOV: I-VOP, P-VOP, B-VOP VOP is divided into many macro-blocks motion estimation: bounding box; padding

6. Introduction to MPEG-Part I (5): MPEG-4: object oriented

6. Introduction to MPEG-Part I (6) MPEG-4: more Fine gain scalability spatial scalability temporal scalability quality scalability MPEG-4 audio general audio (2~64Kbps) speech (2~4Kbps: HVXC; 4~24Kbps: CELP) synthesized (e.g., MIDI, TTS)

6. Introduction to MPEG-Part I (7) We will revisit the topic later.