Codecs – Everything You Always Wanted to Know

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Five Working with Images.
Advertisements

Multimedia: Digitised Sound Data Section 3. Sound in Multimedia Types: Voice Overs Special Effects Musical Backdrops Sound can make multimedia presentations.
Web Design Vocab 3 PNG, JPG, GIF, MP3, MPEG.
RMAUG Professional Development Series 2/11/09 Dwight Reifsnyder.
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.
DIGITAL COMMUNICATIONS.  The modern world is dependent on digital communications.  Radio, television and telephone systems were essentially analog in.
Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
T.Sharon-A.Frank 1 Multimedia Size of Data Frame.
Digital Voice Communication Link EE 413 – TEAM 2 April 21 st, 2005.
© 2006 Cisco Systems, Inc. All rights reserved. 2.2: Digitizing and Packetizing Voice.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
EE2F1 Speech & Audio Technology Sept. 26, 2002 SLIDE 1 THE UNIVERSITY OF BIRMINGHAM ELECTRONIC, ELECTRICAL & COMPUTER ENGINEERING Digital Systems & Vision.
{ Lossy Compression William Dayton Nick Trojanowski.
Lecture 10 Data Compression.
MULTIMEDIA TECHNOLOGY SMM 3001 DATA COMPRESSION. In this chapter The basic principles for compressing data The basic principles for compressing data Data.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
Multimedia and The Web.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Data Compression. Compression? Compression refers to the ways in which the amount of data needed to store an image or other file can be reduced. This.
© 2006 Cisco Systems, Inc. All rights reserved. Optimizing Converged Cisco Networks (ONT) Module 2: Cisco VoIP Implementations.
Chapter 2 : Imaging and Image Representation Computer Vision Lab. Chonbuk National University.
+ 5 Things you need to know about images* *Images for the web.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Digital Audio System PCM streams have two basic properties that determine their fidelity to the original analog signal: the sampling rate, which is the.
Using the Sony DSC-P52 Camera Sunday, December 06, 2015.
Class 9 LBSC 690 Information Technology Multimedia.
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
Chap 14 Presentation Layer Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Digital Image Editing Presented by John Hohn. File Formats JPEG – Joint Photographic Experts Group PNP – Portable Network Graphics GIF – Graphic Interchange.
Digital File Formats By Ali Aslam. JPEG JPEG Stands for Joint Photographic Experts Group. JPEG uses a lossy compression routine. Lossy compression means.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
Layer 6 Presentation Layer. Overview Now that you have learned about Layer 5 of the OSI model, it is time to look at Layer 6, the presentation layer.
2.01 Understand Digital Raster Graphics
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
2.01 Understand Digital Raster Graphics
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
2.01 Understand Digital Raster Graphics
Image Formats.
Sci Vis I Exam Review Unit 6 File Formats.
Multimedia: Digitised Sound Data
VOICE AND VIDEO OVER IP VOIP, RTP, RSVP.
INTRODUCTION TO TELEPHONY BY : ITZIK CHOEN
PCM (Pulse Code Modulation)
CHAPTER 3 Physical Layer.
Introduction to electronic communication systems
JPEG.
2.01 Investigate graphic image design.
JPG vs GIF vs PNG What is the difference?
Introduction to Computer Science - Lecture 4
Chapter 3 Image Files © 2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Data Compression.
CHAPTER 3 Physical Layer.
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
3.01F Publishing Animated Videos
Overview What is Multimedia? Characteristics of multimedia
Web Design and Development
2.01 Understand Digital Raster Graphics
Standards Presentation ECE 8873 – Data Compression and Modeling
UNIT IV.
2.01 Investigate graphic image design.
COMS 161 Introduction to Computing
2.01 Understand Digital Raster Graphics
2.01 Investigate graphic image design.
Chapter 8 – Compression Aims: Outline the objectives of compression.
Presentation transcript:

Codecs – Everything You Always Wanted to Know RMAUG Professional Development Series 2/11/09 Dwight Reifsnyder

“If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.” George Bernard Shaw

Boulder Valley School District

Codecs – EYAWTK Overview Codec background and concepts Comparisons and basic features Voice Codec specifics Application in an Avaya environment

What is a Codec? Codec is short for Coder/Decoder Just like a Dick Tracy! But what are the concepts involved?

“Coding” is Changing Form Examples of coding include: Pictures Writing Music Language translation Encryption

Audio Encoding 1876 Alexander Graham Bell 1894 Guglielmo Marconi Audio to electricity 1894 Guglielmo Marconi Audio to radio 1916 Theodore Case Audio to optical

Analog (Wikipedia) An analog or analogue signal is any continuous signal for which the time varying feature (variable) of the signal is a representation of some other time varying quantity, i.e. analogous to another time varying signal. Analog is usually thought of in an electrical context; however, mechanical, pneumatic, hydraulic, and other systems may also convey analog signals

Digital Encoding 1937 - Alec H. Reeves Pulse Code Modulation invented (PCM) 1942 - John V. Atanasoff, Clifford Berry First computer 1962 – Bell Labs PCM first used in commercial telephony

Digital (Wikipedia) A digital system uses discrete (discontinuous) values, usually but not always symbolized numerically (hence called "digital") to represent information. By contrast, non- digital (or analog) systems use a continuous range of values to represent information.

Digital (Wikipedia, continued) The word digital is most commonly used in computing and electronics, especially where real-world information is converted to binary numeric form as in digital audio and digital photography.

Analog vs. Digital Analog Digital Continuous, modulates in direct relation to original data Digital Discrete data (individual values) with no intuitive or obvious correlation to original data

Concept Review Encoding is changing form. Data may be encoded, transmitted, stored, and decoded Analog (encoding or transmission) Digital (encoding or transmission)

Digital Encoding - Pictures TIF (TIFF) Tagged Image File Format PNG Portable Network Graphic JPG (JPEG) Joint Photographic Experts Group GIF Graphics Interchange Format

Digital Encoding – File Size TIF (TIFF) 576K No Compression (lossless) PNG 232K No Compression (lossless) GIF 97K Compressed (lossy) JPG (JPEG) 105K Compressed (lossy)

Multiple Codecs If the pictures all look the same, why do we need different Codecs? Different types of Codecs are optimized for different types of data

AAAABBBBBCCCCDDDDDDEEEEEEEE JPG vs. GIF GIF uses Run Length Encoding (RLE) AAAABBBBBCCCCDDDDDDEEEEEEEE 4A4B4C6D8E Max of 256 colors, fewer colors=smaller file

JPG vs. GIF JPG uses multiple steps We should create 8x8 DCT matrix using this formula: DCT = 1/sqr(N), if i=0 ij DCT = sqr(2/N)*cos[(2j+1)*i*3.14/2N], if i > 0 ij N = 8, 0 < i < 7 , 0 < j < 7 in result we have: DCT = |.353553 .353553 . 353553 .353553 . 353553 .353553 .353553 .353553| |.490393 .415818 .277992 .097887 -.097106 -.277329 -.415375 -.490246| |.461978 .191618 -.190882 -.461673 -.462282 -.192353 .190145 .461366| |.414818 -.097106 -.490246 -.278653 .276667 .490710 .099448 -.414486| |.353694 -.353131 -.354256 .352567 .354819 -.352001 -.355378 .351435| |.277992 -.490246 .096324 .416700 -.414486 -.100228 .491013 -.274673| |.191618 -.462282 .461366 -.189409 -.193822 .463187 -.460440 .187195|

JPG Quality vs. File Size JPG (JPEG) Quality “30” – 16K JPG (JPEG) Quality “100” 105k

GIF Quality vs. File Size GIF 32 Colors (lossy) 17K GIF 256 Colors (lossless) 97k

Image (and Audio) Codecs Review There are many codec choices – the goal is for it to be transparent to the user Codecs can contain multiple encoding/compression steps Codec choice should consider type of audio, available bandwidth, and CPU usage

Voice Codecs There a many audio codecs Voice Specific Codecs Quicktime Real Player MP3 Voice Specific Codecs Industry Standard (ITU) Optimized for speech

Common Voice Codecs ITU-T Codec Standard Coding Scheme Used Bit Rate Encoding Delay Time Mean Opinion Score G.711 PCM 64 kbps <1 msec 4.7 G.722 SB-ADPCM 4 msec 4.5  G.726 ADPCM 32 kbps 1 msec 4.2 G.728 LC-CELP 16 kbps 2 msec G.729 CS-ACELP 8 kbps 15 msec G.723.1 MPMLQ 6.3 kbps 37.5 msec 3.98 ACELP 5.3 kbps 3.5

Bandwidth, Bandwidth, Bandwidth For most users, the main consideration in choosing a codec is bandwidth This can be complex when considering calls between multiple regions

Avaya Bandwidth Calculator http://marketingtools.avaya.com/knowledgebase/ipoffice/general/bandwidth/

Common Voice Codecs ITU-T Codec Standard Coding Scheme Used Bit Rate Encoding Delay Time Mean Opinion Score G.711 PCM 64 kbps <1 msec 4.7 G.722 SB-ADPCM 4 msec 4.5  G.726 ADPCM 32 kbps 1 msec 4.2 G.728 LC-CELP 16 kbps 2 msec G.729 CS-ACELP 8 kbps 15 msec G.723.1 MPMLQ 6.3 kbps 37.5 msec 3.98 ACELP 5.3 kbps 3.5

VoIP Delay Initiator Transmit Receiver Encoding (DSP usage) Network transmit Jitter Buffer Receiver

VoIP Delay – Graphical Version

Common Voice Codecs ITU-T Codec Standard Coding Scheme Used Bit Rate Encoding Delay Time Mean Opinion Score G.711 PCM 64 kbps <1 msec 4.7 G.722 SB-ADPCM 4 msec 4.5  G.726 ADPCM 32 kbps 1 msec 4.2 G.728 LC-CELP 16 kbps 2 msec G.729 CS-ACELP 8 kbps 15 msec G.723.1 MPMLQ 6.3 kbps 37.5 msec 3.98 ACELP 5.3 kbps 3.5

Silence – Not Golden VAD CNG PLC Voice Activity Detection “Clipping” Comfort Noise Generation PLC Packet Loss Concealment

Avaya Codec Sets G.711A (a-law) G.711MU (m-law) G.722-64k G.722.1-24k G.726A-32k G.729 G.729B G.729AB SIREN14-24k SIREN14-32k SIREN14-48k SIREN14-S48k SIREN14-S56k SIREN14-S64k SIREN14-S96k

G.722 – Wideband Audio Human Hearing Narrowband Codecs Wideband Codecs 5hz to 20khz Narrowband Codecs 200hz to 4khz Wideband Codecs 50hz to 7khz

What’s NOT a Codec? G.xxx e.g. G.722, G.711 Voice Encoding H.xxx e.g. H.323, H.264 Call Control V.xxx e.g. V.32, V.90 Modem Encoding T.xxx e.g. T.30, T.38 Fax Control

Faxes and Modems VoIP is not a conducive to fax or modem usage Special settings G.711 only Turns off VAD, CNG, PLC Relay Redundancy

Thanks for staying awake… Two codecs walk into a bar…