Video Codec Explanation


Free Download Mp4Gain
picture

Video Codec Explanation

Video Codec Explanation
Video Codec Explanation
Video Codec Explanation
Video Codec Explanation

Video codecs, or compression-decompression algorithms, are the unsung heroes behind the videos we watch daily. They work like digital magicians, making it possible to store and transmit videos efficiently while preserving image quality. To understand them better, think of video codecs as puzzle masters.

Imagine you have a jigsaw puzzle of a beautiful landscape. However, you need to fit it into a smaller box for storage or mailing. A video codec is like an expert puzzle solver; it disassembles the image into smaller pieces, discards unnecessary ones (compression), and records the steps needed to put it all back together (encoding). When you want to enjoy the landscape again, the video codec reassembles it, like completing the puzzle.

Video codecs come in various types, each with its strengths. Some prioritize smaller file sizes for streaming, while others focus on maintaining pristine quality for high-definition content. Understanding these differences helps you select the right codec for your specific needs.

What Are the Best Video Codecs for Streaming?

When it comes to streaming video content over the internet, the choice of video codec plays a significant role in ensuring a smooth and enjoyable viewing experience. Two popular video codecs for streaming are H.264 and H.265 (also known as HEVC).

H.264, also known as AVC (Advanced Video Coding), has been a long-standing favorite for online streaming platforms. It offers a good balance between video quality and compression efficiency, making it suitable for a wide range of devices and network conditions. It’s like the reliable family car that gets you where you need to go comfortably and without fuss.

On the other hand, H.265, or HEVC (High-Efficiency Video Coding), is like the fuel-efficient hybrid car of the video codec world. It provides superior compression, resulting in smaller file sizes without compromising quality. This makes it an excellent choice for streaming 4K and even 8K video content, where bandwidth is a concern.

As someone deeply immersed in the world of video codecs, I’ve witnessed firsthand how the right codec choice can transform the streaming experience. It’s not just about technicalities; it’s about delivering content that captivates the audience while optimizing resources.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

WHAT IS THE BIT RATE?

WHAT IS THE BIT RATE?

Video Codec

Bit rate is the amount of video and audio data transferred per second, and the unit bps (bits per second) is used. It is expressed as “video file capacity = bitrate value x time”. The higher the bit rate, the better the picture and sound quality, but the larger the final file size. Adjust the bit rate when you want to reduce the file size when encoding a video file or when you want to improve the image quality.

video codec

The higher the bit rate, the higher the image quality, but if the original video has a low bit rate, no matter how high the bit rate is, no improvement in the quality of the image can be expected. picture. Also, if you are using a CPU with a slow processing speed or a hard disk with a slow rotational speed, if you play a video created at a high bit rate, the processing may not be in time and they will be lost. frames. Also, when posting a video on the home page, it cannot be played properly if the internet line speed is slow.

The DVD-Video standard requires a total video and audio bit rate of 9848 kbps or less, and the Blu-ray standard (BDMV) requires a total video and audio bit rate of 40,000 kbps or less. Therefore, it is necessary to adjust the bit rate according to the purpose and environment. There are two kinds of

encoding methods: constant bit rate (CBR) and variable bit rate (VBR).
Select the encoding method that suits your purpose, such as image quality at encoding time and final size balance.

Constant Bit Rate (CBR)
All constant bit rates assign the same bit rate at all times. Set a high bit rate when you want to improve the image quality of all video files, and set a low bit rate when you want to reduce the file size (a low bit rate can cause noise to be noticeable in a scene with many movement).

It always assigns the same bitrate, so you can easily predict the size of the resulting file. Therefore, it is recommended to use it when there is an upper limit for the file size after encoding or when you want to keep the data transfer rate constant.

Also, WMV (Windows Media Video), etc. You can configure 2-pass CBR. With 2-pass CBR, the amount of data distributed to each video is strictly adjusted and is a mechanism to target higher image quality.

Variable Bit Rate (VBR)
Variable bit rate automatically assigns a high bit rate for fast moving scenes and a low bit rate for slow moving scenes. Since the bit rate is assigned according to the scene, the file size can be reduced while the image quality is relatively high, but the final file size is difficult to predict.

VBR can be divided into two types. 1-step encoding (fixed quality) and 2-step encoding (average bit rate).
1-pass MPEG-2 encoding can shorten processing time for export by analyzing video and encoding while maintaining specified constant quality. However, it is difficult to predict the size of the finished file.

