The short answer
If the question is about container types (file formats), the three most commonly given answers are MP4, MOV and AVI. All three are mainly associated with video files.
If the question is about codecs, three widely used video-only codecs are H.264 (AVC), H.265 (HEVC) and AV1. VP9 is another common choice. These compress moving images only. Audio in the same file is handled by a separate audio codec.
This question often appears in quizzes and IT certification study material, where the expected answer is usually the three container formats. Knowing the difference between a codec and a container helps you answer either version.
Codecs vs. containers in plain terms
A codec is the method used to compress and decompress the actual video or audio data. A container is the file wrapper that holds those compressed streams, along with things like subtitles, chapter markers and metadata.
Think of the container as a box and the codecs as how the contents are packed. An MP4 file (the box) might hold H.264 video and AAC audio (the packing). The file extension you see, such as .mp4 or .mov, names the container, not the codec. Our overview of the different types of video codecs covers the codec side in more detail.
Three video container formats
MP4
MP4 (MPEG-4 Part 14) is the most widely used video container today. It plays on almost every phone, computer, browser, smart TV and social platform. It usually holds H.264 or H.265 video with AAC audio. It’s the default export for most editing apps and the format most video platforms recommend for uploads.
MOV
MOV is Apple’s QuickTime container. iPhones and many cameras record into it, and it’s common in professional editing because it can hold codecs such as Apple ProRes as well as H.264 and HEVC. MOV and MP4 are closely related; the MP4 format was based on the QuickTime file format.
AVI
AVI (Audio Video Interleave) is an older container introduced by Microsoft in the early 1990s. It’s still widely recognized but has limits compared with newer containers, such as weaker support for modern codecs and features. You’ll mostly see it with older footage and legacy software.
Other video containers you might meet include MKV (Matroska), WebM, FLV, MPEG transport streams (.ts and .m2ts) and WMV. Our list of common video file extensions goes through these.
Three video codecs
H.264 (AVC)
H.264, also called Advanced Video Coding or MPEG-4 Part 10, is the most broadly compatible video codec in use. It balances good quality, reasonable file sizes and near-universal playback support.
H.265 (HEVC)
H.265, or High Efficiency Video Coding, is H.264’s successor. It was designed to give similar quality at around half the bitrate, which is why many phones and cameras record in it. It takes more processing power to decode, and browser support is less consistent than for H.264.
AV1 and VP9
AV1, from the Alliance for Open Media, and VP9, from Google, are royalty-free codecs used widely for web streaming. AV1 is generally the more efficient of the two and is gaining hardware support in newer devices.
Professional editing codecs such as Apple ProRes and Avid DNxHR are also video-specific. They’re designed for editing rather than delivery.
Formats that are not video-specific
Some formats are often listed as distractors in this kind of question because they’re tied to audio, not video:
- MP3: an audio codec and file format
- AAC: an audio codec, often used inside MP4 video files and on its own in .m4a files
- WAV and AIFF: uncompressed audio containers
- FLAC: a lossless audio codec
General-purpose containers can also be tricky. MKV can hold audio only (often with the .mka extension), and MP4-family files can be audio-only (.m4a). So a container isn’t strictly “video” by definition, but MP4, MOV and AVI are the ones most closely associated with video.
How to spot the format of a file
- Check the extension. It tells you the container, such as .mp4, .mov or .avi. You may need to turn on file extensions in your operating system’s settings.
- Use MediaInfo or VLC. MediaInfo lists both the container and the codecs inside. In VLC, Tools > Codec Information shows the codecs while a file plays.
- Look in your editing app. Most editors show the codec and container in a clip’s properties or inspector panel.
If a video won’t play, the cause is often a codec the player doesn’t support, even when the container is familiar. Converting the file to H.264 in an MP4 container is usually the most compatible fix.