What is a video codec?
First off, why do we need video codecs at all? The main thing they’re used for is to compress videos down to a manageable size. Let’s do some math. Each pixel in an uncompressed video is roughly 4 bytes. A 1080p video has 8294400 bytes in it, or 8.2944 megabytes. If we take the typical frame rate for film is 24 fps, which means that each second of film would be 199065600 bytes large, or 199 megabytes. A minute of 1080p video would need 11.943 gigabytes of storage. At this rate, a 2-hour movie would take 1.43 terabytes of storage.
Now, you probably know that pretty much no video online is that large. That’s because there is simply no network bandwidth that can actually keep up with that on any kind of large scale. The network would need to be able to transmit at 199 megabytes per second, not to mention overhead and audio.
This is where video codecs come in. Video codecs compress the video data down and encode it into a format that can be decoded and played back or edited. However, not every codec does so in the same way and don’t always end up in the same quality. Most video codecs are lossy. That means that the decoded video doesn’t precisely match the source, meaning that you lose detail and fidelity. For an idea on how this might look, go to any YouTube video and set the resolution to lower than the base video.
While there are some lossless codecs, they tend to be massive. A simple guideline is that anything that makes the encoded video look more like the original, uncompressed video will always make the file larger as well. It’s always a tradeoff of size versus quality. There are certain moments and art styles where a lower quality is acceptable, but if you have extremely fine details, you’ll need to use a larger codec to avoid loss of quality.
Why are video codecs important?
If you’ve ever watched a video on your computer in any format, then you’ve used a codec whether you know it or not. Most websites and files automatically select and use a codec that everybody’s computer supports. You might be wondering: if codecs are automatically selected, why do I need to learn about them? Because you could be losing a ton of video quality without even knowing it and knowing about. Knowing about all the different codecs can let you use video players that use codecs that maximize quality.
What exactly do codecs affect?
There are typically five things that a video codec will change to make the file size smaller while also affecting the quality of the picture.
- Color Depth: Color depth refers to the number of bits that are used to indicate the color of a single pixel. The more bits per pixel there are, the clearer the color is. The less there are, the more washed out it will appear until the detail is entirely gone. Color depths below 10 bits per pixel leads to banding, which means that gradients cannot be represented without visible separation of the colors. Depending on the codec, higher color depths

Notice the color banding due to a low color depth
- Frame rate. Videos are a series of images, or frames, being played in rapid succession. The colloquial way of referring to the frame rate is FPS, or “Frames Per Second”. Generally, the higher the frame rate, the smoother and more realistic the motion will appear. However, there is a point of diminishing returns. Generally, 60 frames per second is just about the point where the diminishing returns hit, and the file size will bloat with very little return. Feature films are generally 24 frames per second, while standard television is about 30 frames per second. The higher the frame rate there is in a video, the larger the video size will end up being.
- Motion. Compression of videos work by comparing each frame to each other, finding where they differ, and constructing records containing information to update the previous frame to make it look similar to the following frame. In essence, by approximating each frame’s appearance to the following one, it will avoid the introduction of artifacts in the video. Depending on how much motion there is in a video and what codec you use, the larger the output will be.
- Noise. Noise refers to how much tiny, pixel interference there is with the picture. Examples include film grain effects or dust, or other visual effects. The more noise there is, the more difficult compression gets, resulting in more lost quality as the codec constantly struggles with preserving details. The more noise there is in the picture, the more complex the process the codec must undergo to compress the image and the less success it will have in its endeavors.