In 2-pass encoding, after analyzing the information from all video data in the 1st pass, the bit rate is assigned and encoded in the 2nd pass based on that information. Although the processing time is long because the processing is performed twice, it is possible to allocate the bit rate efficiently, making it possible to create high-quality video. By specifying the average bitrate, you can roughly predict the size of the file.

Visualization objective | Optimal codec changes depending on the recipient

Visualization objective | Optimal codec changes depending on the recipient

VIDEO CODECS

What should we think about widely used codecs, such as H.265, and internal standards other than international standards?

AVI vs MP4 vs MKV - WMV vs H.264 vs H.265 vs Xvid

When making a selection, you need to think about it depending on your goal and display purpose.

For example, Microsoft codecs include WMV7, WMV8, WMV9, WMA9. These are internal standards, but if you have a Windows machine, Windows Media Player is installed and supports company codecs. The Windows environment is widespread, and if you are targeting offices and users in a Windows environment, you don’t have to think about checking for codecs or installing them, which is a very efficient option.

It is also high resolution, but uses FLAC codec with lossless compression and WAV without compression. Compared to AAC and MP3, which are widely used in portable music players, the amount of FLAC and WAV data is very large and is considered disadvantageous in terms of penetration rate. However, if you are targeting people who want to enjoy higher sound quality, the high resolution is very attractive, and there are many cases where buying compatible equipment or supporting FLAC, WAV, etc. is not a barrier to aiming. .

■ Trends in international standards H.265 / HEVC and H.266 / VVC
H.265 has attracted attention as a next-generation codec, but its spread is limited to some environments. Also, H.266 was announced in 2020 as the latest codec.
H.265 has twice the high compression rate of H.264 / MPEG4 AVC, but on the other hand, it says “the encoding time is longer than H.264 / MPEG-4 AVC” and “the load on the computer during playback is high “. There is one caveat. H.266 has a compression ratio that is twice that of H.265, but it also increases the load.

By the way, some of you may be wondering: “Why is H.265 not so widespread?” This has to do with “standardization”.
The most famous codec is WebM, which is used on YouTube. In this way, “the codec developed by the company and AV1 developed by a non-profit organization are in a competitive state”, and H.265 is “used”. to the fact that a license fee is incurred, it has not been generalized.

One of the reasons H.264 is widely used is the “x264” encoder, which was built around licensing. By avoiding the license relationship, “x264” has been adopted and used in many encoding software, and H.264 has become widespread.

■ Easy to distribute new codecs for specific purposes
For example, Dwango and NTT started the H.265 demo experiment on Nico Nico Live Broadcasting in November 2014. If you are a specific target of niconico users, it is easier to distribute codecs than an indeterminate number of users.

In this way, the codec selection changes according to the display purpose.

In the end
So far, we have explained “compression rate”, “standardization” and “display objective” as “three points of view that must be suppressed to select the optimal video codec”. In actual operation, you may not be able to make decisions due to the rapidly changing display environment and technology. In such a case, I think the best shortcut is to consult a professional. We are not only familiar with the latest codecs and file combination examples, but we also believe that they will offer the best selection according to the purpose and usage scene based on our achievements.

Standardization | It has a great influence on the spread of codecs

Standardization | It has a great influence on the spread of codecs

Video Codec

For video playback, the same codec as the sender-encoded “video data codec” and “audio data codec” must be included in the display environment on the receiver side and decoded.

VIDEO CODECS

Therefore, as a second point of view of codec selection, it is necessary to be aware of the propagation situation.
Codecs are found in many places. In terms of devices, terminals, browsers, personal computer operating systems, etc., “standardization” has a great influence on the support of each codec from each manufacturer.

Standardization can be broadly classified into
1) internal standards (standards independently established by companies)
2) industry standards (independently established by the industry. There are merits in terms of compatibility, etc.)
3) National standards (established by the national government based on the law. JIS, etc.)
4) Regional standards (standards that span multiple countries)
5) International standards (global standards)

There is, and the influence increases in the order of 1) → 5). Since an international standard is recognized as suitable for general use around the world, it will be adopted by many manufacturers and developers and will be widely used. The number of cases where the codec is pre-installed in browsers, players, playback terminals, etc. will increase, and if the codec installation is no longer necessary, the threshold for viewing videos of the recipient will be lowered considerably. Therefore, it is necessary to pay attention to the standardization trend as an important point of view of codec selection.

