
Everything you need to know about video codecs and containers

Sometimes it is quite difficult to figure out which codec and container are the best to create your video masterpiece.

Today, everyone seems to be striving to become filmmakers. People use a wide variety of devices and devices for filming, including mobile phones, digital cameras, portable and professional video cameras. And the latest generation of digital SLR cameras can record high definition video.
Making a good video takes a bit of effort, but it becomes even more difficult when you want to show your masterpiece to other people in all its glory. Maybe you need to upload it to YouTube, maybe you are going to burn your own Blu-ray or DVD, maybe you want to download the video to your mobile phone or tablet.
Sometimes it is difficult to figure out which codec and container is best for creating your video masterpiece. The material below can help you solve this problem.
What is the difference between a codec and a container?
Novice users are often confused when trying to figure out the difference between codecs and containers. Now the word Codec has become commonplace, and initially the term was an abbreviation for the concept of KOMPRESSOR-DEKOMPRESSOR. What do codecs do?
They take data from digital media and compress it (for transmission and storage) or decompress it for viewing and transcoding. Each codec uses a specific method to encode and decode digital data.
Uncompressed video and audio (raw means unprocessed, or often “raw”) require a lot of storage space. Uncompressed 1080i HD video recorded at 50 frames per second consumes up to 410 gigabytes per hour. Audio on CDs, quite out of date by modern standards, plays for around 74 minutes with a 680 megabyte disk capacity. However, eight-channel audio encoded with a 24-bit resolution will require 16 megabits per second, or several gigabytes per hour. Even broadband internet connectivity is sometimes not enough to listen to music in full audio resolution. This is the reason why digital video and audio recordings must be compressed for transmission and storage.
Once the media is compressed within reasonable limits, it must be packaged for shipping and later viewing. For this, container formats are used that act as a “black box” filled with various multimedia formats. Good container formats can accommodate files compressed with different codecs.
Let’s take a look at the types of codecs.
General concept of codecs
If you chat with people who are into video processing or visit the relevant web forums, one way or another, you will find yourself involved in the sometimes heated debate about which codec is better. In fact, the effectiveness of any codec is highly dependent on the compression mode used and the type of video material being processed. Therefore, it is worth considering various codecs and taking into account their specific use and the characteristics of the compressed material. Video codecs are mainly covered below, but the section on format containers also mentions the use of audio codecs.
Capture and archive videos
Most modern consumer electronic devices receive content in some kind of already compressed format. Usually only professional videographers work with uncompressed HD video. Of course, ideally, if possible, in the presence of a large-capacity storage system, the video files should be stored in the original recording format, because this ensures the highest quality. Transcoding a video from one type of compression to another can introduce subtle artifacts that can degrade image quality. (These errors are minimized with good software transcoding.) Many codecs with specific specializations are currently offered. The average user may never find most of them. The next section is dedicated to codecs as compression / decompression systems,
x.264 / MPEG-4 AVC (Advanced Video Coding). This most common codec is used in modern digital video and digital cameras, where shooting results are saved as files on built-in hard drives, memory cards, etc.
MJPEG (Motion JPEG). This is an older format used by some older generation digital cameras and video equipment. It was developed by the same specialists (Joint Picture Experts Group), who participated in the earlier development of the JPEG codec for compressing ordinary still images, hence the name of this codec.
DV and HDV. The DV standard was developed by a consortium of companies from


















