Your shopping cart

What are video codecs
Reading time: 10 minutes - August 07, 2024 - by Markus Igel

Camera Basics #24 - What are video codecs?

This time, the topic of video codecs is aimed at videographers, or those who want to become one. Photographers are less likely to be able to use them, but extra knowledge rarely hurts. We explain how video codecs work and what they are used for. Video codecs are very complex, which is why we will go into many facets here and also how you can improve or worsen your video editing performance by using different codecs.

We look forward to your feedback on this article! Just send us an e-mail to [s-t-r-o-n-g]content@fotokoch.gr[e-n-d-s-t-r-o-n-g]

What is a video codec?

A video codec is a compression and decompression algorithm for audio and video data. The video codec is used to reduce data volumes, for example to save a longer video recording on the storage space of your storage medium and to make the best possible use of the available storage space. The various methods rely on compression, which should essentially not affect the quality. This is achieved by removing redundant information and compressing existing information.

Each video codec contains a coder and a decoder, with the decoder being used during playback. If the respective codec is very highly compressed, i.e. many individual details are retained, but the video file is still small, this means that your computer needs a lot of processing power to enable smooth playback of the file. This can lead to problems, especially in editing, which is why we will also address corresponding solutions later on.

The codec therefore describes the efficiency of the compression, the compression then behaves differently, which we will explain below.

What known video codecs are there?

The following three video codecs are the most common video codecs used in videography:

  • H.264 / AVC
  • H.265 / HEVC
  • Apple ProRes

The compression of video files

Now that we have clarified what a codec does and which ones there are, let's look at the level of compression within the codec. In the following, we will call the individual images of a video frames, because a video has 24fps, i.e. 24 individual images per second, but since the term comes from the English language, we will now explain it correctly for the sake of form and according to the industry standard.

GOP (Group of Pictures) / Long GOP (Long Group of Pictures)

In GOP compression, several frames are taken together as a group. There are different types of frames within a GOP: I-Frames (Intra-Frames), P-Frames (Predictive Frames) and B-Frames (Bi-directional Predictive Frames).

Features

  • Efficient compression with lower data rate and file size compared to All-I, as redundancies between the frames are utilized.
  • More complex decompression, as several other frames have to be decoded to play back a B or P frame.
  • Can lead to loss of picture quality if the GOP is too large or too many B and P frames are used.

Use cases

  • Streaming and broadcasting where bandwidth is limited.
  • Scenarios where file size and transmission efficiency are more important than ease of editing.
Video codec comparison All-Intra vs. Gop

All-I (Intra-Frame) / All-Intra

With All-I compression, each frame of a video is compressed and saved independently of the other frames. This means that each frame is treated as a complete image.

Features

  • High image quality, as each frame is available in full quality.
  • Higher data rate and larger file size compared to GOP, as more data has to be stored.
  • Ideal for video editing and post-production because each individual frame can be accessed directly.

Use cases

  • Video editing and post-production.
  • Scenarios where high image quality and editability are more important than file size.

HLG (Hybrid Log Gamma)

Hybrid Log Gamma is a type of HDR (High Dynamic Range) developed by the BBC and NHK.

Features

  • Enables the recording of HDR content that looks good on both SDR (Standard Dynamic Range) displays and HDR displays.
  • Often used in combination with other compression strategies.

Use cases

Particularly useful for broadcast and live transmissions where seamless compatibility with different display types is required.

RAW

RAW formats store the image data directly from the camera sensor in unprocessed form. You may be familiar with this from photography.

Features

  • Offers maximum flexibility in post-processing.
  • Very large file sizes, as only minimal compression is applied.

Use cases

Professional film and photo productions where maximum quality and flexibility in post-production are required.

ProRes

ProRes is a codec developed by Apple. It offers high quality and efficiency in the editing and playback of video content and is often used in professional film and TV productions. It is important to know that Apple owns a patent on the hardware-side decoding, which is why it works much more efficiently on IOS systems than on a Windows system.

Features

  • ProRes offers excellent image quality at relatively moderate data rates, which makes it ideal for post-production.
  • Different variants offer different degrees of compression and quality levels that are adapted to different production requirements.
  • Sub-compression types: 4:2:2, 4:4:4:4 (4:4:4), LT, HQ, Proxy and RAW