There are “ISO / IEC JCT1” that started in the storage field and “ITU-T” that started in the communication field as the organizations that established the international standard for compression encoding of video and audio data. ISO / IEC is formulating the MPEG series, ITU-T is formulating the international standard for the H.26X series, and both organizations jointly formulate H.262 / MPEG-2 and H.264 / MPEG-4 AVC (Fig. 1 ).

[Fig. 1] Standardization flow of “MPEG” and “H.26X” series
] Standardization flow chart for each series of “MPEG” and “H.26X”

If you want to widely reach an indeterminate number of people, it is important to select a codec that is popular to some extent, and it is essential to be aware of “standardization” at that time. However, it is not always good to keep up with the latest, and even if it becomes an international standard, it will take some time before it becomes mainstream, so be careful.

Three perspectives to consider to select the best video codec Codec

Three perspectives to consider to select the best video codec
Codec

Video Codec

In this article, as basic knowledge about
codecs: -A codec is a program that encodes (encodes) / decodes (decodes) video data and
Audio.

VIDEO CODEC

-Even if the file format is the same, different codecs are different.-Al
play a video,
I explained that the codec used at the time of encoding is also required for the recipient’s viewing environment, but in this article, “compression rate” and “compression rate” are described as “three viewpoints that need to be suppressed to be able to select the optimal video codec. ” I will explain about “standardization” and “display goal”.

Viewpoint 1: Compression Rate | Make it easy to distribute and distribute high-quality online videos
A film expresses movement through a collection of continuous images and, if it is not compressed, the amount of data will be enormous. Therefore, compression technology has been developed to efficiently record and save video data. Compression technology is one of the hearts of codec development. By using compression technology, it is possible to record a large amount of information, such as moving images with a large amount of data, to achieve higher image quality even with the same capacity, and reduce the amount of data to facilitate distribution and distribution. Therefore, “compression rate” is an important point of view when selecting a codec.

■ Two compression methods, “lossy compression” and “lossless compression”
There are two types of data compression methods: “lossy compression”, which reduces the weight of the data by thinning it within a range that does not affect the eyes, and “lossless compression”, which returns the original amount of data. when unzipped without thinning the data. Since the amount of data is very large in “uncompressed”, which does not compress the data at all, compressed data is often used when handling moving images. Lossy compression codecs are often used for video distribution, especially MPEG-4 AVC and WebM for Youtube.

■ High compression rate codec
For example, since the birth of MPEG-1 in 1993, there have been “MPEG series” such as MPEG-2 (1995) and MPEG-4 AVC (2003). MPEG-4 AVC is said to have approximately twice the compression ratio of MPEG-2. In other words, the standard for DVD video is set at approximately 8 Mbps for MPEG-2, but in terms of calculation, if compressed with MPEG-4 AVC, the same image quality can be obtained at approximately 4 Mbps. Double of compression rate means that the file capacity will be cut in half when video is delivered with the same image quality, and the communication bandwidth at the time of delivery will also be cut in half.

By improving compression efficiency, even with the same image quality, a small amount of data can be used.
The load on the video distribution server can be reduced and the server risk minimal and display lag can be
reduced.-Avoid close communication lines and provide information to viewers.
the
advantages of easier delivery and higher image quality of videos.
The following [Demo 1] is compressed using the MPEG-2 codec on the left and the MPEG-4 AVC codec on the right at the same bit rate, but the difference in image quality is clear.

Video Formats and Their Features Part 2

Video Formats and Their Features Part 2

video formats

Video file extensions

Video Formats

The video extension (like any other file) is a set of characters that help the Windows operating system to determine the type of information contained in the file, as well as to choose the appropriate program to open it. The video file extension classification is as follows:

AVI (Audio-Video Interleaved) is a very popular format, more precisely, a container. It was developed by Microsoft. This container can store four types of data: audio, video, text, and midi. It can include video of any format, from MPEG-1 to MPEG-4, sounds of various formats; the codec mix can be anything. The contents of the AVI container can be found using various programs, from a simple VideoToolBox to a powerful Adobe Premiere.
WMV (Windows Media Video) is another Microsoft format. If you create a movie in Movie Maker that comes with Windows, it will be in this format.
MOV. This format was invented by the Apple Macintosh. In addition to video data, it can contain graphics, animations, and 3D. The files of this format are played in QuickTime Player from Apple itself,
MKV (Matroska or “Matryoshka”) is another container that can hold both video and audio, as well as subtitles and the like. MKV is open source and has been used almost everywhere lately. Files in this format are playable on most players, including Windows Media Player, which is included with Windows.
3gp is a third generation video format for mobile phones. Movies recorded in this format have poor image quality. However, the small size eliminates this disadvantage. Also, 3gp video seems more or less visible on small phone screens.
Video formats used on the Internet
Videos created on the Internet usually have one of the following formats:

