Everything you ever wanted to know about a Codec But were afraid to ask????

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.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 36 How Music and Audio Work on the Internet.
Data Compression CS 147 Minh Nguyen.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Time-Frequency Analysis Analyzing sounds as a sequence of frames
1 Digital Audio Compression. 2 Formats  There are many different formats for storing and communicating digital audio:  CD audio  Wav  Aiff  Au 
Audio Basic Concepts. Audio in Multimedia Digital Audio: Sound that has been captured or created electronically by a computer In a multimedia production,
1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
SWE 423: Multimedia Systems Chapter 7: Data Compression (1)
Digital Voice Communication Link EE 413 – TEAM 2 April 21 st, 2005.
Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.
Image Formation and Digital Video
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Joint Picture Experts Group(JPEG)
{ Lossy Compression William Dayton Nick Trojanowski.
Using Multimedia on the Web
Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.
Compression Algorithms Robert Buckley MCIS681 Online Dr. Smith Nova Southeastern University.
Lecture 10 Data Compression.
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
Multimedia Data Video Compression The MPEG-1 Standard
Video Basics. Agenda Digital Video Compressing Video Audio Video Encoding in tools.
MULTIMEDIA TECHNOLOGY SMM 3001 DATA COMPRESSION. In this chapter The basic principles for compressing data The basic principles for compressing data Data.
AVI File Format By : Jacob, Bab and Conor. Basic operation Presented By: Conor.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
Multimedia and The Web.
1 CP Lecture 8 PC and Media exchange standards.
Multimedia Elements: Sound, Animation, and Video.
Video Compression: Performance evaluation of available codec software Sridhar Godavarthy.
Multimedia Specification Design and Production 2012 / Semester 1 / L3 Lecturer: Dr. Nikos Gazepidis
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
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.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
In this lecture, you will learn: 1 Basic ideas of video compression General types of compression methods.
1 Audio Compression. 2 Digital Audio  Human auditory system is much more sensitive to quality degradation then is the human visual system  redundancy.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Digital Image Processing Image Compression
COMPRESSION. Compression in General: Why Compress? So Many Bits, So Little Time (Space) CD audio rate: 2 * 2 * 8 * = 1,411,200 bps CD audio storage:
An introduction to audio/video compression Dr. Malcolm Wilson.
LECTURE 07 RAZIA NISAR NOORANI Digital Video. Basic Digital Video Concepts CS118 – Web Engineering 2 Movie length Frame size Frame rate Quality Color.
CIS Data Communications1 CIS-325 Data Communication Dr. L. G. Williams, Instructor.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
Digital Audio III. Sound compression (I) Compression of sound data requires different techniques from those for graphical data Requirements are less stringent.
CSCI-100 Introduction to Computing Hardware Part II.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Multimedia in Web Introduction. Multimedia Elements in Web Page Images Voice Music Animation Video Text & Numbers.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Chapter Five Making Connections Efficient: Multiplexing and Compression Data Communications and Computer Networks: A Business User’s Approach Eighth Edition.
Concepts Used to Create Digital Audio & Video Objectives &
Information Systems Design and Development Media Types Computing Science.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
An introduction to audio/video compression Prepared by :: Bhatt shivani ( )
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Video Basics.
Data Compression.
Lesson Objectives Aims You should know about: 1.3.1:
Multimedia: Digitised Sound Data
Compression.
Data Compression.
Data Compression CS 147 Minh Nguyen.
Multimedia: making it Work
UNIT IV.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Govt. Polytechnic Dhangar(Fatehabad)
Digital Video Faraz Khan.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Presentation transcript:

Everything you ever wanted to know about a Codec But were afraid to ask????

It’s software In simplest form, a codec is a software algorithm that transforms data from one format to another Stands for coder-decoder or compressor- de-compressor Codec used to compress file must be the same used to decompress file

Two main types Lossless codecs – the original can be recreated exactly for the compressed file Lossy codecs – decompressed file is an approximation of the original file. How approximate depends on amount of compression used

Many file formats use codecs JPEG images - lossy GIF images - lossy ZIP files - lossless StuffIt archives - lossless

How lossless codecs work Original files can be recreated exactly Takes advantage of redundant information reprenting more efficiently AAAAAAAA becomes 8A – reducing storage by 75% Huffman coding replaces frequently occurring sequences with shorter code –Hyper Text Markup Language becomes HTML.

When de-compressed HTML becomes Hyper Text Markup Language Great for quality concerns – but minimal compression ratios. Would not work well for Streaming Media, for example.

Lossy codecs GIF JPEG They are only approximations of the original image

Achieve much higher rates of file size reduction by discarding data that is deemed unnecessary or redundant. Since information is discarded, recreating the original file exactly is not possible when file is de-compressed. Ideally, some data can be discarded and not missed.

Poor, poor Codecs The codecs job is difficult and underappreciated – they must try to keep the most important information in the file and discard the rest. In cases of extreme compression, codecs MUST be ruthless in discarding data They try to retain original quality – or to retain at least enough information to keep you interested.

Try to take some time to tell codecs you love and appreciate them. Theirs is a tough and thankless job.

Streaming Media Codecs It’s a tough job – but somebody’s gotta do it. –Uncompressed audio = 1.4Mbits per second –Raw video >25Mbytes per second for full screen NTSC (National Television Standards Committee decided on 30 frames per second as the standard) –56K modem downloading at the speed of wait

Extreme Compression Staggering divide between raw bit rates of audio and video and bit rates available to Internet users bridged by codecs If sustained 34K data rate (of 56K modem) CD-quality audio must be compressed approximately 40:1. With video, compression numbers are ludicrous

Perceptual Coding What is a conscientious codec to do? –Use models about how humans perceive audio and video –Allow for reasonably intelligent decisions about what to keep and what to throw out

When digitizing audio and video, goal is to accurately represent input signal –Audio: sample input 44,100 times per second, using 16-bit words to represent each sample. Assumes our ears give equal attention to each and frequency –Video: assumes that 24 bits of information needed for every pixel on the screen, all 640 X 480 of them, 30 times a second - NOT

Human eyes and ears register extremely wide range of audio and video inputs, though both are more sensitive to particular ranges of audio and video spectrum. And, what is perceived is determined by the brain, which filters raw information. Perceptual coding makes decisions about compressing audio and video based on how humans perceive sight and sound.

For example – loud sounds take precedence over quieter sounds in the brain; bright objects and movement take visual precedence Evolved from primitive survival characteristics – it was more important to hear the saber tooth tiger roaring at you than your wife telling you to take out the trash; and, you want to be able to see that bright tiger running through the grass toward you.

Humans retain these perceptual characteristics – perceptual coding is effective in keeping what is “important” and “discarding” what is not important.

Audio Codecs Balance between fidelity, frequency response, dynamics & number of channels. Collapsing from stereo to mono – cuts amount of data in half Sampling rate – further reduces data to be processed – –frequency response and –sample bit depth

FM radio – frequency - 12KhZ – drop frequency response and maintain quality For voice – 8kHz or even 5kHz Thus don’t have to use full 16 bits to represent dynamic range Technology making it even better – need less to sound good

What about music? Must be prepared for wide range of sounds – from screaming bass guitar to cymbals to soft flute in the background. Thus, special AND different codecs for audio, speech and video

Voice codecs and music codecs are completely different Not interchangeable – voice codecs make music sound awful – and mostly visa versa.

Video Coding Video content with motion – smooth at about 20 fps Little motion can go below that But that is still not enough Economize by using inter-frame compression

Theoretically, much of frame will remain unchanged between frames Digitize or encode only the section of the frame that changes

Video codec digitizes one complete frame to establish all elements in the frame After background established – subsequent frames digitize only changing elements or differences – Establishing frames are keyframes Rest are called difference frames

Video keyframes allow you to change an effect over time, or move the position and size of the frame over time. Video keyframes are used during custom special effects, but are not needed for most common operations.

That’s all I want to confuse you with Just remember the jist