SlideShare a Scribd company logo
1 of 37
Audio Compression
M.K.H.Gunasekara – AS2010377
J.A.S. Fernando – AS2010362
CSC 362 1.5 Seminar I
Department of Statistics and Computer Science
Overview
• Introduction
• Pulse Code Modulation
• µ - law
• A - law
• Differential Pulse Code Modulation
• Adaptive Differential Pulse Code Modulation
• Application
• MPEG Audio Compression
• MPEG Encoder Architecture
• MPEG Audio Compression Algorithm
• MPEG Layers
• MPEG Layers Applications
• Comparison of MPEG audio compression standards
• Summary
• References
Audio Compression - AS2010377 2
Introduction
• A process that is useful for conserving both
transmission bandwidth and storage space.
• The various audio compression techniques
offer different levels of complexity,
compressed audio quality, and amount
of data compression.
Audio Compression - AS2010377
3
Audio Compression
Audio Compression - AS2010377 4
Lossy Audio Compression
• AAC
• ADPCM
• ATRAC
• Dolby AC-3
• MP2
• MP3
Lossless Audio Compression
• Apple Lossless
• apt-X Lossless
• Audio Lossless Coding
• Direct Stream Transfer (DST)
• Dolby TrueHD
• DTS-HD Master Audio
• Free Lossless Audio Codec
4
What is PCM ?
• PCM is a method used to digitally represent
sampled analog signals.
• It is the standard form of digital audio in
computers, Compact Discs, digital telephony
and other digital audio applications.
Audio Compression - AS2010377 5
5
How PCM works ?
• Sampling
• Quantizing
• Encoding
Audio Compression - AS2010377 6
Figure 01 : Block Diagram of Pulse Code Modulation
6
Sampling
• Sampling theory (Nyquist)
– If input signal has maximum frequency (bandwidth) f,
sampling frequency must be at least 2f
– With a low-pass filter to interpolate between samples,
the input signal can be fully reconstructed
Example : highest frequency of telephone voice channel is 3.4 kHz
Sampling rate ≥ 2 x 3.4
≥ 6.8 kHz
Hence sample rate is 8 kHz
Audio Compression - AS2010377 7
7
Sampling
• Ideal - an impulse at each sampling instant
• Natural - a pulse of short width with varying amplitude
• Flattop - sample and hold, like natural but with single
amplitude value
Audio Compression - AS2010377 8
Figure 02 : Sampling Methods
8
Quantization
• The samples are divided into many discrete levels.
Then each sample is numbered according to their
corresponding level.
• Quantization error - the coded signal is an
approximation of the actual amplitude value.
Figure 03 : Linear Quantization Figure 04 : Non Linear Quantization
Audio Compression - AS2010377 9
9
Encoding
• After quantizing the corresponding level it is
to be represented in some manner.
• We represent levels in binary format.
• Representation of level 50 = 110010
Figure 05 : Representation of sample signal
Audio Compression - AS2010377 10
10
Figure 07- Circuit diagram of pulse code modulation
Figure 06- Block diagram of pulse code modulation
Audio Compression - AS2010377 11
11
What is µ law ?
• µ -law encoding is a form of logarithmic
quantization or companding.
• It's based on the observation that many
signals are statistically more likely to be near a
low signal level than a high signal level.
• Most quality codecs (including the
Sparcstation's audio codec) use µ -law
encoded samples.
Audio Compression - AS2010377 12
12
What is A law ?
• A-Law compression is extremely similar to
Mu-Law compression
• If the absolute value of the source sample is
less than 256, the 16-bit sample is simply
shifted down 4 bits and converted to an 8-bit
value, thus losing the top 4 bits in the process.
Audio Compression - AS2010377 13
13
A law and µ law
Both methods compress 2:1 ratio.
• µ -Law has a larger dynamic range compared to
A-law
• µ -Law has worse distortion with small signals
compared to A-law
• µ -Law is used in North-America and Japan while
A-law is commonly used in Europe
• A-law takes precedence over µ -law with
international calls
Audio Compression - AS2010377 14
14
Differential PCM
• Differential pulse-code modulation is a signal
encoder that uses the baseline of pulse-code
modulation but adds some functionalities
based on the prediction of the samples of the
signal.
Audio Compression - AS2010377 15
15
Adaptive Differential PCM
• ADPCM, commonly termed as a form of
compression, is a more efficient way of storing
waveforms than 16-bit or 8-bit PCM.
• ADPCM stores the value differences between
two adjacent PCM samples and makes some
assumptions that allow data reduction.
• Because of these assumptions low frequencies
are properly reproduced
Audio Compression - AS2010377 16
16
Adaptive Differential PCM
Audio Compression - AS2010377 17
• An ADPCM algorithm is used to map a series of 8
bit µ-law (or a-law) PCM samples into a series of
4 bit ADPCM samples. In this way, the capacity of
the line is doubled.
• Some ADPCM techniques are used in Voice over
IP communications.
• ADPCM was also used by Interactive Multimedia
Association for development of legacy audio
codec known as ADPCM DVI, IMA ADPCM or DVI4
17
Applications
Audio
Compression
Format
Algorithm Bit Rate Bits per sample Implementations
G.711 Companding A-
law ; µ-law ; PCM
64 kbit/s 8 bit FFmpeg, Ekiga,
Asterisk (PBX)
G.711.1 A-law ; µ-law 64, 80, 96 kbit/s 16 bit VoIP
G.721 ADPCM 32 kbit/s 13 bit
G.722 ADPCM 64 kbit/s 14 bit QuickTime,
RealPlayer
Audio Compression - AS2010377 18
18
Wrap - up
• Techniques to compress general digital audio
signals include µ -law and adaptive differential
pulse code modulation.
• These approaches apply low-complexity, low-
compression, and medium audio quality
algorithms to audio signals.
Audio Compression - AS2010377 19
19
MPEG Audio Compression
• Motion Picture Experts Group
• An ISO standard for high-fidelity audio compression.
• A lossy compression.
• But can achieve transparent, perceptually lossless
compression.
• Compresses without regard to the source of the audio
data.
• Removes distortion and other features that are
imperceptible to the human ear.
• 6-to-1 compression ratio.
20
Audio Compression - AS2010362
20
MPEG Audio Compression
• Four channel modes
- Monophonic
- Dual monophonic
- Stereo
- Joint- stereo
• Has 3 distinct layers for compression
21
Audio Compression - AS2010362
21
MPEG Encoder Architecture
Audio
Input Encoded
Bit Stream
Time to
Frequency
Mapping
Filter bank
Bit Allocation,
Quantize and
coding
Psychoacoustic
Model
Bit stream
formatting
22
Audio Compression - AS2010362
22
MPEG Audio Compression
Algorithm
• The input audio stream passes through a filter
bank.
Filter Bank
- Divides the input into multiple subbands.
- Relatively simple and provide good time
resolution
23
Audio Compression - AS2010362
23
MPEG Audio Compression
Algorithm …
• The input audio stream simultaneously passes
through a psychoacoustic model.
The Psychoacoustic Model
- The key component of the MPEG encoder
that enables its high performance.
- Analyzes the audio signal and computes the
amount of noise masking that is available as a
function of frequency.
24
Audio Compression - AS2010362
24
MPEG Audio Compression
Algorithm...
• The bit or noise allocation block uses the signal-
to-mask ratios to decide how to apportion the total
number of code bits available for the quantization
of the subband signals to minimize the audibility
of the quantization noise.
• Finally, the last block takes the representation of
the quantized audio samples and formats the data
into a decodable bit stream.
25
Audio Compression - AS2010362
25
MPEG Layers
• Offers three compatible layers.
- Layer I
- Layer II
- Layer III
• Each succeeding layer able to understand the
lower layers.
• Each succeeding layer offers more complexity
and better compression for a given level of audio
quality.
26
Audio Compression - AS2010362
26
MPEG Audio Layer I
27
• Uses the basic filter bank found in all layers.
• This filter bank divides the audio signal into 32
constant-width frequency bands.
• Bit rates greater than 128 kbits/s per channel.
Audio Compression - AS2010362
27
MPEG Audio Layer II
28
• A simple enhancement of Layer I.
• It improves compression performance by
coding data in larger groups.
• Bit rates of 128 kbits/s per channel.
• Improves performance by representing the bit
allocation, the scale factor values, and the
quantized samples.
Audio Compression - AS2010362
28
MPEG Audio Layer III
– Widely popular under the name Mp3
– The most complex with the best audio quality
– Used for bit rates of 64 kbits/s per channel.
• Compensates for some filter bank deficiencies
by
processing the filter outputs with a modified
discrete cosine transform (MDCT).
29
Audio Compression - AS2010362
29
MPEG Audio Layer III Filter Bank
Processing
30
Audio Compression - AS2010362
30
MPEG Audio Layer III
enhancements
31
• Alias reduction
• Nonuniform quantization
• Entropy coding of data values
• Use of a bit reservoir
• Noise allocation instead of bit allocation
Audio Compression - AS2010362
31
MPEG Layers Applications
32
Layer Application
I Digital audio cassette
II Digital audio
broadcast
III CD quality
Audio Compression - AS2010362
32
Comparison of MPEG audio
compression standards
33
Standard Audio Sampling
rate(kHz)
Compressed bit
rate (kbits/sec)
Channels
MPEG - 1 Layer I 32, 44.1, 48 32- 448 1- 2 channels
MPEG - 1 Layer I 32, 44.1, 48 32 – 384 1-2 channels
MPEG - 1 Layer III 32, 44.1, 48 32 – 320 1-2 channels
MPEG - 2 Layer I 32, 44.1, 48 32 - 448 1 – 5.1 channels
16, 22.05, 24 32 - 256
MPEG - 2 Layer II 32, 44.1, 48 32 - 384 1 – 5.1 channels
16, 22.05, 24 8 - 160
MPEG - 2 Layer III 32, 44.1, 48 32 - 384 1 – 5.1 channels
16, 22.05, 24 8 - 160
Audio Compression - AS2010362
33
Comparison of MPEG audio
compression standards
34
• MPEG 2 AAC
- more efficient than the previous MPEG audio standards
- supports from 1 to 48 channels at sampling rates of 8 to
96 kHz
• MPEG 4 AAC
- similar to the MPEG-2 AAC standard, with some minor
changes
- supports the compression of natural audio at bit rates
ranging from 2 up to 64 kb/s.
Audio Compression - AS2010362
34
Summary
35
• The MPEG audio standard has three layers of
successive complexity for improve compression
performance.
• MPEG audio has been extended in following
ways
- Multichannel audio support
- Lower, compressed audio rates
- Lower audio sampling rates
Audio Compression - AS2010362
35
References
36
• Introduction To Data Compression ,Third Edition
,Khalid Sayood
• B. Cavagndo , J. Bier, Introduction to Digital Audio
Compression,
Available:
http://rizal.blog.undip.ac.id/files/2009/07/introd
uctiontodigitalaudiocompression.pdf
• Davis Yen Pen, Digital Audio Compression,
Available:
www.ece.jcu.edu.au/subjects/ee3700/resources/
Digital_Audio_Compression.pdf
Audio Compression - AS2010362
36
37
THANK YOU
Audio Compression - AS2010377 & AS2010362
37

More Related Content

Similar to audiocompression-130624061221-phpapp02.pptx

Similar to audiocompression-130624061221-phpapp02.pptx (20)

Compression
CompressionCompression
Compression
 
Audio compression
Audio compression Audio compression
Audio compression
 
Compression presentation 415 (1)
Compression presentation 415 (1)Compression presentation 415 (1)
Compression presentation 415 (1)
 
MPEG/Audio Compression
MPEG/Audio CompressionMPEG/Audio Compression
MPEG/Audio Compression
 
Fundamentals of Data compression
Fundamentals of Data compressionFundamentals of Data compression
Fundamentals of Data compression
 
add9.5.ppt
add9.5.pptadd9.5.ppt
add9.5.ppt
 
SPEECH CODING
SPEECH CODINGSPEECH CODING
SPEECH CODING
 
Mm01 a vformat
Mm01 a vformatMm01 a vformat
Mm01 a vformat
 
Audio compression
Audio compressionAudio compression
Audio compression
 
Basics of audio coding
Basics of audio codingBasics of audio coding
Basics of audio coding
 
Multimedia Compression and Communication
Multimedia Compression and CommunicationMultimedia Compression and Communication
Multimedia Compression and Communication
 
simple video compression
simple video compression simple video compression
simple video compression
 
DATA COMMUNICATUION Unit 5
DATA COMMUNICATUION  Unit 5DATA COMMUNICATUION  Unit 5
DATA COMMUNICATUION Unit 5
 
Digital Video And Compression
Digital Video And CompressionDigital Video And Compression
Digital Video And Compression
 
Base band transmission
Base band transmissionBase band transmission
Base band transmission
 
Base band transmission
Base band transmissionBase band transmission
Base band transmission
 
lect10-mpeg1.ppt
lect10-mpeg1.pptlect10-mpeg1.ppt
lect10-mpeg1.ppt
 
Mk3422222228
Mk3422222228Mk3422222228
Mk3422222228
 
Video Coding Standard
Video Coding StandardVideo Coding Standard
Video Coding Standard
 
Multimedia seminar ppt
Multimedia seminar pptMultimedia seminar ppt
Multimedia seminar ppt
 

More from PawachMetharattanara

BIZ model 2024nnnmmmmmmmmmmmmmmmmmmm.pptx
BIZ model 2024nnnmmmmmmmmmmmmmmmmmmm.pptxBIZ model 2024nnnmmmmmmmmmmmmmmmmmmm.pptx
BIZ model 2024nnnmmmmmmmmmmmmmmmmmmm.pptxPawachMetharattanara
 
1. คู่มือคนสอน คนเรียน PMS.pdf
1. คู่มือคนสอน คนเรียน PMS.pdf1. คู่มือคนสอน คนเรียน PMS.pdf
1. คู่มือคนสอน คนเรียน PMS.pdfPawachMetharattanara
 
Smart Parking รพ.กล้วยน้ำไท.pptx
Smart Parking รพ.กล้วยน้ำไท.pptxSmart Parking รพ.กล้วยน้ำไท.pptx
Smart Parking รพ.กล้วยน้ำไท.pptxPawachMetharattanara
 
1. คู่มือคนสอน คนเรียน PMS.pdf
1. คู่มือคนสอน คนเรียน PMS.pdf1. คู่มือคนสอน คนเรียน PMS.pdf
1. คู่มือคนสอน คนเรียน PMS.pdfPawachMetharattanara
 
Uniview Company Introduction with brief solution(1).pdf
Uniview Company Introduction with brief solution(1).pdfUniview Company Introduction with brief solution(1).pdf
Uniview Company Introduction with brief solution(1).pdfPawachMetharattanara
 
Uniview Company Introduction with brief solution(1).pdf
Uniview Company Introduction with brief solution(1).pdfUniview Company Introduction with brief solution(1).pdf
Uniview Company Introduction with brief solution(1).pdfPawachMetharattanara
 
หนังสือเชิญ Quicktron Robotic .Thailand(1).pdf
หนังสือเชิญ  Quicktron Robotic .Thailand(1).pdfหนังสือเชิญ  Quicktron Robotic .Thailand(1).pdf
หนังสือเชิญ Quicktron Robotic .Thailand(1).pdfPawachMetharattanara
 
07 TOR ระบบ Smart Classroom ขนาด 50 ที่นั่ง 231220.docx
07 TOR ระบบ Smart Classroom ขนาด 50 ที่นั่ง 231220.docx07 TOR ระบบ Smart Classroom ขนาด 50 ที่นั่ง 231220.docx
07 TOR ระบบ Smart Classroom ขนาด 50 ที่นั่ง 231220.docxPawachMetharattanara
 
Presentation DGF Logistics Thailand.คุณอรุณ.1.ppt
Presentation DGF Logistics Thailand.คุณอรุณ.1.pptPresentation DGF Logistics Thailand.คุณอรุณ.1.ppt
Presentation DGF Logistics Thailand.คุณอรุณ.1.pptPawachMetharattanara
 
อบรมพื้นฐาน 2023.pptx
อบรมพื้นฐาน 2023.pptxอบรมพื้นฐาน 2023.pptx
อบรมพื้นฐาน 2023.pptxPawachMetharattanara
 
presentationsolutioncovidschool-230115131900-5c73fd21.pptx
presentationsolutioncovidschool-230115131900-5c73fd21.pptxpresentationsolutioncovidschool-230115131900-5c73fd21.pptx
presentationsolutioncovidschool-230115131900-5c73fd21.pptxPawachMetharattanara
 
01416_PPT_FG_DAY1-บ่าย_651219V2.pdf
01416_PPT_FG_DAY1-บ่าย_651219V2.pdf01416_PPT_FG_DAY1-บ่าย_651219V2.pdf
01416_PPT_FG_DAY1-บ่าย_651219V2.pdfPawachMetharattanara
 
แผนที่PICKชีวิต.pdf
แผนที่PICKชีวิต.pdfแผนที่PICKชีวิต.pdf
แผนที่PICKชีวิต.pdfPawachMetharattanara
 

More from PawachMetharattanara (20)

BIZ model 2024nnnmmmmmmmmmmmmmmmmmmm.pptx
BIZ model 2024nnnmmmmmmmmmmmmmmmmmmm.pptxBIZ model 2024nnnmmmmmmmmmmmmmmmmmmm.pptx
BIZ model 2024nnnmmmmmmmmmmmmmmmmmmm.pptx
 
DLS_CP_Payment Rev.00.pdf
DLS_CP_Payment Rev.00.pdfDLS_CP_Payment Rev.00.pdf
DLS_CP_Payment Rev.00.pdf
 
1. คู่มือคนสอน คนเรียน PMS.pdf
1. คู่มือคนสอน คนเรียน PMS.pdf1. คู่มือคนสอน คนเรียน PMS.pdf
1. คู่มือคนสอน คนเรียน PMS.pdf
 
Smart Parking รพ.กล้วยน้ำไท.pptx
Smart Parking รพ.กล้วยน้ำไท.pptxSmart Parking รพ.กล้วยน้ำไท.pptx
Smart Parking รพ.กล้วยน้ำไท.pptx
 
KPI 2021 Sale ( Nov ).pptx
KPI 2021 Sale ( Nov ).pptxKPI 2021 Sale ( Nov ).pptx
KPI 2021 Sale ( Nov ).pptx
 
1. คู่มือคนสอน คนเรียน PMS.pdf
1. คู่มือคนสอน คนเรียน PMS.pdf1. คู่มือคนสอน คนเรียน PMS.pdf
1. คู่มือคนสอน คนเรียน PMS.pdf
 
Presentation1333.pptx
Presentation1333.pptxPresentation1333.pptx
Presentation1333.pptx
 
Presentation1unv2.pptx
Presentation1unv2.pptxPresentation1unv2.pptx
Presentation1unv2.pptx
 
Presentation1ubv.pptx
Presentation1ubv.pptxPresentation1ubv.pptx
Presentation1ubv.pptx
 
Uniview Company Introduction with brief solution(1).pdf
Uniview Company Introduction with brief solution(1).pdfUniview Company Introduction with brief solution(1).pdf
Uniview Company Introduction with brief solution(1).pdf
 
Univiwe Training 2023.pdf
Univiwe Training 2023.pdfUniviwe Training 2023.pdf
Univiwe Training 2023.pdf
 
Uniview Company Introduction with brief solution(1).pdf
Uniview Company Introduction with brief solution(1).pdfUniview Company Introduction with brief solution(1).pdf
Uniview Company Introduction with brief solution(1).pdf
 
หนังสือเชิญ Quicktron Robotic .Thailand(1).pdf
หนังสือเชิญ  Quicktron Robotic .Thailand(1).pdfหนังสือเชิญ  Quicktron Robotic .Thailand(1).pdf
หนังสือเชิญ Quicktron Robotic .Thailand(1).pdf
 
07 TOR ระบบ Smart Classroom ขนาด 50 ที่นั่ง 231220.docx
07 TOR ระบบ Smart Classroom ขนาด 50 ที่นั่ง 231220.docx07 TOR ระบบ Smart Classroom ขนาด 50 ที่นั่ง 231220.docx
07 TOR ระบบ Smart Classroom ขนาด 50 ที่นั่ง 231220.docx
 
Presentation DGF Logistics Thailand.คุณอรุณ.1.ppt
Presentation DGF Logistics Thailand.คุณอรุณ.1.pptPresentation DGF Logistics Thailand.คุณอรุณ.1.ppt
Presentation DGF Logistics Thailand.คุณอรุณ.1.ppt
 
อบรมพื้นฐาน 2023.pptx
อบรมพื้นฐาน 2023.pptxอบรมพื้นฐาน 2023.pptx
อบรมพื้นฐาน 2023.pptx
 
presentationsolutioncovidschool-230115131900-5c73fd21.pptx
presentationsolutioncovidschool-230115131900-5c73fd21.pptxpresentationsolutioncovidschool-230115131900-5c73fd21.pptx
presentationsolutioncovidschool-230115131900-5c73fd21.pptx
 
Catalog Quick.pdf
Catalog Quick.pdfCatalog Quick.pdf
Catalog Quick.pdf
 
01416_PPT_FG_DAY1-บ่าย_651219V2.pdf
01416_PPT_FG_DAY1-บ่าย_651219V2.pdf01416_PPT_FG_DAY1-บ่าย_651219V2.pdf
01416_PPT_FG_DAY1-บ่าย_651219V2.pdf
 
แผนที่PICKชีวิต.pdf
แผนที่PICKชีวิต.pdfแผนที่PICKชีวิต.pdf
แผนที่PICKชีวิต.pdf
 

Recently uploaded

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 

Recently uploaded (20)

Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 

audiocompression-130624061221-phpapp02.pptx

  • 1. Audio Compression M.K.H.Gunasekara – AS2010377 J.A.S. Fernando – AS2010362 CSC 362 1.5 Seminar I Department of Statistics and Computer Science
  • 2. Overview • Introduction • Pulse Code Modulation • µ - law • A - law • Differential Pulse Code Modulation • Adaptive Differential Pulse Code Modulation • Application • MPEG Audio Compression • MPEG Encoder Architecture • MPEG Audio Compression Algorithm • MPEG Layers • MPEG Layers Applications • Comparison of MPEG audio compression standards • Summary • References Audio Compression - AS2010377 2
  • 3. Introduction • A process that is useful for conserving both transmission bandwidth and storage space. • The various audio compression techniques offer different levels of complexity, compressed audio quality, and amount of data compression. Audio Compression - AS2010377 3
  • 4. Audio Compression Audio Compression - AS2010377 4 Lossy Audio Compression • AAC • ADPCM • ATRAC • Dolby AC-3 • MP2 • MP3 Lossless Audio Compression • Apple Lossless • apt-X Lossless • Audio Lossless Coding • Direct Stream Transfer (DST) • Dolby TrueHD • DTS-HD Master Audio • Free Lossless Audio Codec 4
  • 5. What is PCM ? • PCM is a method used to digitally represent sampled analog signals. • It is the standard form of digital audio in computers, Compact Discs, digital telephony and other digital audio applications. Audio Compression - AS2010377 5 5
  • 6. How PCM works ? • Sampling • Quantizing • Encoding Audio Compression - AS2010377 6 Figure 01 : Block Diagram of Pulse Code Modulation 6
  • 7. Sampling • Sampling theory (Nyquist) – If input signal has maximum frequency (bandwidth) f, sampling frequency must be at least 2f – With a low-pass filter to interpolate between samples, the input signal can be fully reconstructed Example : highest frequency of telephone voice channel is 3.4 kHz Sampling rate ≥ 2 x 3.4 ≥ 6.8 kHz Hence sample rate is 8 kHz Audio Compression - AS2010377 7 7
  • 8. Sampling • Ideal - an impulse at each sampling instant • Natural - a pulse of short width with varying amplitude • Flattop - sample and hold, like natural but with single amplitude value Audio Compression - AS2010377 8 Figure 02 : Sampling Methods 8
  • 9. Quantization • The samples are divided into many discrete levels. Then each sample is numbered according to their corresponding level. • Quantization error - the coded signal is an approximation of the actual amplitude value. Figure 03 : Linear Quantization Figure 04 : Non Linear Quantization Audio Compression - AS2010377 9 9
  • 10. Encoding • After quantizing the corresponding level it is to be represented in some manner. • We represent levels in binary format. • Representation of level 50 = 110010 Figure 05 : Representation of sample signal Audio Compression - AS2010377 10 10
  • 11. Figure 07- Circuit diagram of pulse code modulation Figure 06- Block diagram of pulse code modulation Audio Compression - AS2010377 11 11
  • 12. What is µ law ? • µ -law encoding is a form of logarithmic quantization or companding. • It's based on the observation that many signals are statistically more likely to be near a low signal level than a high signal level. • Most quality codecs (including the Sparcstation's audio codec) use µ -law encoded samples. Audio Compression - AS2010377 12 12
  • 13. What is A law ? • A-Law compression is extremely similar to Mu-Law compression • If the absolute value of the source sample is less than 256, the 16-bit sample is simply shifted down 4 bits and converted to an 8-bit value, thus losing the top 4 bits in the process. Audio Compression - AS2010377 13 13
  • 14. A law and µ law Both methods compress 2:1 ratio. • µ -Law has a larger dynamic range compared to A-law • µ -Law has worse distortion with small signals compared to A-law • µ -Law is used in North-America and Japan while A-law is commonly used in Europe • A-law takes precedence over µ -law with international calls Audio Compression - AS2010377 14 14
  • 15. Differential PCM • Differential pulse-code modulation is a signal encoder that uses the baseline of pulse-code modulation but adds some functionalities based on the prediction of the samples of the signal. Audio Compression - AS2010377 15 15
  • 16. Adaptive Differential PCM • ADPCM, commonly termed as a form of compression, is a more efficient way of storing waveforms than 16-bit or 8-bit PCM. • ADPCM stores the value differences between two adjacent PCM samples and makes some assumptions that allow data reduction. • Because of these assumptions low frequencies are properly reproduced Audio Compression - AS2010377 16 16
  • 17. Adaptive Differential PCM Audio Compression - AS2010377 17 • An ADPCM algorithm is used to map a series of 8 bit µ-law (or a-law) PCM samples into a series of 4 bit ADPCM samples. In this way, the capacity of the line is doubled. • Some ADPCM techniques are used in Voice over IP communications. • ADPCM was also used by Interactive Multimedia Association for development of legacy audio codec known as ADPCM DVI, IMA ADPCM or DVI4 17
  • 18. Applications Audio Compression Format Algorithm Bit Rate Bits per sample Implementations G.711 Companding A- law ; µ-law ; PCM 64 kbit/s 8 bit FFmpeg, Ekiga, Asterisk (PBX) G.711.1 A-law ; µ-law 64, 80, 96 kbit/s 16 bit VoIP G.721 ADPCM 32 kbit/s 13 bit G.722 ADPCM 64 kbit/s 14 bit QuickTime, RealPlayer Audio Compression - AS2010377 18 18
  • 19. Wrap - up • Techniques to compress general digital audio signals include µ -law and adaptive differential pulse code modulation. • These approaches apply low-complexity, low- compression, and medium audio quality algorithms to audio signals. Audio Compression - AS2010377 19 19
  • 20. MPEG Audio Compression • Motion Picture Experts Group • An ISO standard for high-fidelity audio compression. • A lossy compression. • But can achieve transparent, perceptually lossless compression. • Compresses without regard to the source of the audio data. • Removes distortion and other features that are imperceptible to the human ear. • 6-to-1 compression ratio. 20 Audio Compression - AS2010362 20
  • 21. MPEG Audio Compression • Four channel modes - Monophonic - Dual monophonic - Stereo - Joint- stereo • Has 3 distinct layers for compression 21 Audio Compression - AS2010362 21
  • 22. MPEG Encoder Architecture Audio Input Encoded Bit Stream Time to Frequency Mapping Filter bank Bit Allocation, Quantize and coding Psychoacoustic Model Bit stream formatting 22 Audio Compression - AS2010362 22
  • 23. MPEG Audio Compression Algorithm • The input audio stream passes through a filter bank. Filter Bank - Divides the input into multiple subbands. - Relatively simple and provide good time resolution 23 Audio Compression - AS2010362 23
  • 24. MPEG Audio Compression Algorithm … • The input audio stream simultaneously passes through a psychoacoustic model. The Psychoacoustic Model - The key component of the MPEG encoder that enables its high performance. - Analyzes the audio signal and computes the amount of noise masking that is available as a function of frequency. 24 Audio Compression - AS2010362 24
  • 25. MPEG Audio Compression Algorithm... • The bit or noise allocation block uses the signal- to-mask ratios to decide how to apportion the total number of code bits available for the quantization of the subband signals to minimize the audibility of the quantization noise. • Finally, the last block takes the representation of the quantized audio samples and formats the data into a decodable bit stream. 25 Audio Compression - AS2010362 25
  • 26. MPEG Layers • Offers three compatible layers. - Layer I - Layer II - Layer III • Each succeeding layer able to understand the lower layers. • Each succeeding layer offers more complexity and better compression for a given level of audio quality. 26 Audio Compression - AS2010362 26
  • 27. MPEG Audio Layer I 27 • Uses the basic filter bank found in all layers. • This filter bank divides the audio signal into 32 constant-width frequency bands. • Bit rates greater than 128 kbits/s per channel. Audio Compression - AS2010362 27
  • 28. MPEG Audio Layer II 28 • A simple enhancement of Layer I. • It improves compression performance by coding data in larger groups. • Bit rates of 128 kbits/s per channel. • Improves performance by representing the bit allocation, the scale factor values, and the quantized samples. Audio Compression - AS2010362 28
  • 29. MPEG Audio Layer III – Widely popular under the name Mp3 – The most complex with the best audio quality – Used for bit rates of 64 kbits/s per channel. • Compensates for some filter bank deficiencies by processing the filter outputs with a modified discrete cosine transform (MDCT). 29 Audio Compression - AS2010362 29
  • 30. MPEG Audio Layer III Filter Bank Processing 30 Audio Compression - AS2010362 30
  • 31. MPEG Audio Layer III enhancements 31 • Alias reduction • Nonuniform quantization • Entropy coding of data values • Use of a bit reservoir • Noise allocation instead of bit allocation Audio Compression - AS2010362 31
  • 32. MPEG Layers Applications 32 Layer Application I Digital audio cassette II Digital audio broadcast III CD quality Audio Compression - AS2010362 32
  • 33. Comparison of MPEG audio compression standards 33 Standard Audio Sampling rate(kHz) Compressed bit rate (kbits/sec) Channels MPEG - 1 Layer I 32, 44.1, 48 32- 448 1- 2 channels MPEG - 1 Layer I 32, 44.1, 48 32 – 384 1-2 channels MPEG - 1 Layer III 32, 44.1, 48 32 – 320 1-2 channels MPEG - 2 Layer I 32, 44.1, 48 32 - 448 1 – 5.1 channels 16, 22.05, 24 32 - 256 MPEG - 2 Layer II 32, 44.1, 48 32 - 384 1 – 5.1 channels 16, 22.05, 24 8 - 160 MPEG - 2 Layer III 32, 44.1, 48 32 - 384 1 – 5.1 channels 16, 22.05, 24 8 - 160 Audio Compression - AS2010362 33
  • 34. Comparison of MPEG audio compression standards 34 • MPEG 2 AAC - more efficient than the previous MPEG audio standards - supports from 1 to 48 channels at sampling rates of 8 to 96 kHz • MPEG 4 AAC - similar to the MPEG-2 AAC standard, with some minor changes - supports the compression of natural audio at bit rates ranging from 2 up to 64 kb/s. Audio Compression - AS2010362 34
  • 35. Summary 35 • The MPEG audio standard has three layers of successive complexity for improve compression performance. • MPEG audio has been extended in following ways - Multichannel audio support - Lower, compressed audio rates - Lower audio sampling rates Audio Compression - AS2010362 35
  • 36. References 36 • Introduction To Data Compression ,Third Edition ,Khalid Sayood • B. Cavagndo , J. Bier, Introduction to Digital Audio Compression, Available: http://rizal.blog.undip.ac.id/files/2009/07/introd uctiontodigitalaudiocompression.pdf • Davis Yen Pen, Digital Audio Compression, Available: www.ece.jcu.edu.au/subjects/ee3700/resources/ Digital_Audio_Compression.pdf Audio Compression - AS2010362 36
  • 37. 37 THANK YOU Audio Compression - AS2010377 & AS2010362 37

Editor's Notes

  1. These simple techniques have been largely rendered obsolete by modern transform-based audio compression techniques.
  2. Therefore, it makes more sense to have more quantization points near a low level than a high level.