What is a codec?
The Audio Codec
The audio codecs are used to compress and decompress any audio files, acting as a medium to play the files in many media players such as windows media player. The need for a codec happens when the player is not able to play an audio file because it needs the right codec to decompress and play the audio files. Windows Media Player 11 can play most audio files and supports more audio codecs if need be.
The Video Codec
The video codecs have the same function as the audio codecs, except for use with video files. The Data Codec