Use cases

  • Due to its high quality and ease of editing, ProRes is often used in professional post-production workflows.
  • ProRes is widely used in film and TV production because of its efficiency and quality.
  • ProRes is often used in broadcast production because it offers high image quality at moderate file sizes.
  • ProRes 4:4:4:4 and ProRes RAW are particularly useful for visual effects and color grading as they offer high color depth and flexibility.

Color sampling / chroma subsampling

The human eye reacts better or more sensitively to differences in brightness (luminance) than to colors (chrominance). This is also the reason why many black and white images appear sharper to the human eye than a color image. We also go into this in our camera sensors article.

So what is behind the three numbers separated by a colon? You are probably already familiar with this information: 4:2:0 or 4:2:2, they are quite common in the various camera menus. They indicate how brightness and color information is weighted over two rows and often four columns. To explain the whole thing better, we will now transfer the information to A:B:C and try to make it easier to understand.

Important for understanding: Chroma subsampling always combines 2 rows of pixels that lie below each other

Chroma series

Our A, which is usually marked with a 4. Describes 4 pixels in the horizontal, which form a row, of which 2 fields each have the same value.

Number of color information

B describes how much color information the horizontal chroma row is composed of, so here a 4:4:X means that each pixel is assigned a color value, so if it has a 4:2:X, then only half of the color information per pixel will be stored.

Where our C describes the second row and how the colors or rather the chrominance behaves, this is 0, it copies the value of the row above.

Color sampling / chroma subsampling

Quick explanation

  • 4:4:4 = 4 pixels of brightness information, 4 pixels with their own color information (1 row) and 4 pixels with their own color information (2 rows); a lot of computing power required

  • 4:2:2 = 4 pixels of brightness information, 2 pixels with their own color information (1 row) and 2 pixels with their own color information (2 rows); a lot of computing power required

  • 4:2:0 = 4 pixels brightness information, 2 pixels with own color information (1 row), 0 pixels own information; here the information of the row above is taken over; less computing power required

The whole thing can be supported by GPU acceleration and displayed better.

Which one do I use for what?

As a rule, you can hardly see the differences, but if you are working with a chromakey, i.e. the typical green or blue backgrounds, then it depends on every color information, otherwise the mask could become unclean, here values above 4:2:2 are particularly suitable.

Reduction of the storage requirement

Anwendung

A:B:C-Abtastung

Memory requirement in %

Professionelle Videoaufnahme

4:4:4

100

NTSC

4:2:2

66,6

BluRay, JPEG

4:2:0

50

NTSC-DV

4:1:1

50

PAL I

4:1:0

41,6

Container / Dateiformat

Simply put, a container is the file format. Video data, audio data, subtitles and metadata are combined in these files. Well-known examples of containers: MP4, MKV, AVI, MOV

Increase PC video editing performance with proxies

If you don't have the computing power to use the playback of video recordings in 4K with a computationally intensive video codec, you can help yourself out here with proxies, which are lower-resolution video files that are only Full HD, for example, and can then be exchanged, thus reducing time and costs.

However, not many camera manufacturers offer this function natively, which is why you should pay close attention to the description or firmware updates of the cameras.

Video settings for PCs with low performance

We have already mentioned that proxies are a method that you can use to edit a video with a weaker PC and only have to swap the files with the final resolution at the end.

But what can you do if you don't have any proxies available? Then you can improve video editing performance with the following settings:

  1. Generate virtual proxies from your footage beforehand
  2. If you can do without the quality, reducing the resolution is a first option.
  3. Switch the camera from 10 bit to 8 bit.
  4. If you are working on a Mac, it is a good idea to work with ProRes or h.264 instead of h.265.
  5. If possible, use All-Intra or Raw and not LongGop/Gop; which comes at the expense of data volume
  6. Use 4:2:0 for color sampling if possible
  7. Does every scene need the option of slow motion? Otherwise do without the fps and reduce them to 30p or 24p
  8. Keep the clips as short as possible so that the preview does not have to render forever or uses less power