The creases and crinkles add noise to the image
- Resolution. Resolution refers to how many pixels are in the video. Generally, they are referred to by how many pixels a picture has vertically. For example, a 1920×1080 resolution is called 1080p and 2560×1440 is called 1440p. Resolutions higher than that are colloquially referred to by rounding up the horizontal pixels to the closest thousand. For example, 4K video is referring to 3840×2160 pixels. The higher the resolution the video is, the more accurately it will be able to portray the original video, but the bigger the final size of the video will be.
The most popular and widely used codecs
Here’s a list of codecs that are used by a vast majority of videos both online and offline.
AV1:
AV1 is designed by the “Alliance for Open Media”, which is made specifically for internet video. It has a higher data compression rate than VP9 and H.265/HEVC and has roughly 50% higher rates than AVC. It’s also fully royalty free. It offers a decent amount of customization and profiles, with a ton of options for encoders to tune.
However, the primary drawback at the moment is that it’s extremely new and support is still being integrated into most browser. Additionally, encoders and decoders are still being optimized for performance and being in development, meaning that encoding a video like this takes a ton of time. This is not going to be a newbie’s first choice of codec.
AVC:
AVC, short for “Advanced Video Coding” and also known as H.264, is widely used by all sorts of media, like broadcasting TV, videoconferences, and blu-ray discs. It is an extremely flexible codec, with a number of profiles that are all tweaked to suit their respective media. For instance, Main Profile is used for standard definition digital TV and High Profile is used for blu-ray discs, while the Constrained Baseline Profile is used for videoconferencing and mobile scenarios. Most of the profiles use 8-bit color components while the high-10 profile uses 10-bit color. Most web browsers are compatible with AVC and all video conferencing programs support it.
However, AVC is a proprietary format. That means that multiple parties have patented it and it is very much not free to use. Commercial use of AVC media requires a license, though there is a version that doesn’t require license fees for streaming internet videos so long as the video is free for everybody. Choosing AVC without being cognizant of all the licenses might add a ton of extra costs.
H.263:
This codec was designed for low-bandwidth situations and was never used widely on the web. It was used as the basis for flash video, but no major browser ever supported it natively by default. This codec has been superseded by H.264/AVC and you should generally avoid using it. The only real reason to use it these days if you require support on extremely old devices.
H.265:
H.264, also called the High Efficiency Video Coding or HEVC codec is an attempt to improve on H.264 by designing it to take advantage of modern processors and supporting efficient encoding and decoding of extremely high-resolution videos (including 8k video). Theoretically, this codec can compress files to half the size of AVC/H.264 but with comparable quality. There’s a lot of things it does differently on top of that, specifically with how it handles colors, but it’s too technically complex to summarize.
Just like AVC, this is a proprietary format and is covered by many patents. Make sure to educate yourself to avoid unforeseen fees.
MP4V-ES
Quite frankly, nobody really uses this codec. It has some usage on mobile by letting it stream MPEG-4 audio and video over a mobile connection, but it isn’t supported in any meaningful way by any browser and its quite obsolete. Avoid this codec.
MPEG-1 Part 2
This codec is also pretty much obsolete, albeit slightly less than MP4V-ES. It is compatible with a large variety of software and hardware devices because any MPEG-2 decoder can play its videos. However, very few browsers support MPEG-1, which means you shouldn’t use this for any kind of website or web applications.
MPEG-2 Part 2
MPEG-2 Part 2, also known as H.242, is very similar to MPEG-2, except that it supports higher bit rates and enhanced encoding techniques, making it pretty much strictly better. It is widely used for standard definition television and has several profiles, each of which also has four different levels that let you change factors such as frame rate, resolution, bit rate, etc. For example, television in North America uses the Main Profile at High Level, allowing 4:2:0 chroma subsampling and 1080p30fps or 720p60fps. However, very few web browsers support this, making it a poor choice for web usage just like its predecessor.
Theora
Theora is an open source and free codec that can be used without royalties or licensing, and it has comparable quality and compression rates to MPEG-4 part 2 and AVC. It also has low CPU impact and it being completely free makes it a popular choice for many web projects. However, despite all that, it never hit the main market, and support is actively being removed from browsers, as the only format it could be used in an OGG file type. Because support is actively being removed, it is no longer recommended for any kind of usage.
VP8
The Video Processor 8 codec is an open and royalty-free video format that has promised not to enforce any relevant patents. In terms of quality, it is comparable to AVC. There is also good browser support for VP8 in HTML content, especially within WebM files., This makes it a good candidate for your content, although VP9 is a better choice for you. While browsers are required to support VP8, but they don’t all also support audio and video elements.
VP9
VP9, just like its predecessor, is also entirely open and royalty-free, with it now being superior to that of AVC, performing faster while also retaining more quality. It supports HDR and deeper colors, and there is a ton of freedom for selecting frame rates, aspect ratios, and frame sizes. It’s widely supported by browsers and is mandated by WebM. However, only the most recent versions of browsers support it, meaning that older mobile devices will need to fall back on Safari support. This is effectively one of the best license free open codecs out there.
How do I use these codecs?
First, you need to understand that with the way codecs are designed, average users generally don’t need to do anything special. The most widely used codecs are automatically installed on each person’s computer so they can browse a vast majority of content online without having to think twice about it. You won’t need to install any kind of codec to browse Youtube or Netflix. Those use H.264, VP9, AV1, and HEVC, things that come default with most operating systems.
However, if you’re a content creator or trying to play a less common file type that’s less lossy, you will have to familiarize yourselves with it.
If you’re a content creator trying to create videos to upload to online social media, you will have to select what codec to use. Speaking from experience, if you try to maximize quality, you can get files that are multiple hundreds of gigabytes in size depending on the length of the video. You will also have to select file types to use with each codec, each of which can also affect file size and quality. There are, quite frankly, far too many different options to choose from, but each codec does apply different characteristics to videos even if they share the same file format.
Codec Packs
Codec Packs are collections of audio and video codecs bundled together for your convenience. Audio packs are very similar to video codecs in that they compress sound and also come in various flavors of quality. These packs are usually put together by a certain community and may be specialized for certain formats. For example, the anime community has a go-to codec pack that will include all the obscure formats that the community tends to use to watch lossless anime. Here are 3 packs that should cover your needs:
- K-Lite Codec Pack – This is the most popular pack on the internet. It is regularly updated and comes in different versions depending on your needs. This covers so many formats that unless you’re diving deep into enthusiast territory, you’re covered by this pack. You can download it by clicking here.
- Shark007’s Codecs – This codec pack offers a ton of customization and an interface to help you install and configure your needs. This option is great if you want a sleek, customizable codec solution. You can download it by clicking here.
Best Video Players for Maximum Quality
If you’re trying to download and play less common file types that boast better quality and audio quality, you’re going to have to use special video players. VLC is one of the most widely used video players around but can’t play some of the less used file formats around. However, it is extremely versatile due to its open-source nature and can do pretty much everything you need it to so long as it supports those file types. However, there are two file players that I recommend for the more specialized file types. KMPlayer and PotPlayer.
These two video players are both developed by the same developer. However, KMPlayer was sold off to Kakao by the original developer and he moved on to develop Potplayer as a successor. Both have similar strengths, but KMPlayer has been co-opted by the company to play a ton of ads.

