RICO HARTONO JAHJA 20127733 SOURCE CODING: PART IV.

Slides:



Advertisements
Similar presentations
Multimedia: Digitised Sound Data Section 3. Sound in Multimedia Types: Voice Overs Special Effects Musical Backdrops Sound can make multimedia presentations.
Advertisements

T.Sharon-A.Frank 1 Multimedia Compression Basics.
Data Compression CS 147 Minh Nguyen.
Sampling and Pulse Code Modulation
Information Theory EE322 Al-Sanie.
Digital Representation of Audio Information Kevin D. Donohue Electrical Engineering University of Kentucky.
Data Compression Michael J. Watts
Chapter 7 End-to-End Data
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
SWE 423: Multimedia Systems
Spatial and Temporal Data Mining
EE2F1 Speech & Audio Technology Sept. 26, 2002 SLIDE 1 THE UNIVERSITY OF BIRMINGHAM ELECTRONIC, ELECTRICAL & COMPUTER ENGINEERING Digital Systems & Vision.
MPEG Audio Compression by V. Loumos. Introduction Motion Picture Experts Group (MPEG) International Standards Organization (ISO) First High Fidelity Audio.
Information Theory Eighteenth Meeting. A Communication Model Messages are produced by a source transmitted over a channel to the destination. encoded.
Fundamentals of Multimedia Chapter 7 Lossless Compression Algorithms Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
UCB Source Coding Jean Walrand EECS. UCB Outline Compression Losless: Huffman Lempel-Ziv Audio: Examples Differential ADPCM SUBBAND CELP Video: Discrete.
Source Coding Hafiz Malik Dept. of Electrical & Computer Engineering The University of Michigan-Dearborn
Data Compression Basics & Huffman Coding
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.
Audio CompressiontMyn1 Audio Compression Audio compression has become well entrenched in consumer and professional digital audio products such as the compact.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
1 Audio Compression Multimedia Systems (Module 4 Lesson 4) Summary: r Simple Audio Compression: m Lossy: Prediction based r Psychoacoustic Model r MPEG.
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Basics of Compression Goals: to understand how image/audio/video signals are compressed to save storage and increase transmission efficiency to understand.
Moving PicturestMyn1 Moving Pictures MPEG, Motion Picture Experts Group MPEG is a set of standards designed to support ”Coding of Moving Pictures and Associated.
Speech coding. What’s the need for speech coding ? Necessary in order to represent human speech in a digital form Applications: mobile/telephone communication,
Fundamentals of Digital Communication
Compression Algorithms Robert Buckley MCIS681 Online Dr. Smith Nova Southeastern University.
Chapter 2 Source Coding (part 2)
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Encoding of Waveforms Encoding of Waveforms to Compress Information.
MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.
Audio Compression Usha Sree CMSC 691M 10/12/04. Motivation Efficient Storage Streaming Interactive Multimedia Applications.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
1 Audio Compression. 2 Digital Audio  Human auditory system is much more sensitive to quality degradation then is the human visual system  redundancy.
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.
Digital Image Processing Image Compression
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Huffman Code and Data Decomposition Pranav Shah CS157B.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
MPEG-1Standard By Alejandro Mendoza. Introduction The major goal of video compression is to represent a video source with as few bits as possible while.
IntroductiontMyn1 Introduction MPEG, Moving Picture Experts Group was started in 1988 as a working group within ISO/IEC with the aim of defining standards.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
Multi-media Data compression
Chapter 7 Lossless Compression Algorithms 7.1 Introduction 7.2 Basics of Information Theory 7.3 Run-Length Coding 7.4 Variable-Length Coding (VLC) 7.5.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
Fundamentals of Multimedia Chapter 6 Basics of Digital Audio Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Data Compression Michael J. Watts
IMAGE PROCESSING IMAGE COMPRESSION
Compression & Huffman Codes
Data Compression.
Multimedia: Digitised Sound Data
Data Compression.
Huffman Coding, Arithmetic Coding, and JBIG2
Data Compression CS 147 Minh Nguyen.
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.
UNIT IV.
Speech coding.
Judith Molka-Danielsen, Oct. 02, 2000
MPEG-1 Overview of MPEG-1 Standard
Govt. Polytechnic Dhangar(Fatehabad)
Chapter 8 – Compression Aims: Outline the objectives of compression.
Presentation transcript:

RICO HARTONO JAHJA SOURCE CODING: PART IV

CONTENTS Introduction Property of Codes Code Length & Entropy Huffman Code Lempel-Ziv Code Audio Compression Video Compression 2

SOURCE CODING FOR DIGITAL DATA Why are we using a digital data? Easy computation, error detection, easy to display, and convenience for coding Primary goal of data compression: Reduce number of bits 3

PROPERTY OF CODES SymbolCode 1Code 2Code 3Code 4Code 5Code 6 a b c Properties of Codes: Uniquely Decodable Property Each code can be decoded from the bit correctly Prefix-free Property No codeword be the prefix of any other code word Example: 1.Decode this binary pattern: Using code 3: b,a,b,b,b or b,a,b,c or b,a,c,b -> not uniquely decodable Using code 6: a,b,a,a or a,b,c -> not uniquely decodable 2.Transmitting symbol b with code 4 -> receiver cannot determine it is symbol b or part of symbol c -> not prefix-free 4

CODE LENGTH & ENTROPY The average length of code can be expressed with: Where: n = code length P(Xi) = probability of the code Entropy: Average amount of uncertainty resolves per use of the alphabet The average number of bits per symbol required to describe the source 5

