Chapter 7.2: Layer 5: Compression

Slides:



Advertisements
Similar presentations
Multimedia System Video
Advertisements

T.Sharon-A.Frank 1 Multimedia Compression Basics.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
Image Compression. Data and information Data is not the same thing as information. Data is the means with which information is expressed. The amount of.
Chapter 7 End-to-End Data
SWE 423: Multimedia Systems
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
Computer Science 335 Data Compression.
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
CS430 © 2006 Ray S. Babcock Lossy Compression Examples JPEG MPEG JPEG MPEG.
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.
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Image Compression JPEG. Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg and can be embedded.
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
Lecture 10 Data Compression.
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.
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.
MULTIMEDIA TECHNOLOGY SMM 3001 DATA COMPRESSION. In this chapter The basic principles for compressing data The basic principles for compressing data Data.
1 Computer Networks: A Systems Approach, 5e Larry L. Peterson and Bruce S. Davie Chapter 7 End-to-End Data Copyright © 2010, Elsevier Inc. All rights Reserved.
Klara Nahrstedt Spring 2011
D ATA C OMMUNICATIONS Compression Techniques. D ATA C OMPRESSION Whether data, fax, video, audio, etc., compression can work wonders Compression can be.
Concepts of Multimedia Processing and Transmission IT 481, Lecture 5 Dennis McCaughey, Ph.D. 19 February, 2007.
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.
Chapter 7 – End-to-End Data Two main topics Presentation formatting Compression We will go over the main issues in presentation formatting, but not much.
22-Oct-15CPSC558: Advanced Computer Networks Chapter 7 End-to-End Data –Data Manipulating Functions (Affecting Throughputs) How to encode the message into.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
Spring 2001CS Multimedia, QoS Multimedia (7.2, 9.3) Compression RTP Realtime Applications Integrated Services Differentiated Services Quality.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Data compression. lossless – looking for unicolor areas or repeating patterns –Run length encoding –Dictionary compressions Lossy – reduction of colors.
JPEG.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
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.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Textbook does not really deal with compression.
JPEG Compression What is JPEG? Motivation
IMAGE COMPRESSION.
Chapter 9 Image Compression Standards
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Algorithms in the Real World
Digital Image Processing Lecture 21: Lossy Compression May 18, 2005
JPEG.
Data Compression.
Data Compression CS 147 Minh Nguyen.
CMPT 365 Multimedia Systems
Judith Molka-Danielsen, Oct. 29, 2001
CIS679: MPEG MPEG.
Standards Presentation ECE 8873 – Data Compression and Modeling
Judith Molka-Danielsen, Oct. 02, 2000
The JPEG Standard.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Chapter 8 – Compression Aims: Outline the objectives of compression.
Fundamentals of Video Compression
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Presentation transcript:

Chapter 7.2: Layer 5: Compression CS/ECPE 5516: Comm. Network Prof. Abrams, Spring 2000 Based in part on material from Scott F. Midkiff CS/ECPE5516

Multimedia Systems Interactive versus non-interactive Video Archive server client Stored server client Live CS/ECPE5516

Example Multimedia Applications Multimedia-on-demand Video-on-demand Audio-on-demand Live video Meetings Collaboration News Remote sensing and imaging CS/ECPE5516

Need for Video Compression Video characteristics Demanding with respect to storage and/or data rate Highly redundant -- duplicated information Compression ratios of 200:1 or even 2000:1 are possible Compression is needed to enable Storage Transmission (640x480 pixels/f)(24 b/pixel)(30 f/s) = 221 Mbps CS/ECPE5516

Compression Example (JPEG) Quality: 100% Size: 57459 Quality: 90% Size: 20525 Quality: 60% Size: 8293 Quality: 25% Size: 4984 Quality: 10% Size: 3338 Quality: 5% Size: 2551 JPEG = Joint Picture Experts Group CS/ECPE5516

Compression Techniques Information may be lost (but not missed) Lossy compression -- information is lost Lossless compression -- no loss Lossy techniques: drop info not important to human perception. Examples: Images: changes in high frequency brightness changes as you move across image Audio: low frequency sounds in woman’s voice CS/ECPE5516

Lossless Compression Algorithms (1) Run Length Encoding “AAABB”  “3A2B” Can actually increase file size Can be applied to images by comparing adjacent pixels Differential Pulse Code Modulation “AAABBC”  “A00112” since B is 1 away from A, … Delta encoding “AAABBC”  “A00101” since C is 1 away from A, … CS/ECPE5516

Lossless Compression Algorithms (2) Dictionary-based methods Build table of variable length strings “to be or not to be is Shakespeare’s line – is it not?” Dictionary: 0=“to be” 1=“not” 2=“is”  “0 or 1 0 is Shakespeare’s line – 2 it 1?” Cost: must send dictionary before file Examples: Lempel-Ziv (Unix compress) CS/ECPE5516

Lossy Compression – Images (1) GIF Given 24-bit pixels, pick the 256 most used colors. Map each 24-bit pixel into 1-of-256. Achieves 3x compression. Then run Lempel-Ziv, maybe achieving 10x compression. CS/ECPE5516

Lossy Compression – Images (2) JPEG DCT Phase: Divide image into 8x8 pixel blocks. If you move across x-axis, you see pixels vary with some frequency. Compute something like Fourier transform, called Discrete Cosine Transform (DCT) – maps intensity to frequency domain with 64 intensities. DC high CS/ECPE5516

JPEG DCT Phase Quantization Phase Encoding phase Use table of coefficients; divide step 1 values by coefficients. Maps many frequencies to zero. Encoding phase Huffman code: use few bits for most popular numbers Use delta encoding for subsequent array values Color: repeat 3 times (RGB) 3 7 11 15 21 27 33 CS/ECPE5516

Video Compression Techniques Scope of compression Intraframe -- eliminate or reduce redundancy within a single frame Interframe -- eliminate or reduce redundancy between consecutive frames Prediction, interpolation – predict fame based on previous/subsequent values Sample to take advantage of human perception CS/ECPE5516

Some Video Compression Standards MPEG-1, MPEG-2, MPEG-3, and MPEG-4 ITU-T (CCITT) standards H.320 (H.261) — ISDN (64 Kbps increments) H.323 — LAN H.324 — POTS MJPEG (Motion JPEG) MPEG: Motion Pictures Expert Group ITU-T: International Telecommunication Union -- Telecommunication JPEG: Joint Photographic Experts Group CS/ECPE5516

MPEG Overview (1) Features Can achieve compression ratios of 200:1 Would reduce data rate to around 1.2 Mbps for a 640x480 image MPEG-1 compresses 320x240 images and requires at least 1.5 Mbps Also includes audio compression with compression ratios of 5:1 to 10:1 CS/ECPE5516

MPEG Overview (2) Compression techniques There are three frame types Uses DCT for intraframe compression Uses interframe compression by storing differences between successive frames There are three frame types Intraframes (I frames) are encoded using intraframe compression Predicted frames (P frames) are predicted from previous I frames Bidirectional frames (B frames) are interpolated from previous and future frames CS/ECPE5516

bidirectional prediction MPEG Overview (3) Repeated pattern of frames (pictures) is a group of pictures (GOP) Example: IBBBPBBB forward prediction I B B B P B B B I 1 2 3 4 5 6 7 8 9 time bidirectional prediction CS/ECPE5516

Transmission of MPEG If stored video, send IBBBPBBBI as IPBBBBBBI Might use Differentiated Services, with I’s and P’s as high priority Can change quantization matrix during video CS/ECPE5516