You can download KMPlayer by clicking here and PotPlayer by clicking here.
They can both play pretty much whatever video you throw at it due to its OpenCodec support and uses way less system resources than VLC. All that matters is that your computer has the codec installed and it can access the video. It also has a bunch of features that VLC doesn’t have, such as the ability to autoplay every video in the same folder as a playlist and hardware acceleration which lets it play high-resolution videos smoothly. It also improves pretty much everything VLC has as well. For instance, in VLC, if you resync audio or subtitles, it will forcefully pause the video or mute the audio until they are properly aligned with one another, while it’s perfectly seamless in PotPlayer. Another thing it does better is frame by framing. In VLC, it’s extremely bugged, tends to skip frames, and can’t frame backwards, but PotPlayer can do both.
However, it does tend to attempt to phone home to Korea when it starts, but it’s a fairly simple matter to block it and a small price to pay for all the different features it offers.
Future of Codecs
There is a ton to know about video codecs, and we hope that this article helps you. We haven’t talked about the full breadth of the subject, however. Video Codecs are still being developed now, with new ones coming out at a pretty fast rate. There could be new codecs coming out in the future that renders the current ones obsolete. However, you are probably more knowledgable about the subject and hopefully will be able to keep up with everything in the future. At the very least, you won’t be confused when presented with all the export options when rendering a video now!











