Bitrate is a budget, not a quality score. CRF spends bits where the picture needs them; a fixed target can spend more and still leave the worst frame worse. Measure the actual file and inspect more than the average.
Bitrate is a budget; CRF is a rule
A bitrate target tells an encoder how many bits it may spend per second. A CRF setting tells it how much distortion to tolerate and lets the bitrate vary with the picture. Those are different instructions. A fixed target can be met by spending too few bits on a hard frame and too many on an easy one. CRF can spend a lot on a hard frame and very little on a flat one.
This does not make CRF universally better. Delivery specifications often require a bitrate cap, a maximum file size or a specific profile. A two-pass encode can distribute a known budget more carefully than a one-pass target. CRF is a quality-oriented control, not a promise of constant perceptual quality, and it can produce a file that is too large for a destination.
The test compared four CRF settings with three fixed targets on one deliberately noisy source. It measured the actual bitrate, file size, SSIM and PSNR against a lossless reference. Those metrics are proxies. They do not measure motion, temporal stability, banding or whether a viewer prefers the result.
The source was made hard to compress on purpose
The source was 384×216, 24 fps, 3.0 seconds and 72 frames. It combined testsrc2 with temporal noise, then was encoded losslessly with H.264 at -qp 0. The lossless file was 3,774,834 bytes, about 10.07 Mb/s. The noise gives the encoder something to preserve on every frame and makes the bitrate comparison less dependent on flat graphics.
All seven test encodes used libx264 at -preset medium, yuv420p, no audio and MP4 with faststart. The fixed-bitrate outputs used single-pass ABR with maxrate equal to the target and a 2× target VBV buffer. The CRF outputs used CRF 18, 23, 28 and 32.
SSIM and PSNR were calculated against the lossless source. SSIM is reported as an average over frames, with a minimum and a 10th-percentile value. The minimum is useful because an average can hide a bad frame. Neither metric accounts for how the file is viewed, and both can be insensitive to some artifacts that people notice.
The seven encodes
| Encode | Setting | Bytes | Video bitrate | Bits/pixel | SSIM avg | SSIM min | PSNR avg |
|---|---|---|---|---|---|---|---|
| CRF 18 | CRF | 291,577 | 772.9 kb/s | 0.3883 | 0.960768 | 0.957526 | 42.05 dB |
| CRF 23 | CRF | 118,910 | 312.5 kb/s | 0.1570 | 0.955553 | 0.952926 | 40.02 dB |
| CRF 28 | CRF | 63,097 | 163.7 kb/s | 0.0822 | 0.945065 | 0.939785 | 37.04 dB |
| CRF 32 | CRF | 45,067 | 115.6 kb/s | 0.0581 | 0.931971 | 0.923924 | 34.92 dB |
| 1 Mb/s | ABR | 374,930 | 995.2 kb/s | 0.4999 | 0.960841 | 0.950950 | 41.87 dB |
| 2 Mb/s | ABR | 914,897 | 2,435.1 kb/s | 1.2233 | 0.971508 | 0.951922 | 43.76 dB |
| 5 Mb/s | ABR | 2,346,562 | 6,252.8 kb/s | 3.1411 | 0.991371 | 0.986288 | 49.14 dB |
Bits per pixel is video bitrate divided by width, height and frame rate. It normalises the bitrate by the amount of picture being encoded, which makes it easier to compare sources of different sizes. Even at CRF 18, this noisy clip used only 0.39 bits per pixel; the 5 Mb/s target used 3.14. A higher number means more data per pixel, not automatically a better-looking image.
What the CRF curve shows
From CRF 18 to CRF 32, the file fell from 291,577 to 45,067 bytes, an 84.5% reduction. Average SSIM fell by 0.0288 and average PSNR by 7.13 dB. At the same time, the minimum SSIM fell from 0.9575 to 0.9239 and the minimum PSNR from 41.52 to 34.16 dB. The loss is not evenly distributed.
The middle step is more interesting for a practical choice. CRF 23 used 59.2% fewer bytes than CRF 18, while average SSIM fell by 0.0052 and average PSNR by 2.02 dB. A 59% saving for a small average metric drop is often a better trade than spending nearly 300 KB on a 3-second clip. Whether it is acceptable depends on the content and the destination, not on the number alone.
CRF is not a guarantee of a constant visual result. The encoder's rate control can still make different choices at scene cuts, and the metric averages can hide a bad frame. The minimum columns are there to keep that in view. A file with a good average and a poor worst frame can still show a visible glitch or a pulsing texture.
The fixed-bitrate surprise
The 1 Mb/s encode produced 995.2 kb/s, 28.8% more video bitrate than CRF 18. Its average SSIM was 0.960841, only 0.000073 above CRF 18's 0.960768, which is effectively the same at this precision. Its average PSNR was 0.18 dB lower. Its minimum SSIM was 0.0066 lower and its minimum PSNR was 1.97 dB lower.
So the file spent more bits and still had the worse worst frame. That is the headline, but it is not a rule that fixed bitrate always loses. The 2 Mb/s encode had a higher average SSIM and PSNR than CRF 18, because it spent far more bits. It also had a lower minimum SSIM (0.951922 versus 0.957526), so its average improved while its worst frame did not. The 5 Mb/s encode improved both average and minimum, at 6.25 Mb/s and 2.35 MB for 3 seconds.
| Comparison | Bitrate | SSIM avg | SSIM min | PSNR avg | PSNR min |
|---|---|---|---|---|---|
| 1 Mb/s | 995.2 kb/s | 0.960841 | 0.950950 | 41.87 dB | 39.55 dB |
| CRF 18 | 772.9 kb/s | 0.960768 | 0.957526 | 42.05 dB | 41.52 dB |
| 2 Mb/s | 2,435.1 kb/s | 0.971508 | 0.951922 | 43.76 dB | 40.99 dB |
The 2 Mb/s output also overshot its nominal target by 21.8%, and the 5 Mb/s output by 25.1%. A one-pass ABR encode on a 3-second clip has little time to settle, and the VBV constraints interact with the target. “2 Mb/s” is a request, not a measurement. The actual video bitrate is in the table because the file, not the label, is what a viewer downloads.
Choose a control, then measure the file
For on-demand delivery where quality matters, start with CRF. A lower CRF spends more bits; a higher CRF saves space. Test on representative content, not a flat colour bar. Compare a hard frame at 100%, not only a whole-file average. If the destination has a bitrate ceiling or a file-size budget, use a capped CRF or a two-pass target and measure the output.
For a fixed delivery specification, the target may be mandatory even when CRF would be more efficient. In that case, the question is how to meet the target with the least visible damage, not whether CRF is “better.” A two-pass encode can allocate the budget across the programme; a one-pass ABR encode is faster but less controlled. Neither is a substitute for checking the actual bitrate and the worst frames.
The browser video compressor offers CRF 23, 28 and 32 with optional resizing. Those are quality-oriented choices, not fixed-bitrate targets. Its output depends on the browser build, the source and the resolution, so the numbers in this article are evidence from desktop FFmpeg 8.1.1, not a specification for the tool.
A verification checklist that looks past the average
- Record the source resolution, frame rate and duration.
- Encode a short representative section before committing to a long file.
- Measure the actual video bitrate and file size, not only the requested target.
- Compare an average metric and a worst-frame metric. Look at the worst frame at 100%.
- Inspect motion: panning, noise, gradients and text are different stress cases.
- Play the file on the destination device or player, not only in the encoder's preview.
- Keep the source until the delivered file has been checked.
The test is limited to one noisy 384×216 source, one codec, one preset and seven encodes. It does not establish a universal CRF, a universal bitrate or a perceptual ranking. It does show that “more bitrate” and “better worst frame” are not the same claim, and that an average can hide the difference.
CRF 18 · CRF 23 · CRF 28 · CRF 32 · 1 Mb/s · 2 Mb/s · 5 Mb/s
Common questions
Does a higher bitrate always mean better quality?
No. A fixed target can spend bits unevenly and still leave a worse worst frame. In this test the 1 Mb/s file used 28.8% more video bitrate than CRF 18 and had lower minimum SSIM and PSNR.
Is CRF better than a fixed bitrate?
CRF is usually a better quality-oriented control, but a delivery specification may require a bitrate cap or a file-size budget. The right choice depends on the destination and on measuring the actual output.
Why did the 2 Mb/s encode produce 2.435 Mb/s?
It was a short single-pass ABR encode with VBV constraints. The nominal target is a request, not a guarantee. Measure the actual video bitrate rather than trusting the label.
What CRF should I use?
There is no universal value. Test representative content and inspect the worst frames. In this test CRF 23 saved 59.2% of the bytes of CRF 18 with a small average metric drop, but that is one source, not a rule.
Are SSIM and PSNR good measures of quality?
They are useful consistency checks, but they do not measure perceived quality, motion, temporal stability or viewing conditions. Use them with visual inspection, not instead of it.
Sources & further reading
Written for ToolWillow with original explanations and examples. Consult current product documentation for controls that vary by version.



