Codecs: The Building Blocks of Digital Media


Free Download Mp4Gain
picture

Codecs: The Building Blocks of Digital Media

codecs
codecs
Codecs
Codecs

Codecs are the building blocks of digital media. They are software or hardware that encode and decode digital data streams. This means that they can take a raw digital signal, such as a video or audio recording, and compress it into a smaller file size, or they can take a compressed file and expand it back into its original form.

Codecs are essential for the transmission, storage, and playback of digital media. They are used in a wide variety of applications, including streaming video, video conferencing, and digital broadcasting.

How Codecs Work

Codecs work by using a variety of techniques to reduce the size of digital data streams. These techniques include:

Entropy coding: This technique takes advantage of the fact that some parts of a digital signal are more likely to occur than others. By assigning shorter codes to the more likely parts of the signal, entropy coding can significantly reduce the size of the file.
Transform coding: This technique breaks the digital signal down into smaller components, and then compresses each component individually. This can be more efficient than entropy coding, but it is also more complex.
Prediction: This technique uses the past values of a signal to predict future values. By predicting future values, the codec can reduce the amount of data that needs to be stored.
**

Types of Codecs

There are two main types of codecs: lossy and lossless. Lossy codecs reduce the size of a digital data stream by discarding some of the data. This can result in a loss of quality, but it also allows for much smaller file sizes. Lossless codecs do not discard any data, so they do not suffer from any loss of quality. However, they also produce larger file sizes.

Some of the most common lossy codecs include:

MPEG-1: This codec is used for a variety of applications, including video CDs and digital television.
MPEG-2: This codec is used for DVD-Video and high-definition television.
H.264: This codec is the most widely used codec for streaming video and online video.
Some of the most common lossless codecs include:

FLAC: This codec is used for lossless audio compression.
WAV: This codec is a lossless audio format that is used by many professional audio applications.
ALAC: This codec is a lossless audio format that is used by Apple’s iTunes and iPod products.
**

Conclusion

Codecs are essential for the transmission, storage, and playback of digital media. They are used in a wide variety of applications, and they have made it possible to enjoy digital media on a variety of devices.

Final Words about Codecs

Codecs are a complex topic, but they are essential for understanding how digital media works. By understanding how codecs work, you can make better decisions about the quality and size of your digital media files.

I hope this article has given you a better understanding of codecs.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

What does a codec indicate?

The six most important specifications to know about a codec are: codec type, resolution, compression, GOP, bits and color sampling.

Type of codec:

here come the little names of maras. H.264, MPEG-4, MPEG-2, H.265 … will give us an estimated indication of the efficiency of the codec, although as I indicated above, be careful because it can be misleading. Nothing like comparing the material directly. Within each one, the rest of the specifications are defined below, there being generally different variants in each.

Resolution:

number of vertical and horizontal lines. Mind you, it is another one of those deceptive factors, the real resolution that a camera gives has little to do with the resolution of the codec, nor does any of this have to do with the sharpness. We will expand this in another chapter.

Compression:

In Mbps or Mbit / s, it indicates the information contained per second

GOP:

Group of Pictures, specifies the order in which images are stored. It can be Intra, where each image is independent, or employ various methods where an independent reference image is used and others are stored next to it containing information regarding movement compensation. That is, it stores an image, and the differences in a certain group of the following, until you have a complete image again. Example: GOP12, if we record at 24fps, it will contain two complete images at half-second intervals, and 11 will start from it, only saving the differences from the whole image.

Bit Depth:

the more bits, the more information we will have available, allowing us a more aggressive grading and thus avoiding banding.

Color sampling:

Broadly speaking, it indicates the way in which the chrominance is compressed. We will make a chapter dedicated to this, since it is a complex and important factor.

Codec Standards

Each codec has a series of variants within it, and sometimes these variants are used without specific names or certain new variants. There are some codecs however whose specifications are already fully predefined. For example, there are the well-known Apple Prores, used in assembly regardless of the codec with which we record (some professional cameras and external recorders have it incorporated), or the most used in AVCHD and XAVC S consumer cameras.

However, we must bear in mind that even with a predefined specification there can be huge differences from camera to camera. And there are many other factors to consider, since the internal processing of the video will be crucial for the subsequent compression process.

The (little) importance of bitrate

Bitrate defines the data that will be saved per unit of time, usually expressed in Mbps (megabits per second, not to be confused with megabytes). It may seem a priori that a greater amount of data per second means higher quality, but here comes the codec efficiency factor, and the truth is that we must compare the material directly (and without extra compression from YouTube or Vimeo) to Really see the differences.

An example can be seen in the Panasonic GH4. This camera has many bitrates to which we can record and also several resolutions. Something curious, is that if we record at Full HD, we can use a bitrate of 200 Mbps, while if we record in 4k, the bitrate is 100 Mbps. This can lead us to think that if the material is going to be broadcast in Full HD, it will be better to use this resolution and the higher bitrate. However, the reality is that it is better to rescale the 4K and use its lower bitrate: we will get better quality. It can be easily observed even with the compression of Vimeo in the video by Andrew Reid.

Another example is the Canon C100, a camera with very striking specifications and really good results. It uses the AVCHD codec (MPEG-4 AVC 25Mbps 4: 2: 0), which has never had a good reputation. Its quality is such that the differences with its older sister the C300 (MPEG-4 50Mbps and 4: 2: 2 color sampling) are negligible. Even using an external recorder like the Ninja Atomos, the differences are almost nil, even if it uses Prores and the output is 4: 2: 2. What’s more, broadcasting in Full HD its sharpness is superior to a GH4 with 4K rescaling. It is the magic of video.