Compression formats and codecs for audio and video.


Free Download Mp4Gain
picture

From mp3 format to H.265 and VP9 codecs, these are the most widely used audio and video compression formats.

codecs

The videos we watch on YouTube, the music we listen to through Spotify and iTunes, the photos taken with the digital camera. The multimedia content that we process daily is the result of a compression process that allows you to enjoy them without major headaches. Due to the weight of the files, the need arose to reduce their size so that they take up less disk space and can be exchanged faster on the network.

Over the years, two different compression techniques have been developed: one involving loss of information and one involving loss of information. This has led to the emergence of various codecs and formats, such as MPEG, MP3, MPEG-H and many others.

codecs

Without loss and without loss

Media compression can occur in two ways: lossy (translated with “lossless”) and lossless (translated with “lossless”). In the first case, encoding audio and video files involves loss of some information that is considered “useless” or non-essential. The files obtained through this process will have a lower quality than the original files, but the human eye or ear should not notice major differences. In an mp3 file, for example, the ultrasound is removed; In the case of a Jpeg file, groups of adjacent pixels and the like can be chromatically grouped into larger blocks and lose a certain amount of detail depending on the amount of compression performed.

Comparison of MPEG formats

Losses without compression ensure that no loss of information is lost in the coding process. This is possible by using certain algorithms that eliminate redundant information by replacing it with some sort of “placeholder”. For example, the LLE (Run Length Encoding) algorithm identifies the usual repetition in the bitstream files and replaces them with a single symbol and the number of repetitions.

Video compression formats

DivX, Xvid. They belong to one of the first generations of the era of online multimedia content. In essence, these are two “twin” codecs: DivX was born as the proprietary format of the homonymous software house; XviD as a free and open source alternative with similar, if not identical, functionalities. They achieved great success and widespread popularity thanks to their ability to compress long clips (even full-length movies) into small files while maintaining a good quality level.

Comparing formats to the Internet.

– Google code. Google is increasingly engaged in the multimedia sector and is increasingly committed to investing in technologies that can minimize the impact on users’ bandwidth consumption. An example of this is the set of codecs and video compression formats developed in recent years. The latest addition is the VP9 codec, which is compliant with the 4K standard and is capable of guaranteeing a high reproduction quality associated with small files.

H.264. Among the most widely used video compression formats to create and distribute movies and videos of all sizes and resolutions, the H.264 codec (also known as MPEG-4 Part 10 AVC) is also known to be one of the Blue Disks-ray encoding standards . It is capable of guaranteeing excellent video quality at low bitrate levels (ie smaller files) and is widely used by web video streaming services (Vimeo, iTunes) and video playback software (Adobe Flashplayer and Microsoft Silverlight)

H.265. The inheritance of the H.264 codec (officially released only in April 2013) theoretically guarantees a double compression compared to its predecessor: therefore, for the same video quality, a video file compressed with the H.265 codec will weigh approximately half of that movie compressed with the H.264 codec. It is compatible with the 8K standard, which guarantees viewing videos with a resolution up to 8,192×4,320 pixels


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Types of audio codecs

Types of audio codecs:

-DST (Direct Stream Transfer)
-FLAC (Free Lossless Audio Codec)
-LA (Lossless Audio)
-LPAC (Lossless Predictive Audio Codec)
-LTAC (Lossless Transform Audio Codec)
-MLP (Meridial Lossless Packing)
-Monkey’s Audio (APE)

There is a huge amount of audio formats. The most common are formats such as MP3 (MPEG-2 Audio Layer III) and WAV. Usually, the type of format corresponds to the file extension (the letters of the file name after the period, for example .mp3, .wav, .ogg, .wma).

A codec is an algorithm for encoding and compressing data in an audio format. Some file types are assigned a specific codec. For example, the MP3 format always uses the MPEG Layer-3 codec, while the MP4 format can use a range of different codecs.

Many times, the notions of codec and format are used as interchangeable. Especially when a format always uses a single codec. However, it is necessary to understand the difference between a format and a codec. In simple terms, a format can be compared to a container in which a sound or a video signal that uses a particular codec can be stored.

Some formats, such as MP4 or FLV, can store both audio and video sequences.

In the general scope of codecs (for any type of data), we can classify them as follows, depending on whether the original signal can be recovered or not after coding:

With losses (lossy). In this type of codecs, after coding, it is impossible to recover the original signal. Most codecs manage to reduce the size of the bit stream to be transmitted or stored, due to the loss of information in said bit stream. Normally this loss does not produce a large decrease in the quality of the audio perceived by the end user, and if the decrease in quality is appreciable, it is that a lot of information has had to be lost to achieve a small bit stream size, that in many occasions it is necessary, especially in the transmission of audio at a distance (telephony, digital video, television …), although this is a compromise solution between the different codecs, an issue that we will discuss in the comparative section between codecs .
Lossless (loseless). In this type of codecs, after coding, the original signal can be recovered. These types of codecs are the least common. They are usually common especially in high quality audio applications, where the size of the bit stream or stream is not decisive. If the files are to be treated later, it is not advisable to perform loss coding, since one encoding with losses after another would significantly damage the audio quality.

There is another classification of codecs, depending on the type of algorithm used in the coding:

Waveform codecs:

used for all types of digital signals. The waveform of the encoded signal must be as similar to that of the original signal
Vocoders or source codecs: used only for coding voice signals. The original signal is analyzed and synthesized to give rise to the encoded signal
Hybrids: combine characteristics of the two previous types

The waveform codecs seek to produce a reconstructed signal of the signal to be encoded, whose waveform is as similar to that of the signal to be encoded. These codecs work without knowing how the signal to be encoded was generated, which implies that in theory its operation does not depend on the signal and can work well with all types of signals, even if they are not audio.

Hybrid Codecs

These types of codecs are a mix between waveform and source. Within the hybrid codecs, the most used are the codecs in the time domain of Analysis-by-Síntesi