H.264 or HEVC: which codec to use for social media video?
Article by Pedro Henrique Lahr
For video going to Instagram, TikTok, YouTube or LinkedIn, H.264 is the safe choice: it plays in every browser, phone and computer. HEVC (also called H.265) compresses more, but not every browser opens it. In tests of Kodecz, the Konecz engine, HEVC made the file 1% to 12% smaller with the same picture. That is why Konecz delivers in H.264 and only uses HEVC on request.
What is a codec?
It is the way the video is compressed. MP4 is just the box; inside it goes the video compressed by one codec (H.264, HEVC, AV1) and the audio compressed by another (usually AAC). Whatever opens the file has to know how to decompress that codec. If it does not, the screen stays black or the video never loads.
H.264 has been around longer and almost everything understands it. HEVC is newer and more efficient, but browser support is still uneven.
How much does HEVC really save?
We measured both codecs in the same render, on the graphics card, on 30 October 2026, with two rounds each:
| Video | Codec | Size | CPU | Similarity (SSIM) to the reference |
|---|---|---|---|---|
| Presenter, 1080p, 150 frames | H.264 | 1.03 MB | 4.4 / 4.7 s | 0.9981 |
| HEVC | 0.91 MB | 4.2 / 4.3 s | 0.9982 | |
| Audiogram, 1080 × 1080, 814 frames | H.264 | 7.78 MB | 14.6 / 14.2 s | 0.9968 |
| HEVC | 7.70 MB | 13.5 / 14.6 s | 0.9967 |
The picture was the same with both (SSIM is a score from 0 to 1, where 1 means identical). So was the CPU cost. The only difference is size: 12% smaller on the presenter video, 1% on the audiogram.
For a 60 second Reel, that is very little. And the platform re-compresses everything it receives, so the HEVC saving is gone after upload.
Why does Konecz deliver in H.264?
Because a video goes through many places before it reaches the audience: the client's approval page in a browser, the Konecz portal, the upload to four networks. A file that will not open at one of those points holds everything up. H.264 opens at all of them.
The settings the engine uses, on both paths (GPU and processor):
- High profile. The most common one for high definition video; it plays in every browser.
- 4:2:0 color. The standard for consumer video. 10-bit or HDR takes become 8-bit.
- No B-frames. B-frames depend on the next frame; without them the stream comes out in order, and the engine can write repeated frames as marks of about 40 bytes.
- faststart. The MP4 index goes at the start of the file, so the video starts playing before it has fully downloaded.
- AAC audio. The audio format every network accepts in MP4.
When does HEVC make sense?
In three cases:
- Archived, not published. For storage, 12% less across thousands of videos adds up.
- A transparent layer. The engine writes a layer with transparency (alpha) only in HEVC, to be laid over another video later. That file does not go to a network; it is an assembly part.
- The client asks. When the destination accepts HEVC and size matters.
In all three cases, GPU path only: Kodecz's HEVC uses NVIDIA's NVENC.
What about AV1?
AV1 compresses even more, but the Konecz engine does not output AV1 today. When checking the finished file, Kodecz can read AV1 and VP9 (it decodes on the card to measure brightness, black frames and frozen frames), but the render's output is H.264 or HEVC.
Frequently asked questions
Does Instagram accept HEVC? What matters more is that the video opens at every step before the upload. That is why we prefer H.264, which causes no trouble at any of them.
Does HEVC look better? At the same quality setting, the picture was the same in our tests. HEVC's gain is size, not sharpness.
What is faststart? Moving the MP4 index to the beginning. Without it, the browser has to download the whole file before it starts playing.
Why skip B-frames? They save a little space but scramble the order of frames in the file. Without them, the engine writes the video in order and skips still frames almost for free.
More on how frames travel in the post about the Kodecz render engine. The videos Konecz delivers come out in H.264 by default, ready for any network; see some in the portfolio.