x264 Presets at CRF 23 vs Medium on Three 10-Second Clips: veryslow 7-12% Smaller, veryfast 2-2.6 VMAF Lower
If you keep the CRF the same and only change the x264 preset, do you get the same quality in a smaller file, or something else? On November 25, 2026, we encoded the first 10 seconds of three of our own finished 1080x1920 vertical videos with six presets at -crf 23 and scored every result with VMAF against a lossless copy of the same 10 seconds. This follows up our earlier CRF test, where one 10-second clip at CRF 23 scored lower on veryfast than on medium. This time we used three different clips, six presets including veryslow, and logged encode times.
Short answer from these three samples, all compared with medium: veryslow used 7.1% to 12.0% fewer bytes and scored within 0.12 VMAF points, but took 3.6 to 4.5 times as long. slow used 1.6% to 6.2% fewer bytes in 1.1 to 1.5 times the time. veryfast also made smaller files (11% to 17% below medium), but it had the largest VMAF drop of any preset on every clip: 2.0 to 2.6 points lower. ultrafast made files about 2 to 4.3 times the size of medium. So at a fixed CRF, the preset changed file size and, for veryfast, the VMAF score too; it was not a pure speed setting. The same pattern for veryfast showed up in the earlier one-clip test.
What we ran
- Machine: Apple M5 Pro. FFmpeg:
ffmpeg version 9.0.1with libx264 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).
- For each source we decoded the first 10 seconds to a lossless FFV1 file and used that as the reference. Then we encoded it with
-c:v libx264 -crf 23 -pix_fmt yuv420pand presets ultrafast, veryfast, faster, medium, slow and veryslow. No audio. - Scores: default VMAF model through FFmpeg's
libvmaffilter, encode compared with the lossless reference. Times are wall-clock seconds for one run each.
Results, compared with medium
| Preset | AI character clip | Product short with captions | NASA footage Short |
|---|---|---|---|
| ultrafast | +96.6% size, time ratio 0.31, VMAF +0.46 | +113.0% size, time ratio 0.36, VMAF +0.03 | +328.9% size, time ratio 0.31, VMAF +0.46 |
| veryfast | −16.5% size, time ratio 0.47, VMAF −2.00 | −11.3% size, time ratio 0.51, VMAF −2.56 | −16.5% size, time ratio 0.51, VMAF −1.96 |
| faster | +3.9% size, time ratio 0.74, VMAF −0.31 | +3.1% size, time ratio 0.71, VMAF −0.36 | −0.5% size, time ratio 0.69, VMAF −0.44 |
| medium | 4.49 MB, 4.21 s, VMAF 81.35 | 8.47 MB, 5.82 s, VMAF 83.49 | 2.53 MB, 3.06 s, VMAF 92.48 |
| slow | −6.2% size, time ratio 1.53, VMAF −0.04 | −1.6% size, time ratio 1.31, VMAF +0.05 | −3.6% size, time ratio 1.10, VMAF +0.00 |
| veryslow | −12.0% size, time ratio 4.48, VMAF +0.12 | −7.1% size, time ratio 4.23, VMAF −0.09 | −7.9% size, time ratio 3.57, VMAF −0.06 |
Absolute numbers for medium are in the middle row; every other cell is relative to that row for the same clip. A time ratio of 0.50 means half as long as medium. The longest single encode was veryslow on the product short: 24.64 seconds for 10 seconds of video.
What this means for a creator exporting Shorts
- If file size matters (slow uploads, storage), slow and veryslow scored within 0.12 VMAF points of medium with fewer bytes here. veryslow's 7% to 12% saving came at about four times medium's encode time; slow saved 1.6% to 6.2% at 1.1 to 1.5 times. Which is worth it depends on how many videos you export.
- Do not read veryfast's small files as a bargain. At the same CRF it scored 2.0 to 2.6 VMAF points below medium on all three clips, the largest drop we saw. If you need speed, faster was at most about 0.44 points below medium in this test.
- ultrafast was the quickest option tested and may suit drafts. Its VMAF was at or slightly above medium, but its files were about 2 to 4.3 times the size of medium's. The NASA footage clip, which compresses well at the other presets, grew the most.
- Platforms re-encode what you upload, so a smaller upload file does not guarantee a better-looking video after processing. This test only measures the file you hand over.
Limits of this test
- Three 10-second clips, one run per setting. Timing can vary between runs and machines; treat the time ratios as rough.
- The references were decoded from our already-compressed finished files, not from original camera or render masters. Scores measure distance from those files.
- One CRF value (23), 8-bit x264 only, default tune. We did not test x265, hardware encoders, two-pass bitrate targets or other CRF values with these presets.
- We used the default VMAF model. The VMAF project documents a separate phone-viewing model (model notes), which we did not use.
Related tests on this site
- CRF 18 vs 23 vs 28 for a vertical AI short mainly changed the CRF on medium, with one veryfast and one slow encode at CRF 23 on a single clip.
- FFmpeg upscaling test: 448x832 to 1080x1920 used the same three source files (first 10 seconds of each).
Sources checked
The preset and crf options are listed in the libx264 section of the official FFmpeg codecs documentation, which describes crf as the setting for constant quality mode. Our results show that "constant quality" across presets is approximate: veryfast landed about 2 VMAF points lower at the same CRF. VMAF scoring used the libvmaf filter documented 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