FLV (Flash Video) is a video format used by various video hosting sites like YouTube, RuTube, Google Video, and others.
An animation or video in Flash format created in Adobe Flash has the extension SWF (Shockwave Flash). To play these files, you need a browser with Flash Player installed. Videos in this format are also ubiquitous on the Internet, where you can watch them directly from the site.
RealVideo is a format created by RealNetworks and used for television broadcasts on the Web. Movies recorded in this format have an RM, RA or RAM extension and are small in size and of poor quality.
File extensions found on DVD
If you look at the contents of the folder with the DVD movie, you will not immediately understand which file you need to run for the movie to start, because there are a lot of them there. But if you know how files of different extensions differ, this variety will be easier to navigate:

VOB (Versioned Object Base) is an extension of the container, which then contains video (or several at the same time) in MPEG-2 format, audio, movie subtitles and menus. These are the main files on the movie DVD.
IFO files contain information about the movie, the order in which the VOB files are played, and the menus. That is, these are service files that are created in the process of burning a DVD movie.
Also on DVD you can view video files with m2v and m2p extensions (MPEG-2 format). It makes no sense to delve into its features and functions, we can only say that they are necessary for creating VOB files and burning DVD movies.
Optical disc formats
While we’re talking about the files found on DVD, it’s worth talking a bit about the formats of optical digital drives:

Perhaps the most popular of them is the DVD. It is he who is the reason why the VHS format has sunk into oblivion. DVD videos are compressed using the MPEG-2 standard, have a bit rate of 2000 to 9800 Kbps and a size of 720×576 (for PAL) or 720×480 (for NTSC).
HDDVD is a large capacity disc that can record high definition video. Video compression standards are the same as for Blu-Ray.
Blu-ray disc. Next-generation optical media with increased storage capacity for video information, including high definition. It became widespread in 2006 and in 2008 it replaced the HDDVD format. All Hollywood studios have switched to this format.

Video formats and their characteristics

Video formats and their characteristics

Video formats

Even if you’ve never processed a video, you must have heard out of the corner of your ear that there are some video formats. That by the name (extension) of the file, you can easily identify this format. And you’ve probably heard that if necessary, you can convert one video format to another. Want to know more?

video formats

Before talking about video formats, let’s say a few words about what video standards are.

NTSC. Developed in the United States in 1953. The screen resolution is 720×480 pixels, the frame rate is 30 FPS.
COMRADE. This standard was developed in Germany in 1967. The screen resolution is 720×576 pixels, the frame rate is 25 FPS.
SECAM. A standard developed in France in 1956. It is true that it only concerns television broadcasts, so we will not focus on its characteristics.
Video recording formats
There are several video recording formats, which are divided into analog and digital. To begin with, let’s talk about analog formats, among which the most popular is VHS (more precisely, it was, especially in the 80s-90s). It has a whole family of varieties: VHS-C, S-VHS, Video8, etc. Since 2008 it is no longer used, because it could not withstand the competition, and it is hopelessly out of date.

Video tape (VHS)

But digital video formats are still alive and well:

MiniDV. The recording is done on magnetic tape, 1 hour of video “weighs” 13 GB, the recording speed is ~ 25 Mbit / sec.
HDV. Again, the recording is done on magnetic tape, but the recording quality is much better compared to the previous format – the resolution is 1440 x 1080 with a 16: 9 aspect ratio (interestingly).
AVCHD. High Definition Video Format, whose name stands for Advanced High Definition Video Coding. It is used to record videos in high definition 720p (HD ready), 1080i and 1080p (Full HD) modes on hard drives or memory cards (SD, microSD and Memory Stick PRO). When recording to discs, these are typically 8cm rewritable AVCHD or Blu-Ray discs.
Compression standards and codecs
If you often have to record videos and upload them to the Internet, you should familiarize yourself with the compression standards and codecs that allow you to reduce the file size and as a result, speed up the download of the video to a file hosting or hosting service. videos. So right now there are the following compression standards:

