-->

Video file formats explained !! Codecs and Containers

You may have seen many videos everywhere where you may have seen file extensions (used after the file name). Such as .MP4.WAV .MKV and others. These file formats are usually containers. But what are these containers? Containers as the name suggest contain many things. These contents may be the video along with its audio and also if any other things such as subtitles or information about the file.

The file containers use some specific codecs. Codecs are actually some scheme or maybe any software used to compress or decompress any video or audio file or used to convert a file into another format. This codec includes a coder and a decoder . The codec helps in the conversion of a file into is analog or digital form. This thing is in coder-decoder hardware. 

But moving to codecs software, these are programs that can change an audio or video file into a specific format that can be understood by the systems. As explained in the image file formats post, these codecs use lossy compression of video. So while conversion they lose something from them. It helps to reduce the file size and keep the file clear as it was. In lossless compression, the file sizes remain large and also need high-quality processing. 

Also, see - History of laptops !!

These codecs help in displaying a video file they contain along with other components. One of the popular codecs is H.264. It helps in compressing the files by reducing their file sizes without much affecting the quality of the video. It splits each frame into blocks of 256 pixels. It compares each frame like this and the difference it gets is termed as residual. This residual is compared with different patterns like a checkerboard and then notes each of the patterns contributions to the residual and those with less contribution and more storage occupying pixels is just deleted. 

This codec can be used to also convert very low-quality videos into those with high quality. Another advanced codec which is H.265 makes the block of 4096 pixels each and then goes for discarding unuseful pixels. 

It can be used in compressing  4K videos or Blu-ray files. They are actually paid but if we want a free codec then we can go for  VP8 or VP9There is also a popular codec used for lossless compression called DivX which is an open-source version of another codec XviD. It can increase the quality of the video along with its size.  

The file containers like MP4, MKV, MOV actually contain video or audio file which need codecs to be played. You might have noticed that some containers which open may have their video working but not the audio or vice versa. 

This happens due to the absence of suitable codec required to play the file. It first checks the format and then the codec, if it is not there, it asks to download it. Now talking about the MP4 container, it may contain a video that may be compressed by h.624 or maybe MPEG (another codec), an audio file that may be MP3. But you may have seen many movies with MKV containers. MKV container is very popular and is known for its supporting capability as it can support any audio or video codecs. 

Another popular container among Apple users, which is created by Apple is MOV. It can also contain any type of audio and video codec but have a more little more file size. 

AVI is another file container that is old and universally accepted. It can use a wide variety of codecs and provides various settings. They may have a large size.

Also, see - Self Healing Fabrics !! Explained  


WEBM is a file format created by Google and is efficient in websites. It is used by video streaming sites like Youtube as they have a less file size. 

OGG files are an open-source alternative to.MPG files and are used for high-quality videos to be streamed via the internet. Though.OGG files are used for streaming, they are higher in quality than WEBM files. 

WMV is a file format created by Microsoft. It stands for Windows Media Video. It is not so good in quality although the file size is less. 

FLV is also a popular format created by Adobe. It was once popular because of its ability to be used over the internet but due to the decreasing popularity of Adobe Flash, it is also not having much use. AVCHD is used by camcorders to record videos and compress them with codecs like H.264 and MPEG-4.



It is really a very vast thing, the video containers, codecs, and formats. All these codecs are really helping a lot in saving storage spaces and this is also very efficient and useful in our daily life.

Makar Sankranti

So this is all the knowledge I had . It is not copied knowledge, its my knowledge thats why it is called AnupKnowledge .


Post a Comment

1 Comments