Conclusion

It is very useful to familiarize yourself with the various video codecs and how they work, as this can help you to assess what you need for your next shoot. Or whether your own PC is capable of processing the data.

A little task for you:

Take different clips with your camera in which you test the settings and look at the video material and also test in your video editing program how they are played back, so you can see what you can use perfectly with your setup!

Show us your pictures on Instagram and/or Facebook and tag us @fotokochde! We look forward to seeing your results!


Thank you for reading this article. If you're interested in other photography basics, then take a look at the other camera basics

Get to know your camera ? Discover the fun of photography

Have you bought a camera and are taking your first steps in photography? You're missing out on a lot of potential with automatic mode! Photography is only really fun when you understand your camera and know exactly which settings to use to get the photo you want. Get to know the importance of the functions and ignite your enthusiasm for photography

To all camera basics

More about sports photography

Camera Basic #23 - What is dynamic range?

Modern camera sensors contain a lot of image information, which can be used to your advantage when shooting in RAW format. The extent to which this image information can be exploited depends entirely on the ISO you use, as this greatly changes the sensitivity of the sensor.

Inform now

Camera Basics #22 - What are chromatic aberrations?

We have already written so many technical blog articles about the basics of photography and videography, but we have not yet talked about one of the most well-known optical errors (aberrations), chromatic aberrations.

Read now

Camera Basics #21: Getting started with sports photography

We confidently say that this article is one of the best ever for sports photography. In the guide, we also try to cover the various equipment decisions and how to find the perfect settings.

Read now

Camera Basic #03 - What is ISO sensitivity?

ISO is one of the core elements of photography. If you understand ISO, you can work much better with the light in many situations and can also use ISO noise as a stylistic device for your photos.

Read now

Camera Basic #20 - Open Gate and its advantages for social media explained

Social media has become indispensable and the technology continues to develop. Open gate technology offers the possibility of reading the full sensor for video, but what does that mean?

Read now

Camera Basics #19: Tilt shift lenses and the effect explained

The tilt shift effect is certainly an old shoe for many photographers, but this effect is very interesting to consider because it can be found in many facets of photography, so the use of tilt shift optics is not only at home in architectural photography.

Read now

Camera Basics #18: Megapixel explained

Everyone needs 100 megapixels! Or do they? Many photographers or smartphone owners always have discussions about megapixels. That's why we explain today what consequences megapixels have!

Read now

Camera Basics #17: Colorgrading with LUTs - 3D Luts

Almost nothing is as controversial as the use of color, the choice of the right colors is a major factor in the mood and feel of an image. Purists swear by the colors that come directly from the camera, and others edit the colors in post-processing down to the smallest detail.

Read now

Interesting campaigns

New bargains every day

Look forward to new top offers every day that are only valid for a short time!

Secure deals

Newsletter

Latest offers, exclusive benefits, news, events, info more

Subscribe now

Canon bonus promotion

When you buy a Canon EOS R system camera, you are guaranteed to receive 100€ on top of our normal purchase price for your used camera.

Save now

Demo equipment exhibits

Check out our demo equipment showrooms and save!

Save now

Also interesting

Canon 28-70mm f/2.8 IS STM - Not premium, but still good?

There are already quite a few standard zooms on the market - however, almost all of them have a continuous aperture of f/2.8 in the manufacturers' high-end lines, which also puts these lenses in the "premium" category in terms of price. With the new 28-70mm f/2.8 IS STM, Canon wants to change this. Find out how the lens compares to the alternatives in this blog post with video.

watch now!

Guide to waterproof cameras

One of the most difficult questions we are asked from time to time in our store in Düsseldorf is certainly the question of a waterproof camera. Because water is an element that electronics absolutely hate.

read now

Canon EOS C80 - a new highlight in the world of cinema?

After Canon's announcement of the C400 a few months ago, probably nobody thought that something new would come along. That's why this really surprised us! Let's take a look at the new Canon EOS C80 together!

watch now!

Canon bonus promotion

When you buy a Canon EOS R system camera, you are guaranteed to receive 100€ on top of our normal purchase price for your used camera.

Save now