CODECS AND CONTAINERS


Free Download Mp4Gain
picture

CODECS AND CONTAINERS

I.CODEC

Codecs are components (circuits, modules) or computer programs that create a stream of data to encode and / or can decode. The term “Codec” is a made-up word that consists of parts of the English terms CO der and DEC o. (En) Encoders are used to encode data streams for transmission (eg Reed-Solomon contributes to DVB error protection), Encrypt (eg AACS as content protection for Blu-ray Disc) or to reduce the amount of data (compression method, for example, MP3 for audio). The decoder (decoder) retrieves the encoder’s original input information from the encoded data stream.

codecs and containers

2. CODECS FOR COMPRESSING DATA STREAMS

No medium of storage or transmission is infinitely large. Therefore, the available resources must be budgeted. Therefore, it is very important to reduce the amount of data that must be transmitted or stored. There are different compression methods adapted to the information to be compressed.

Codecs and containers
Each compression method has its advantages and disadvantages. There is a trade-off between compression factor (= ratio of source file size to target file size), compression quality (= lossless / lossy -> type and number of artifacts), speed, usability , decoder distribution and finally also costs. Compression processes and their implementation in the market play an extremely important economic role, since compression algorithms can be patented and their use must be compensated by the payment of licenses by device manufacturers or software users. Some kind of content encryption can also be achieved through proprietary and undisclosed compression algorithms, allowing distribution control.

Operating principle

Compressing a digital signal means that parts of the information must be suppressed without changing the content of the information. These ‘superfluous’ data, the so-called redundancies and irrelevancies are components of information, for example an image, that are present several times (redundant) or cannot be perceived by humans (irrelevant). Furthermore, redundancies can also occur in the digital data describing the image, for example. All compression methods are based on the principle of eliminating redundant information. In most compression processes, several different algorithms are used one after the other to eliminate redundancies in content and data. Algorithms that discover and avoid redundancies on a purely mathematical basis usually work lossless without loss), that is, no information is lost. After compression and subsequent decompression the information then corresponds 1: 1 to the original. Compression algorithms that evaluate information components based on physiological models (for example, MP3) for their importance and then discard unimportant information (irrelevance reduction), function lossy with loss), since information it is lost during compression.

3. FILES WITH COMPRESSED CONTENT

If the data is compressed through a certain process, it must be put into a format in which it can be distributed. These can be streams that are streamed like DVB, for example, or files that are stored on a storage medium. The compressed “raw data” thus creates a structure that allows the data as in a container (transport container). The way this container or container format is made depends on the transmission medium, the operating system and the specific application.

II. CONTAINER FORMATS

Container files are file structures that simplify external (multimedia) data and allow exchange, even across platform boundaries. Container formats describe how this user data is stored (not how it is encoded!). In principle, cabinet files can contain all kinds of data, but they are generally restricted to specific data. Specialized in data types. For example, PDF files are ideal for reproducing documents that are true to the original, consisting of font information and raster or vector graphics, whereas an AVI file generally contains movie and sound information.

Container formats for multimedia applications always use already encoded data streams, i.e. compressed


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Differences between Codec and container

Confusion between codec and container is very common. And even more if we add file extensions, such as .flv, .mp3, .mp4, etc.

codecs and containers

What is a codec?

The codec term comes from the concatenation of the initials of two words: encoder and decoder. Strictly speaking, a codec is a specification on how to code a type of information and then be able to decode it. For example, a codec determines how video and audio information is compressed and decompressed. Remember that compression is a specific case of coding in which space is reduced, eliminating redundant or low perceptual impact information.

Coding means something like compressing. That is, it seeks to reduce the amount of bits that an audio file occupies. The idea is to reduce the amount of bits while maintaining the highest possible audio quality.

Obviously, once the files have been compressed, they need the counterpart, which becomes the decoder that is the one that can interpret and reconvert in sound what was written in the file.

Then, a codec is one that serves to compress and decompress (encode and decode) an audio or video file.

What is a container?

Within the multimedia scope, a container is a specification on how different types of encoded multimedia content are sorted within a file. These different contents are usually, mainly, video, audio and text.

Consider the case of a movie in digital format. This movie is in a file. When we open that file, a player runs and we can enjoy the movie. Notice that a movie has video, has audio, subtitles, information about its author, information about its duration, etc. For the convenience of the user, all these elements are grouped into a single file. The order in which they are saved in that file is the container specification.

Connection

The video information that is inside a container is usually compressed, that is, it usually follows the specification of a specific codec. The same goes for audio information. The confusion appears when there are containers and codecs with very similar or even equal names.

The most popular

The most popular video codecs currently are Theora, VP8, MPEG-2, h.264, Xvid and Divx. Regarding audio codecs: AAC, FLAC, MP3, Vorbis (ogg) and WMA are the most abundant.

The most commonly used containers are AVI, Divx, Matroska, Flash video, MP4, MPEG, Ogg, Quicktime, MXF and WebM. Since the containers are intrinsically linked to the files, each of them also specifies one or several possible file extensions:

AVI -> .avi
Divx -> .divx
Matroska -> .mkv, .mk3d, .mka, .mks
Flash video -> .flv, .f4v
MP4 -> .mp4
MPEG -> .mpg, .mpeg
Ogg -> .ogg
Quicktime -> .mov, .qt
MXF -> .mxf
WebM -> .webm

And to open a container and see its contents?

The containers are interpreted through a media player application, such as Windows Media Player, Quicktime (application with the same name as a container), VLC, Plex, RealPlayer or Winamp, to name a few .

A good option is the VLC player, as it offers compatibility with all formats under almost any platform and even allows you to play incomplete files (useful feature if you want to start playing an audiovisual content that has not yet finished downloading, provided that this be progressive). In addition, it is freely distributed.