MPEG is one of the main file compression standards. It stands for Moving Pictures Expert Group (the name of the organization that developed it). It has four varieties:
MPEG-1: a file compression format for CDs with mediocre video quality (352×240), currently practically not used;
MPEG-2 is used for digital television and DVD.
MPEG-3 (not to be confused with MP3 audio compression technology): not currently used.
MPEG-4 format can be obtained using codecs like XviD, DivX, etc. Even though it compresses video more strongly than MPEG-2, the image quality is quite decent, especially when using the H.264 codec.
H.264 is a standard that is characterized by a high compression ratio of video data while maintaining decent image quality. Excellent for videos uploaded to the web.
XviD and DivX are highly compressed codecs (based on the MPEG-4 standard).

Video codecs, video formats – what does this all mean?

Video codecs, video formats – what does this all mean?

Video Codec

If you are puzzled by the endless list of export options in your video editing software, this article is for you. Let’s first look at the definition of a codec.

Video Codecs and Containers

Then we will look at the concept of video format, and then we will look at some of the most common codecs and their uses.

If you are recording or editing video, you will almost immediately come across the term “codec”. Since there are so many and it’s hard to tell them apart, I’ve made a quick overview to help you get started. Once you understand certain terms, you can better decide which one suits your needs. Let’s start with a simple definition.

The video codec is.
A codec is actually a combination of two words: an encoder and a decoder (co / dec). What are they doing? Simply put, because video files are so large, you need a way to make them smaller. The codec encodes, compresses data to store or send it, and then decompresses it for playback or editing.

A codec is a computer code that performs its function each time the software calls a file. Codecs can also be used on physical equipment, such as a camera, to digitize incoming video and audio.

This happens in real time, either at the point of capture or at the point of playback. However, if you are not a broadcast engineer, you will have to rely on your computer or device to select the codec. Hardware compresses your video and audio data for viewing, streaming, or storage.

The video format is.
The file format is similar to a container. The container contains data that has been compressed by a specific codec. And sometimes they have the same name.

For example, a file format such as Windows Media Audio contains data compressed with the Windows Media Audio codec. However, a file format such as Audio Video Interleaved (AVI) can contain data compressed with any of several different codecs, including MPEG-2, DivX, or XviD codecs.

AVI files can also contain data that is not compressed by any codec. Therefore, depending on the codecs installed on your system, some AVI files will play fine, while other AVI files, despite having the same file extension, will not play.

It also affects the audio. There is often a situation where when playing a video, the sound plays, but the video does not. This means that the appropriate video codec is installed on your device.

Video codecs for 4K

Video codecs for 4K

4K codecs

If you are experienced in streaming or recording video signals, you probably know what video codecs are.

4K Codecs

 

Video codec – a device or program that allows you to compress (encode) large video files for viewing or editing; the name is formed at the same time as these words in English: «co the mpressor / dec ompressor» (to mpres-sor / December ohm-pres-sor) and «co de / dec ode» (to di-ro-vat / december hate-ro-vat).

In the context of the characteristics of professional environments or for live-pi-si codecs, reduce the size (or bit rate) of the data stream, allowing the transfer of data to a wide audience. For example, a compressed 1080p30 signal typically takes 4-8 Mbps, while an uncompressed version of the signal would require 1.5 Gbps – that’s 250 times longer! Given current network bandwidth limitations, it would be nearly impossible to stream at such a high bit rate without using video codecs.

Live streaming in 4K?
Streaming or recording in 4K resolution, if possible, definitely has its advantages. This is, first of all, the quality and clarity of the video, as well as ample opportunities for further processing.

In terms of formats and codecs, 4K resolution (3840×2160 pixels) contains four times as many pixels as the most popular modern Full HD resolution (1920 × 1080), meaning in one go, you can stream much more data to your audience.

Fortunately, new codecs have already appeared that allow you to work with 4K and higher resolutions.

H.265 codec: the best choice for 4K
H.265, also known as HEVC, is the successor to the modern generation H.264 codec (known as AVC), which is capable of encoding / decoding 4K video. HEVC is installed on most 4K televisions and computer monitors. When encoded, H.265 consumes up to 8-10 times more processing power than H.264, making HEVC unsuitable for transmitting small to medium-sized data using the latest technologies. Video-on-demand resources like Netflix generally encrypt their video content before making it available to users. In addition, these resources can be allowed as additional computing power,

Note that older formats and codecs (AVC / H.264) are still capable of handling 4K video, but the difference is that newer ones like HEVC do it more efficiently. At the same time, the video quality with the increased compression ratio improved and this did not affect the bit rate. Capable of supporting resolutions up to 8K (8192 × 4320), HEVC is the video format of the future.

At the same time, there are no end-user costs associated with HEVC / H.265, while equipment manufacturers, providers of paid programs and streaming services must pay royalties for using HEVC technology in their products and / or services. A good example would be modern 4K televisions or monitors, in which the H.265 codec is integrated during production and users get it for free with the purchase of the corresponding device.

