Does H.265 Make Our Shorts Smaller Than H.264 at the Same VMAF? We Tested Three Clips
If you export vertical Shorts with FFmpeg, including AI-made clips, switching from H.264 (libx264) to H.265/HEVC (libx265) is the usual advice for smaller files. But does the file actually get smaller at the same picture score, and what does it cost in encoding time? On December 2, 2026, we took the first 10 seconds of three of our own finished 1080x1920 videos, encoded them with x264 medium at CRF 23 and with x265 medium at four CRF values, and scored every file with VMAF against a lossless copy of the same 10 seconds.
Short answer from these three samples: yes, but how much depends on the clip and on which x265 CRF you call "the same". At x265 CRF 22, all three clips stayed within 0.36 VMAF points of the x264 file and came out 2.3% to 22.8% smaller. At CRF 24, all three were within 0.89 points (two of them within 0.25) and came out 25.3% to 40.7% smaller. For the AI character clip and the NASA footage Short, the x264 score sat between x265 CRF 22 and CRF 24, so their exact matched-score saving lies somewhere between those two rows; we did not run CRF 23. Across all twelve x265 encodes, x265 medium took 1.59 to 2.74 times as long as x264 medium.
What we ran
- Machine: Apple M5 Pro, macOS 26.6.2. FFmpeg:
ffmpeg version 9.0.1with libx264, libx265 (x265 reported "HEVC encoder version 4.3+1-e9b8812") and libvmaf. - Three sources, all our own finished 1080x1920 videos: an AI character clip (24 fps, no on-screen text), an AI-assisted product short with large burned-in captions (30 fps), and a science Short built on public NASA footage with our captions (30 fps). They are the same three files as in our x264 preset test and our Mac hardware encoder test.
- For each source we decoded the first 10 seconds to a lossless FFV1 file and used it as both the encoder input and the VMAF reference.
- Baseline:
-c:v libx264 -preset medium -crf 23 -pix_fmt yuv420p, no audio. - H.265:
-c:v libx265 -preset medium -crf N -tag:v hvc1 -pix_fmt yuv420pwith N = 22, 24, 26 and 28, no audio. No other encoder options apart from turning x265's console log down to errors. - Every setting was encoded three times. Times are the median wall-clock seconds of the three runs and include decoding the lossless input. All three runs of each setting produced exactly the same file size, and we scored the file from the third run with the default VMAF model through FFmpeg's
libvmaffilter.
Results, compared with x264 medium at CRF 23
| Encode | AI character clip | Product short with captions | NASA footage Short |
|---|---|---|---|
| x264 medium, CRF 23 (baseline) | 4.49 MB, 2.23 s, VMAF 81.35 | 8.47 MB, 2.55 s, VMAF 83.49 | 2.53 MB, 1.80 s, VMAF 92.48 |
| x265 medium, CRF 22 | −22.8% size, time ratio 1.97, VMAF +0.36 | −12.1% size, time ratio 2.70, VMAF −0.04 | −2.3% size, time ratio 2.74, VMAF +0.22 |
| x265 medium, CRF 24 | −40.7% size, time ratio 1.80, VMAF −0.21 | −31.6% size, time ratio 2.67, VMAF −0.89 | −25.3% size, time ratio 2.72, VMAF −0.25 |
| x265 medium, CRF 26 | −54.0% size, time ratio 1.68, VMAF −1.02 | −46.9% size, time ratio 2.66, VMAF −2.02 | −43.1% size, time ratio 2.71, VMAF −0.95 |
| x265 medium, CRF 28 | −64.0% size, time ratio 1.59, VMAF −2.14 | −59.0% size, time ratio 2.60, VMAF −3.61 | −57.0% size, time ratio 2.67, VMAF −1.88 |
The baseline row shows absolute numbers; every other cell is relative to the baseline for the same clip. A time ratio of 2.70 means the x265 encode took 2.70 times as long as x264 medium. The x265 encodes took between 3.54 and 6.89 seconds (medians) for 10 seconds of video.
What this means for a creator exporting Shorts
- Do not assume a CRF value carries over between encoders; measure. x264 and x265 use separate CRF scales. On the product short, x265 CRF 22 already landed 0.04 VMAF points below x264 CRF 23; on the other two clips the x264 score sat between x265 CRF 22 and CRF 24. We did not test x265 at CRF 23, so pick your x265 value by scoring a few settings on your own clips.
- How much you save depends on the clip. At CRF 22 the saving ranged from 2.3% (NASA footage) to 22.8% (AI character clip). At CRF 24, where all three clips were within 0.89 points of the baseline, it ranged from 25.3% to 40.7%. The NASA footage clip, which x264 already compressed to the lowest bitrate of the three, shrank the least at every x265 CRF we tested; at CRF 22 it scored 0.22 points above the x264 file and at CRF 24 0.25 points below, so its saving at an exact match is somewhere between 2.3% and 25.3%.
- You pay in time. Across all twelve x265 encodes, x265 medium took 1.59 to 2.74 times as long as x264 medium. On a 10-second clip that is a few extra seconds; on long exports or batches the same ratio would matter more, though we only timed 10-second clips.
- Check compatibility before switching. Make sure the place you upload to, the editor you hand files to, or the device you play on accepts HEVC. Platforms also re-encode what you upload, so these scores describe the file you hand over, not what viewers finally see.
Limits of this test
- Three 10-second clips on one machine and one FFmpeg build. Other content, longer clips, other machines and other x265 versions may give different numbers.
- We only tested the medium preset for both encoders and four x265 CRF values. "Same VMAF" here means the closest of those four values, not an exact match.
- Encoding times varied between runs. For all three clips the first x264 run was the fastest of its three (for example 1.68 s against 2.23 s and 2.24 s for the AI character clip), so the time ratios are approximate. Times include decoding the lossless input and writing the file.
- The references were decoded from our already-compressed finished files, not from original render masters. We used the default VMAF model, not the phone-viewing model, and VMAF is a computed score, not a viewing test.
Related tests on this site
- x264 presets at CRF 23: the speed and size trade-off inside H.264 on the same three clips.
- Mac hardware H.264 vs x264 at the same bitrate: the faster hardware route on the same clips, and what it cost in VMAF.
Sources checked
The crf, preset and x265-params options are listed in the libx265 section of the official FFmpeg codecs documentation, and x265's own command line documentation describes its CRF rate control and presets. VMAF scoring used the libvmaf filter described in the FFmpeg filters documentation. Every size, time and score above comes from our own run log.
Prepared with AI assistance from our own local test log. Two of the source videos contain AI-generated imagery; one uses public NASA footage. No sponsor, and no affiliate links in this post.
Comments
Post a Comment