What is a CODEC

What is a CODEC

CODEC's Explained - Part 2

 

Article Published by Marc Liron - Microsoft MVP

 

What is a CODEC?

 

Part 1 of this article is HERE

Some Quick Fundamentals to Understand:

This is really going to be the only "techie" part of this article so please do read over it a couple of times to let it sink in...

Here are some quick fundamentals to build our knowledge of Codec's on:

 

 

 

1) There are Video Codec's, Audio Codec's and Speech Codec's
2) Codec's are either "Lossy" or "Lossless"
3) Some older Audio Codec's can be in a "non-compression" format
4) Digital containers (special file formats)
5) FourCC codes and 2-byte identifiers


Let us now look at each one of these in turn:

 

1. Video Codec's, Audio Codec's and Speech Codec's

It is not possible to have a single codec that can be used to create an audio or video file as video and audio are very different beasts. So there are individual codec's for each.

Though there are hundreds of codec's in existence, the majority of the codec's you will encounter in today's digital world is a "large handful", and we take a brief look at them in this article.



2. Codec's are either Lossy or Lossless

Codec's are normally grouped as audio, video and speech. Then they are usual sub grouped as "lossy" or "lossless". Let us look at lossy first.

- Lossy

When your brain views video and hears audio it can do something very wonderful things such as "fill in the blanks" or see past very minor errors or inconsistencies.

So we can use this knowledge to "compress" audio, often at a ratio of 10:1 with little perceptible loss of quality, and video can be compressed up to a ratio of around 300:1 with little visible quality loss. (This does however depend on the codec being used.)

Doing this should then give us a file that is a lot smaller in size than the original.

(When it come to lossy compression there are 2 main techniques called predictive and transform but we will not be discussing them here in this special report.)

Sometimes there are flaws caused by lossy compression that are still noticeable to the human eye or ear. We call these compression artefacts.

It is also important to note that if you have a lossy file and you re-encode using another lossy codec (wmv to flv for instance) you will probably suffer something called "generational loss". This can be seen and heard as poorer quality video and audio.

- Lossless

Lossless compression uses a mathematical algorithm that allows the "exact" original data to be "reconstructed" from the compressed data. Very few audio and video code’s employ this technique. It is more commonly seen in executable programs, source code and popular archive formats such as ZIP and RAR.

 

3. Some older audio codec's can be in a non-compression format

We will not look at these in this guide but two of the most commonly used are:

Audio Interchange File Format (AIFF) is an audio file format from Apple used for storing sound data for personal computers and other electronic audio devices.

WAV (or WAVE), short for Waveform audio format, is a Microsoft and IBM audio file format standard for storing audio on PCs.



4. Digital Containers

A "digital container" is a computer container file format that can contain various audio and video data streams, compressed by means of standardized audio/video codec's. The container file is used to identify the different data streams and "interleave" them - a process of arranging the audio and video data streams in a way that it increases performance through less errors.

A very popular form of digital container is the AVI file type. (A digital container with a single audio and video data stream.)

More "advanced" containers can also cope with multiple audio and video data streams, subtitles, chapter-information, and additional meta-data - along with the synchronization information needed to play back the various streams together.

Here are some common container formats:

ASF - standard container for Microsoft WMA and WMV
AVI - the standard Microsoft Windows container
MP4 - standard audio and video container for MPEG4
MOV - standard QuickTime video container from Apple Inc
RealMedia - standard container for RealVideo and RealAudio



5. FourCC codes and 2-byte Identifiers

Basically EVERY codec has a unique reference given to it. For instance WMV3 is Windows Media Video 9 (WMV)

For video codec's this is called the FourCC (four-character code) - a full list can be found here:

http://www.fourcc.org/codecs.php 


For audio codec's, things get a little odd. AVI and WAV files use a two-byte identifier, usually written in hexadecimal, such as 0x0055 for MP3.

RealMedia (RealAudio) files are compressed using several different audio codecs and each codec is identified by a four character code. However these are NOT part of the video FourCC codes.

And some audio files use codec's with two-byte identifiers that are prefixed with the letters 'ms' to form a four-character code.

In the final part of this article we will look at popular Audio and Video CODEC's.

 

Continue for Part 3 of this article: click here

For Part 1 of this article: click here

-----------------------------------------------------------------------------------------------------------

>>> More Than Just A Newsletter!

Claim YOUR FREE 37 Page Special Report that reveals 17 of the
Microsoft Windows Live Services that you can start using TODAY!!!

 
Name:
Email:
 

Your Details are secure - we never pass them on to anyone else!

Privacy Policy


Visit the free newsletter website for more information! Click Here...

Make sure you sign up for the FREE Newsletter and checkout the Main Index for a growing list of articles you are going to find informative!

Kind Regards

Marc Liron

Marc Liron - Microsoft MVP
http://www.marcliron.com 

Marc's Resources:

Windows XP Command Line Video Guide
 

Windows XP Command Line Guide

The Command Line is a VERY powerful set of tools - but once learnt they open up a whole new way to get under the hood of Windows XP.

26 UNIQUE Video Tutorials & 49 Pages of Critical Notes!

Learn More Here!

-------------------------

Microsoft Excel Formulas & Functions Guide
 

Microsoft Excel Formula Guide

...Discover the hidden power of Excel formulas and functions with this unique reference guide - a proven solution to putting you in control.

Special Offer - invest in Part 1 and get part 2 FREE! 

Learn More Here!

-------------------------

Windows Services Guide
 Windows XP Services Guide

...Windows Services in XP and Vista hold a huge amount of power behind the operating system Yet FEW users understand them or how to use them in troubleshooting PC problems...

This extensive FOUR part guide will soon have you in control!

Learn More Here!

-------------------------

FREE Newsletter - Subscribe TODAY!

Windows Newsletter

The Marc Talks Tech Newsletter

An unrivalled selection of articles, tips, videos and news related to Windows XP / Vista / Office & Windows Live services...

A popular choice - and for a good reason!!

Get YOUR Copy NOW!
-------------------------


 COMMON XP ERRORS:


0xC0000005


0x8024402C


0x800A138F


0x8007007E


0x80072EE2


0x80072EFD


800C0008


0x8DDD0018


0xC00D1199


8004022F


80040154


0x800B0004


C00D11CD


C00D1199


C00D2EED


C00D11BA


Windows Update Error List!