Free video streaming services (such as YouTube) have traditionally been exempt from royalty payments, but this has not affected HEVC. This exclusion has generated a series of interesting collaborations between renowned high-tech companies in the creation of new open source video formats.

Alliance for Open Media
Dissatisfied with the licensing rules and patent royalties associated with HEVC, tech giants like Microsoft, Google, Mozilla, Cisco, Intel, Netflix, and Amazon have formed a new consortium: the Alliance for Open Media (AOM). It is a non-profit organization dedicated to the development of the next generation of video codecs, video encoding formats, and related technologies. For 2016-2017, AOM plans to introduce new technology that enables more efficient compression of video data, which in turn will significantly reduce the load on the Internet connection and significantly increase the capabilities of modern web networks that transmit video to personal computers, smart phones. , game consoles, streaming consoles, televisions, etc. Also, when using the new format, no royalties will be paid. It follows that any company can create software that can convert,

Many of the group’s members have already contributed to the development of the next generation of 4K codecs; Cisco created Thor, Mozilla worked with Daala and Google with VP9. AMD, ARM, Intel, and Nvidia have recently joined the Alliance.

VP9 is the most popular of the 4K codecs
The VP9 codec is open source and royalty free. It owes its popularity to its use in web applications during the gradual transition from Flash to HTML5 technology.

 

How is the video format different from the codec?

How is the video format different from the codec?

Video format and codec

What is the video format?

Codec Video Format

Although there are many video formats, from analog recording methods (VHS, for example) to digital (Betamax, DV and others), in everyday life we ​​often talk about file formats that contain digital video. In fact, these files are containers that contain not only video, but also various audio tracks and / or subtitles. Each file format has its own characteristics: some allow streaming, some do not. Some may contain multiple audio and video tracks, while others may contain only one. The container only provides one header – “instruction”, which describes how and how to open the tracks stored in it. All information is contained in compressed form, and each object packed in a container is processed in a specific way, characteristic of the selected container type.
The most common container formats are:
1. AVI (Audio and Video Interleaved) developed by Microsoft for Windows. In theory, it can store various audio and video streams, in practice it is rarely used.
2. FLV (Flash Video) is optimized for streaming video over the Internet; Advantages: quality preservation even at low bitrate, the ability to view from anywhere, regardless of the operating system.
3. 3GP focuses on mobile devices that provide the ability to record / view audio and video.
Most of the listed formats are commercial, but there are projects based on completely open standards. The most popular among them is MKV (Matroska).
Although it is more correct to use the term “media container”, in colloquial speech the word “format” has become more popular. There is no crime in this, so in the communication process you can safely operate with the data, leaving the “containers” for professional discussions.
It is sufficient that the player program understands how to correctly identify the type of container to correctly reproduce the data stored in it. Consequently, the user must know which formats the player supports and install the necessary set of several on the computer (if one cannot play all of them).
Generally, a splitter program is involved in unpacking file and media containers (it can also be part of a player). Your task is to extract the content and only then transfer each audio / video stream for decoding using codecs.

What is a video codec?
To decrypt the contents of a media container and convert it into a video stream, you will need codecs, programs of formula similar in principle to filing cabinets. Having the required codec will allow you to correctly decompress the compressed image, so it is important to have as complete a set as possible of these algorithms so as not to find a message about an unsupported video format. From an academic point of view, it is more correct to speak of decoders, but, as in the previous case, it is easier to operate with the concept of “codec”, it is universal for both digitization and video playback.

What are the codecs?
The most popular video codecs used for home use are Xvid and DivX. Movies distributed on DVD are encoded with the MPEG-2 codec.
In general, DivX is the most common proprietary MPEG-4 codec. And the Xvid codec is based on one of the versions of DivX, but open source. There is also x264 (a codec for compression in the H.264 standard) and TrueMotion VP6 (used as one of the main encoding options in the Flash Video format). The rest of the codecs, and there are many, you may not need them in practice, but it is better to have them all the same. As a general rule of thumb, the full set can be obtained by installing the K-Lite Mega Codec Pack, but some of them may have to be added manually later.

Conclusions
The video format is determined by the extension of the container file, but it is not always known which codec was used to compress the information it contains. And if to play the required format it is only important to know if the media player supports it, then to determine the codec you will have to use a third-party utility (for example, AVIcodec or GSpot), and only then add the missing codec to the system.