You can spend all of the time and effort you want making amazing video content but it won’t mean anything if you can’t give it to people in a way that they can watch it. This makes choosing the right video file format incredibly important.
Unfortunately, video file formats are not as straightforward as many other computer file types. If you’re saving a document or spreadsheet, you don’t have to think much beyond just hitting save.
With video, you have to make some decisions about how you want to save your file to ensure that it will work where you want it to.
Are you unsure of where to start with choosing a video file format? We’re here to help you figure it out.
What is a Video File Format
The importance of video file formats is the result of two primary factors.
First, video files are significantly bigger than most other files you are likely to save, and as video resolutions continue to increase, their file sizes only grow. What format you choose will play a huge role in determining the final size of your video file.
The second is that videos have a lot of different parts that need to be put together into the final package. You have not only the actual video portion, but also the audio streams and additional information such as optional subtitles, metadata, in some cases menu structures, and more that has to all work together.
Your final video format takes both of these components into consideration. There’s a codec, which compresses (and decompresses) your video and a container that bundles everything together and makes it work with whatever video player you are going to use.
Remember, the codec plus the container equals the video file format.
A codec is used to compress and then decompress a video file. This compression can be either lossy or lossless.
Lossy compression creates smaller file sizes, but it leaves out some of the data, resulting in lower video quality. This is especially apparent with repeated compressions that lead to a cumulative loss of significant amounts of data.
Lossless compression, on the other hand, keeps all of the data from the original file. This gives you higher video quality and prevents progressive degradation from multiple saves. You do, however, end up with larger files.
Not all codecs are compatible with all video players. When you decide on what codec to use, you need to consider compatibility as well as the compromise between video quality and file size.
There are a few common video codecs that will meet most of your needs.
H.265, also called HEVC, has become the preferred codec for many people. It’s designed specifically for 4K video streaming and offers very efficient compression, giving high quality video with relatively small file sizes. There are still some compatibility challenges with H.265, but at this point most of the streaming video players will readily play it. H.265 is perhaps the most efficient codec currently available, at least until the recently announced H.266 becomes available.
H.264 was more or less the standard for video streaming for quite a while. It was developed for BluRay discs, but found wide adoption across all kinds of players and streamers. It offers very good image quality and efficient compression, but it’s not as powerful as the newer H.265. If you’re worried about compatibility and don’t mind having a somewhat larger file, H.264 is still probably the safest option.
MPEG-4 was another extremely common codec for online streaming, though it has lost popularity to H.264 and H.265. There were multiple standards within MPEG-4, with some of them being identical to H.264. MPEG-4 is still very much usable, but you might have to search to find compelling reasons to choose it over H.264 or H.265.
DivX, along with the open source version XviD, is an older codec that is designed to maximize video quality at the expense of having significantly larger file sizes. It’s still used in a variety of commercial settings where there is less concern over file size, such as when videos are stored and transported directly on hard drives.
Video containers bundle and store all elements of a video into one package. Elements include the video and audio streams, subtitles, video metadata, codec and more.
Each video container type is compatible with certain video codecs. Your video editing software should only allow you to choose compatible pairings, but try to plan what codec and container you want to use ahead of time, to avoid running into issues when you go to render your final video.
Common Video Containers
Like video codecs, there are a few common video containers to choose from.
The .MP4 container is probably the closest thing to a universal standard that currently exists. It can use H.265, H.264, and all versions of MPEG-4 are compatible with a huge range of players. Videos using the .MP4 container can have relatively small file sizes while retaining high quality. Many of the largest streaming services, including YouTube and Vimeo, prefer .MP4.
One of the oldest and most universally accepted video file formats is .AVI. It can use an enormous range of codecs, resulting in a large variety of different file settings. While .AVI videos can be played on a wide range of players, file sizes tend to be large making it less ideal for streaming or downloading. It’s a great option for videos you plan to store on a computer.
Apple developed the .MOV container to use with its Quicktime player. Videos using .MOV generally have very high quality, but also fairly large file sizes. Quicktime videos don’t have as much compatibility with non-Quicktime players, though there are third party players that will read them.
Made for Adobe’s Flash player, .FLV videos were extremely common for a number of years thanks to their very small file size and a wide range of browser plugins and third party Flash video players. There has been a significant decline in Flash videos recently. Flash video is still hanging in there, but just barely.
WMV (Windows Media)
Windows Media videos tend to have the smallest file size, which makes them a good option if you need to send through email or other methods with file size limits. However, this comes with the tradeoff of having a significant drop in quality. A common use for .WMV is emailing video previews to clients.
What Video File Format Should You Use?
Consider how you will be distributing and delivering your video. In 2020, .MP4 and H.265 are a good choice, but H.264 is also still valid if you’re concerned about compatibility. These are preferred by sites such as YouTube and are commonly available on video cameras. Learn more about how to choose a camera for vlogging in The 15 Best Cameras for YouTube Videos.
Deciding on the best file format is based on your specific needs. Keep in mind your audience and how they’ll be watching your videos. Refer back to our guide for common codecs and containers to help with your decision.
This post has been updated to reflect recent recommendations.Tags: Codecs vs File Formats, DCI 4K, How to Choose a Codec, How to Edit Video, UHD 4K, What Bitrates to Use Last modified: July 7, 2021