Codec
This article is on the compression/decompression algorithms used in digital media. For other uses of codec, see Codec (disambiguation).
A codec is a device or program capable of performing encoding and decoding on a digital data stream or signal. The word codec may be a combination of any of the following: 'Compressor-Decompressor', 'Coder-Decoder', or 'Compression/Decompression algorithm'.
Contents
[hide]
* 1 Description
o 1.1 Related concepts
o 1.2 Compression quality
* 2 See also
* 3 External links
[edit] Description
[edit] Related concepts
An endec is a similar (but different) concept for hardware. In the mid 20th century, a "codec" was hardware that coded analog signals into Pulse-code modulation (PCM) and decoded them back. Late in the century the name came to be applied to a class of software for converting among digital signal formats, and including compander functions.
Codecs (in the modern, software sense) encode a stream or signal for transmission, storage or encryption and decode it for viewing or editing. Codecs are often used in videoconferencing and streaming media applications. A video camera's analog-to-digital converter (ADC) converts its analog signals into digital signals, which are then passed through a video compressor for digital transmission or storage. A receiving device then runs the signal through a video decompressor, then a digital-to-analog converter (DAC) for analog display. A "codec" is a generic name for a video conferencing unit.
An audio compressor converts analog audio signals into digital signals for transmission or storage. A receiving device then converts the digital signals back to analog using an audio decompressor, for playback.
The raw encoded form of audio and video data is often called essence, to distinguish it from the metadata information that together make up the information content of the stream and any "wrapper" data that is then added to aid access to or improve the robustness of the stream.
[edit] Compression quality
Most codecs are lossy. Originally this was in order to make the compressed files small enough to be readily transmitted across non-broadband networks and stored on relatively expensive media, such as non-volatile memory and hard disk as opposed to write-once read-many formats such as CD-ROM and DVD.
There are lossless codecs but for most purposes the slight increase in quality (some would say almost imperceptible increase) is not worth the increase in data size, which is often considerable. The main exception to this is if the data is to undergo further processing (for example editing) in which case the repeated application of lossy codecs (repeated encoding and subsequent decoding) will almost certainly degrade the quality of the edited file such that it is readily identifiable (visually or audibly or both). Using more than one codec or encoding scheme whilst creating a finished product can also degrade quality significantly (however there are many situations where this is all but unavoidable).
Many codecs are designed to emphasize certain aspects of the media to be encoded. For example, a digital video (using a DV codec) of a sports event, such as baseball or soccer, needs to encode motion well but not necessarily exact colors, while a video of an art exhibit needs to perform well encoding color and surface texture. There are hundreds or even thousands of codecs ranging from those downloadable for free to ones costing hundreds of dollars or more.
Many multimedia data streams need to contain both audio and video data, and often some form of metadata that permits synchronization of the audio and video. Each of these three streams may be handled by different programs, processes, or hardware; but for the multimedia data stream to be useful in stored or transmitted form, they must be encapsulated together in a container format.
While many people explain that AVI is a codec, they are incorrect. AVI (nowadays) is a container format, which many codecs might use (although not to ISO standard). There are other well known alternative containers such as Ogg, ASF, QuickTime, RealMedia, Matroska and MP4.
From Wikipedia, the free encyclopedia