HUFFMAN CODE Huffman code is a prefix-free, variable-length code that can achieve the shortest average code length for a given input alphabet Huffman coding procedure (reordering bubble): 1.Listing all the input alphabet symbols, along with the probabilities in descending order of occurrence 2.Write every probabilities of every symbols on each branch 3.The two lowest entries (lowest probabilities) are merged, form a new branch with the probability value will be the sum of the two lowest probabilities 4.Do step 3 until it can rise no further 5.If the sum of the two lowest probabilities has the same value with one of the branch, the sum will place higher than the existed branch 6

HUFFMAN CODE Huffman coding procedure (reordering bubble): 1.Listing all the input alphabet symbols, along with the probabilities in descending order of occurrence 2.Write every probabilities of every symbols on each branch 3.The two lowest entries (lowest probabilities) are merged, form a new branch with the probability value will be the sum of the two lowest probabilities 4.Do step 3 until it can rise no further 5.If the sum of the two lowest probabilities has the same value with one of the branch, the sum will place higher than the existed branch 6.Put the label 1/0 in every branch of node Entropy of the input alphabet = 2.32 bits This code offer Compression ratio: 3/2.4 = 1.25 This code achieve: 2.32/2.4 = of the possible compression ratio 7

HUFFMAN CODE To increase the compression gain: Create a larger source alphabet -> increase variability Increasing the number of tree branches 8

HUFFMAN CODE Facsimile transmission : example of Huffman coding implementation The Huffman coding will decode every pixel in the document with the associate code for black or white color. And every code will be different depend on its location in the paper (paper line) 9

LEMPEL-ZIV(ZIP) CODES Drawbacks of the Huffman code: The symbol probabilities must be known or estimated Both encoder and decoder must know the coding tree ZIP codes use the text itself to iteratively construct a parsed sequence of variable length codewords that form a code dictionary The encoded packets will be form as Example: 10

AUDIO COMPRESSION Including: CD, DAT, MD, DCC, DVD, DAB, MPEG, MP3 Speech compression for telephony Some parameters of audio compression Audio compression methods: Adaptive Differential Pulse-Code Modulation Subband-Partioned, Adaptive Differential Pulse-Code Modulation Codebook-Excited Linear-Predictive Coding (CELP) MPEG Layers I,II, and III 11

ADAPTIVE DIFFERENTIAL PULSE-CODE MODULATION Telephone speech processing Inputs: 64 kbps Outputs: 16,24,32, and 40 kbps 12

SUBBAND-PARTIONED ADAPTIVE DIFFERENTIAL PULSE-CODE MODULATION Wideband speech-coding standard Using low-pass and high-pass filter to separate the input into a higher and lower subband Using ADPCM at each to reduce the bandwidth into 48kbps and 16kbps data rate 13

CODEBOOK-EXCITED LINEAR- PREDICTIVE CODING (CELP) Linear predictive filters can provide high quality encoded speech at high speed data rate (>16kbps) CELP methods: Form a LPC model of the signal for a short interval Filter the input to the LPC, and every output compare with the original signal in every seconds. And select the one that minimizes the error between the original and the output of the driven model. 14

MPEG LAYERS I,II, AND III Input sampling at 32, 44.1, and 48 kHz Bit output: between 32 and 192 kbps per monophonic channel Key factor: using human spectral perception threshold -> a frequency dependent boundary that marks the lower bound of human capacity hearing capability Every input below the threshold will be not encoded in the compression 15

MPEG LAYERS I,II, AND III MPEG I and II encoder steps: 16 bit PCM audio signal is windowed Windowed audio signal is converted into spectral subband components and filtered The filtered output signals are downsampled to the Nyquist rate for each bandpass bandwidth The differences between layer I, II and layer III are: Layer III using a modified DCT to the analysis bank, a Huffman coder to the output of the quantizer, and a side information data path Layer III achieve a closely matches critical frequency-resolution bandwidths of the human auditory process 16

JPEG A transform-based lossy compression scheme Our eyes more sensitive to Y color component to CB and CR A finite sequence of data points in terms of a sum of cosine functions oscillating at different frequencies 17

MPEG MPEG is a set of standards designed to support coding of moving pictures and associated audio for digital storage media at up to 1.5 Mbps MPEG-1: to permit full motion video recordings on CD players originally designed for stereo audio playback MPEG-2: addressed greater input-output format flexibility, data rates, and system considerations such as transport and synchronization (neglected in MPEG-1) 18

MPEG-2 3 types of pictures: Intra Pictures (I-Pictures) A picture that periodically captured and will be fully compressed using a standard JPEG algorithm Predicted Pictures (P-Pictures) Pictures between the I-pictures that predicts and corrects the location of the image sections that they were found to have moved Bi-directional Prediction Pictures (B-Pictures) The pictures between I and P pictures that incorporate the stationary image sections uncovered by moving sections. A sequence can be formed without any P or B pictures A sequence cannot be formed when only containing P or B pictures only 19

MPEG-2 Compression methods: Determining which macroblocks have moved between I- pictures Form the P-frame between the I pictures Forb B-pictures between I and P pictures Data size comparison: I-pictures >> P-pictures >> B-pictures 20

MPEG-2 Since B-pictures computation require information from the I and P-pictures, the I and P pictures must be delivered first 21

QUESTION Design a binary Huffman code for a discrete source of three independent symbols A, B, and C with probabilities 0.9, 0.08, and 0.02 respectively. Determine the average code length for the code THANK YOU 22