A video file is not the same as raw footage — it's been compressed by software to make it small enough to store and share. That compression is done by a codec, and the choice of codec affects the file's size, quality, compatibility and processing time. Two codecs dominate everyday video: H.264 and H.265.
What a Codec Actually Does
When you record a video, the camera captures many frames per second. Storing every frame as a complete image would produce enormous files. A codec compresses this by:
- Storing only one complete "key frame" occasionally.
- For other frames, storing only what changed since the last key frame.
- Applying mathematical compression to reduce file size further.
The result is a file a fraction of the raw size, which plays back smoothly because the player (codec) reconstructs each frame.
H.264 (AVC)
The codec that turned online video from an experiment into everyday use.
- File size: moderate — much smaller than raw footage, though H.265 can do better.
- Compatibility: supported on virtually every device, browser, streaming platform and editing tool in use today.
- Processing: fast to encode and decode; plays smoothly on older hardware.
- Best for: sharing, uploading, WhatsApp, social media, everyday recording.
H.265 (HEVC)
The next generation, designed to do the same job as H.264 but in roughly half the file size.
- File size: roughly half of H.264 at equivalent visual quality.
- Compatibility: good on newer devices, but some older phones, browsers and platforms don't support it without extra software or conversion.
- Processing: significantly more demanding to encode; plays smoothly on modern hardware.
- Best for: 4K and high-resolution video; storage where file size is a priority; platforms that specify it.
Choosing Between Them
| Need | Choose |
|---|---|
| Maximum compatibility, everyday sharing | H.264 |
| Smallest possible file for 4K or archiving | H.265 |
| Uploading to YouTube or most social platforms | H.264 (safe default) |
| Editing on modern Apple/PC hardware and staying Apple ecosystem | H.265 (often Apple's default) |
| A file that needs to play on any device without issues | H.264 |
The Container vs Codec Distinction
H.264 and H.265 are codecs — the compression method. They typically live inside an MP4 container (the file format). An MP4 file can use either codec, which is why knowing the codec matters: two MP4 files can behave very differently if one uses H.264 and the other H.265.
When a Video Shows "Codec Not Supported"
This means the playback software can't decode the video. The reliable fix is to re-encode it as H.264 in an MP4 container, which plays on almost everything. Our Video Compressor produces H.264 MP4 output by default. For general video format differences, read MP4 vs MOV vs MKV vs AVI.