Does Denoising Before Encoding Save File Size? hqdn3d Pre-Filter: Size Savings vs. VMAF Loss (x264, x265)
We applied FFmpeg's hqdn3d denoiser (light 2:1.5:3:2.25, strong 4:3:6:4.5) to four 10-second 1080p25 clips, encoded them with x264 and x265 at the medium preset, and measured how file size changes at the same CRF and at the same VMAF. At the same CRF, both settings cut file size a lot at low CRF (high quality), by up to −29.2% for the strong setting. But VMAF is measured against the original (noise included), so it dropped too (up to −6.09 points for strong). When we matched VMAF, the light setting was nearly a wash (−2.0% to +3.3%), and the strong setting produced larger files in all 14 comparable cases (+2.2% to +23.4%).
The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)
Denoising with hqdn3d made files smaller at the same CRF (in about 23 of 32 comparisons for light, 25 for strong), but gave no savings once we matched VMAF. At the same CRF, size changed by −17.8% to +2.0% for light (2:1.5:3:2.25) and −29.2% to +3.8% for strong (4:3:6:4.5), with the savings concentrated at low CRF. Mean VMAF changed by about −1.27 to +0.96 points for light and −6.09 to +1.72 for strong. Interpolating to VMAF 90 and 80 and comparing size at equal scores, light came out at −2.0% to +3.3% across 16 comparisons (8 smaller, 8 larger, effectively the same), while strong was larger in all 14 comparable cases (+2.2% to +23.4%). One caveat: VMAF compares against the noisy original, so it is a metric that works against denoising. This data cannot tell you whether the denoised video looks cleaner to the eye.
Why this matters
If you search for ways to reduce video file size, you will run into the advice that removing noise before encoding improves compression efficiency. The common explanation is that an encoder treats noise as "detail that has to be drawn" and spends bits on it, so removing it beforehand saves those bits. We wanted to measure how much it actually saves, how much VMAF it costs in return, and whether there is still a gain when you compare at matched scores. The opposite kind of pre-filter, sharpening, is covered in Does Sharpening Really Inflate VMAF?, and ways of handling grain on the encoder side are covered in SVT-AV1 film-grain synthesis and x264/x265 tune film and grain. This article is about removing noise with a filter before the encoder.
Both VMAF and PSNR were measured against the original video from before denoising. Denoising deliberately removes part of the original, so however well it works, the removed content shows up as a difference and the score drops. This data alone cannot separate "VMAF dropped because quality got worse" from "VMAF dropped because the removed noise counted as a difference". Likewise, "no gain at equal VMAF" does not mean "no gain to the eye". We did not do any visual comparison by eye.
Test method
VMAF is a quality metric from Netflix that compares the original and the encoded video frame by frame and scores it from 0 to 100. The "mean VMAF" in this article is vmaf_mean in the CSV, and "bottom 5%" is vmaf_p5. hqdn3d is FFmpeg's denoising filter; it smooths the picture by looking at both space (within a frame) and time (neighboring frames). Its arguments are, in order, luma spatial : chroma spatial : luma temporal : chroma temporal, and larger values remove more. In this experiment, "strong (dn4)" 4:3:6:4.5 is known to be the default in the FFmpeg documentation, and "light (dn2)" 2:1.5:3:2.25 is half of that.
Encoder settings
Input and output paths are omitted. Each of the values above was substituted for Q one at a time. CRF numbers for x264 and x265 do not mean the same quality, so we did not compare them on the same row.
Interpolation method
To get the size at equal VMAF, we found the two adjacent measured points that bracket the target VMAF (90 or 80) and linearly interpolated bitrate (kbps) on a log scale against VMAF. Bitrate is proportional to file size. If the target was outside the measured range, we did not extrapolate and wrote "not reached". We did not use 95, because the strong setting could not reach it in many cells. The top-quality points for blue_sky (CRF 20 and 22) saturate at a VMAF of 99.97 or higher, so we did not interpret score differences there. Same-CRF comparisons involve no interpolation; they are plain differences of CSV values.
Test clip sources and licenses
All four clips are 1080p25 videos made by TUM / Taurus Media Technik (2001), downloaded from the Xiph.org derf collection (media.xiph.org/video/derf/y4m/). The accompanying ReadMe_1080p.txt states "Restrictions of use: No restrictions" and "Copyright: No Copyright" (checked on 2026-11-08).
Results by clip (raw data)
In each curve, the x-axis is bitrate and the y-axis is VMAF. You can compare the baseline (medium) and the denoised variants (+dn2, +dn4) of the same encoder on one graph. A curve that is to the left of the baseline (smaller file) at the same height is a gain; a curve that sags below it has a lower score at the same file size. The table lists file size, VMAF, bottom 5% and PSNR for each CRF. Speed was measured at IDLE priority and fluctuates, so treat it as a rough reference only.
blue_sky — blue sky and tree branches
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 9,140.9 kbps | 99.98 | 100.00 | 41.10 | 20.55 | 34.0 |
| x264 (H.264) · preset medium+dn2 | 20 | 8,584.6 kbps | 99.98 | 100.00 | 40.94 | 20.77 | 35.4 |
| x264 (H.264) · preset medium+dn4 | 20 | 8,117.8 kbps | 99.98 | 100.00 | 40.34 | 20.48 | 35.3 |
| x264 (H.264) · preset medium | 28 | 2,490.2 kbps | 99.51 | 97.44 | 37.25 | 34.22 | 20.9 |
| x264 (H.264) · preset medium+dn2 | 28 | 2,490.2 kbps | 99.38 | 97.02 | 37.24 | 32.59 | 23.9 |
| x264 (H.264) · preset medium+dn4 | 28 | 2,471.6 kbps | 98.91 | 95.66 | 37.02 | 31.47 | 24.5 |
| x264 (H.264) · preset medium | 36 | 961.5 kbps | 83.58 | 75.26 | 32.55 | 47.05 | 16.3 |
| x264 (H.264) · preset medium+dn2 | 36 | 970.2 kbps | 83.46 | 75.11 | 32.58 | 43.37 | 19.3 |
| x264 (H.264) · preset medium+dn4 | 36 | 978.5 kbps | 82.55 | 76.09 | 32.52 | 41.79 | 20.2 |
| x264 (H.264) · preset medium | 44 | 477.2 kbps | 50.64 | 41.10 | 27.55 | 53.6 | 13.7 |
| x264 (H.264) · preset medium+dn2 | 44 | 482.8 kbps | 50.65 | 42.11 | 27.59 | 47.98 | 17.5 |
| x264 (H.264) · preset medium+dn4 | 44 | 487.8 kbps | 50.51 | 41.73 | 27.59 | 47.21 | 17.8 |
| x265 (HEVC) · preset medium | 22 | 6,348.2 kbps | 99.98 | 100.00 | 41.14 | 13.13 | 66.4 |
| x265 (HEVC) · preset medium+dn2 | 22 | 6,303.3 kbps | 99.98 | 100.00 | 41.02 | 14.7 | 65.0 |
| x265 (HEVC) · preset medium+dn4 | 22 | 6,068.7 kbps | 99.97 | 100.00 | 40.35 | 17.12 | 59.7 |
| x265 (HEVC) · preset medium | 30 | 1,874.4 kbps | 98.08 | 92.61 | 37.42 | 25.28 | 38.5 |
| x265 (HEVC) · preset medium+dn2 | 30 | 1,899.4 kbps | 98.17 | 92.28 | 37.45 | 26.5 | 39.0 |
| x265 (HEVC) · preset medium+dn4 | 30 | 1,874.7 kbps | 97.05 | 91.56 | 37.14 | 26.69 | 38.6 |
| x265 (HEVC) · preset medium | 38 | 638.4 kbps | 81.81 | 72.80 | 32.95 | 34.08 | 28.4 |
| x265 (HEVC) · preset medium+dn2 | 38 | 647.3 kbps | 81.81 | 70.19 | 32.98 | 30.6 | 32.2 |
| x265 (HEVC) · preset medium+dn4 | 38 | 643.7 kbps | 80.74 | 69.58 | 32.88 | 30.16 | 33.3 |
| x265 (HEVC) · preset medium | 46 | 201.6 kbps | 49.68 | 40.28 | 27.90 | 40.19 | 22.4 |
| x265 (HEVC) · preset medium+dn2 | 46 | 205.1 kbps | 49.84 | 38.97 | 27.91 | 14.71 | 31.0 |
| x265 (HEVC) · preset medium+dn4 | 46 | 206 kbps | 49.74 | 38.46 | 27.91 | 38.63 | 25.9 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 7,819.9 kbps | 98.75 | 95.97 | 41.65 | 17.44 | 42.7 |
| x264 (H.264) · preset medium+dn2 | 20 | 7,032.1 kbps | 98.37 | 95.46 | 41.57 | 17.6 | 45.0 |
| x264 (H.264) · preset medium+dn4 | 20 | 6,518.5 kbps | 95.82 | 92.77 | 40.92 | 18.75 | 42.7 |
| x264 (H.264) · preset medium | 28 | 2,480 kbps | 88.67 | 85.91 | 38.72 | 28.25 | 30.3 |
| x264 (H.264) · preset medium+dn2 | 28 | 2,452.9 kbps | 88.49 | 85.83 | 38.76 | 27.49 | 32.9 |
| x264 (H.264) · preset medium+dn4 | 28 | 2,420.4 kbps | 86.28 | 83.75 | 38.50 | 29.99 | 30.3 |
| x264 (H.264) · preset medium | 36 | 1,054.6 kbps | 65.05 | 62.30 | 34.95 | 38.56 | 23.4 |
| x264 (H.264) · preset medium+dn2 | 36 | 1,047.9 kbps | 65.23 | 62.51 | 35.04 | 28.8 | 29.4 |
| x264 (H.264) · preset medium+dn4 | 36 | 1,033 kbps | 64.56 | 61.84 | 35.03 | 29.58 | 27.5 |
| x264 (H.264) · preset medium | 44 | 482.4 kbps | 31.52 | 28.57 | 30.52 | 43.78 | 17.9 |
| x264 (H.264) · preset medium+dn2 | 44 | 481.8 kbps | 32.48 | 29.60 | 30.64 | 32.3 | 22.8 |
| x264 (H.264) · preset medium+dn4 | 44 | 479.5 kbps | 32.58 | 29.77 | 30.72 | 46.76 | 18.7 |
| x265 (HEVC) · preset medium | 22 | 4,357.1 kbps | 97.84 | 95.06 | 41.48 | 10.69 | 87.2 |
| x265 (HEVC) · preset medium+dn2 | 22 | 4,057.4 kbps | 97.48 | 94.69 | 41.38 | 12.96 | 78.6 |
| x265 (HEVC) · preset medium+dn4 | 22 | 3,770 kbps | 94.70 | 91.92 | 40.72 | 13.52 | 75.7 |
| x265 (HEVC) · preset medium | 30 | 1,472.2 kbps | 87.05 | 84.36 | 38.54 | 17.65 | 55.6 |
| x265 (HEVC) · preset medium+dn2 | 30 | 1,454.8 kbps | 87.02 | 84.54 | 38.59 | 18.32 | 56.1 |
| x265 (HEVC) · preset medium+dn4 | 30 | 1,414.3 kbps | 85.10 | 82.58 | 38.33 | 18.87 | 54.7 |
| x265 (HEVC) · preset medium | 38 | 570.8 kbps | 62.10 | 58.76 | 34.67 | 23.92 | 41.0 |
| x265 (HEVC) · preset medium+dn2 | 38 | 572.5 kbps | 62.84 | 59.23 | 34.80 | 24.16 | 42.7 |
| x265 (HEVC) · preset medium+dn4 | 38 | 566.5 kbps | 62.42 | 58.97 | 34.79 | 24.53 | 42.4 |
| x265 (HEVC) · preset medium | 46 | 213.5 kbps | 27.71 | 23.33 | 30.27 | 31.08 | 29.3 |
| x265 (HEVC) · preset medium+dn2 | 46 | 217.8 kbps | 28.49 | 24.06 | 30.38 | 30.52 | 33.0 |
| x265 (HEVC) · preset medium+dn4 | 46 | 219.3 kbps | 29.42 | 25.22 | 30.44 | 31.5 | 32.3 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 29,769.2 kbps | 99.96 | 100.00 | 39.77 | 12.59 | 82.9 |
| x264 (H.264) · preset medium+dn2 | 20 | 28,861.4 kbps | 99.96 | 100.00 | 39.61 | 12.65 | 84.5 |
| x264 (H.264) · preset medium+dn4 | 20 | 27,169.6 kbps | 99.94 | 99.98 | 38.81 | 12.83 | 82.8 |
| x264 (H.264) · preset medium | 28 | 11,622.6 kbps | 88.97 | 86.99 | 35.38 | 15.77 | 67.1 |
| x264 (H.264) · preset medium+dn2 | 28 | 11,462.3 kbps | 88.30 | 86.18 | 35.33 | 15.55 | 69.0 |
| x264 (H.264) · preset medium+dn4 | 28 | 11,060.8 kbps | 84.99 | 82.72 | 35.04 | 15.78 | 67.9 |
| x264 (H.264) · preset medium | 36 | 4,446.8 kbps | 52.61 | 49.61 | 30.79 | 20.64 | 44.6 |
| x264 (H.264) · preset medium+dn2 | 36 | 4,406.5 kbps | 52.39 | 48.86 | 30.77 | 20.67 | 47.0 |
| x264 (H.264) · preset medium+dn4 | 36 | 4,281.5 kbps | 51.19 | 48.14 | 30.68 | 20.45 | 45.9 |
| x264 (H.264) · preset medium | 44 | 1,365.6 kbps | 24.48 | 21.81 | 25.91 | 23.64 | 25.0 |
| x264 (H.264) · preset medium+dn2 | 44 | 1,351.2 kbps | 24.46 | 21.43 | 25.91 | 23.07 | 27.6 |
| x264 (H.264) · preset medium+dn4 | 44 | 1,309.8 kbps | 24.42 | 21.54 | 25.89 | 22.94 | 27.1 |
| x265 (HEVC) · preset medium | 22 | 19,060.6 kbps | 99.59 | 98.11 | 38.69 | 4.12 | 237.8 |
| x265 (HEVC) · preset medium+dn2 | 22 | 18,641.5 kbps | 99.28 | 97.19 | 38.60 | 4.14 | 239.2 |
| x265 (HEVC) · preset medium+dn4 | 22 | 17,600.2 kbps | 96.14 | 93.14 | 37.98 | 4.3 | 229.8 |
| x265 (HEVC) · preset medium | 30 | 7,534.2 kbps | 79.56 | 74.65 | 34.54 | 5.85 | 167.4 |
| x265 (HEVC) · preset medium+dn2 | 30 | 7,441.9 kbps | 79.20 | 74.36 | 34.54 | 5.88 | 169.3 |
| x265 (HEVC) · preset medium+dn4 | 30 | 7,137 kbps | 76.56 | 71.72 | 34.32 | 6.04 | 164.5 |
| x265 (HEVC) · preset medium | 38 | 2,512.6 kbps | 46.32 | 41.08 | 30.21 | 9.01 | 109.3 |
| x265 (HEVC) · preset medium+dn2 | 38 | 2,498.5 kbps | 46.35 | 40.89 | 30.23 | 9.06 | 110.7 |
| x265 (HEVC) · preset medium+dn4 | 38 | 2,418.2 kbps | 45.46 | 40.24 | 30.19 | 9.04 | 110.9 |
| x265 (HEVC) · preset medium | 46 | 677.3 kbps | 23.45 | 20.57 | 26.49 | 18.65 | 52.9 |
| x265 (HEVC) · preset medium+dn2 | 46 | 675.4 kbps | 23.35 | 20.65 | 26.51 | 18.5 | 56.0 |
| x265 (HEVC) · preset medium+dn4 | 46 | 666 kbps | 23.30 | 20.71 | 26.48 | 18.44 | 55.8 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 8,033 kbps | 95.62 | 94.09 | 42.04 | 17.09 | 49.0 |
| x264 (H.264) · preset medium+dn2 | 20 | 6,605.1 kbps | 94.34 | 92.82 | 41.83 | 18.18 | 48.8 |
| x264 (H.264) · preset medium+dn4 | 20 | 5,686.4 kbps | 89.53 | 87.64 | 41.01 | 19.69 | 42.6 |
| x264 (H.264) · preset medium | 28 | 2,275.6 kbps | 84.82 | 82.40 | 39.84 | 31.59 | 28.7 |
| x264 (H.264) · preset medium+dn2 | 28 | 2,155.5 kbps | 84.02 | 81.63 | 39.77 | 30.47 | 30.9 |
| x264 (H.264) · preset medium+dn4 | 28 | 1,996.8 kbps | 80.58 | 78.12 | 39.33 | 30.94 | 28.4 |
| x264 (H.264) · preset medium | 36 | 875.7 kbps | 63.43 | 59.94 | 36.45 | 44.56 | 19.5 |
| x264 (H.264) · preset medium+dn2 | 36 | 846 kbps | 63.25 | 59.98 | 36.50 | 42.81 | 22.1 |
| x264 (H.264) · preset medium+dn4 | 36 | 795.7 kbps | 61.94 | 58.73 | 36.40 | 45.48 | 20.7 |
| x264 (H.264) · preset medium | 44 | 319 kbps | 35.32 | 31.12 | 31.84 | 47.86 | 14.5 |
| x264 (H.264) · preset medium+dn2 | 44 | 312.3 kbps | 34.83 | 31.00 | 31.92 | 46.14 | 17.4 |
| x264 (H.264) · preset medium+dn4 | 44 | 307.7 kbps | 35.41 | 31.63 | 32.03 | 49.38 | 16.0 |
| x265 (HEVC) · preset medium | 22 | 4,009.4 kbps | 93.76 | 92.06 | 41.77 | 11.94 | 83.0 |
| x265 (HEVC) · preset medium+dn2 | 22 | 3,634.1 kbps | 92.62 | 90.88 | 41.62 | 12.33 | 82.2 |
| x265 (HEVC) · preset medium+dn4 | 22 | 3,230.4 kbps | 88.05 | 86.15 | 40.84 | 13.68 | 74.5 |
| x265 (HEVC) · preset medium | 30 | 1,233.5 kbps | 81.82 | 78.95 | 39.35 | 19.46 | 50.8 |
| x265 (HEVC) · preset medium+dn2 | 30 | 1,183.9 kbps | 81.11 | 78.20 | 39.32 | 19.76 | 51.6 |
| x265 (HEVC) · preset medium+dn4 | 30 | 1,098.7 kbps | 77.87 | 74.93 | 38.91 | 21.31 | 48.4 |
| x265 (HEVC) · preset medium | 38 | 370.5 kbps | 58.30 | 54.34 | 35.69 | 28.78 | 32.2 |
| x265 (HEVC) · preset medium+dn2 | 38 | 366.2 kbps | 58.13 | 54.05 | 35.72 | 28.01 | 35.5 |
| x265 (HEVC) · preset medium+dn4 | 38 | 356.2 kbps | 56.81 | 52.74 | 35.60 | 28.67 | 34.5 |
| x265 (HEVC) · preset medium | 46 | 123.4 kbps | 29.58 | 25.82 | 31.23 | 33.43 | 24.7 |
| x265 (HEVC) · preset medium+dn2 | 46 | 124.4 kbps | 29.83 | 26.33 | 31.29 | 32.08 | 28.0 |
| x265 (HEVC) · preset medium+dn4 | 46 | 128.1 kbps | 29.64 | 26.20 | 31.32 | 32.16 | 26.7 |
How to read it, and what we observed
1. At the same CRF: size drops a lot at low CRF, and VMAF drops with it
Each cell in the tables below is "denoised variant − baseline" for the same encoder at the same CRF. The format is size change / mean VMAF change (points).
Differences of CSV values, relative to the baseline (x264 medium) at the same CRF.
Differences of CSV values, relative to the baseline (x264 medium) at the same CRF.
Differences of CSV values, relative to the baseline (x265 medium) at the same CRF.
Differences of CSV values, relative to the baseline (x265 medium) at the same CRF.
- Size mostly went down, but how much depended heavily on CRF. Of the 32 comparisons (4 clips × 4 CRF steps × 2 encoders), size went down in 23 for light and 25 for strong. The biggest reductions were at low CRF. Strong x264 at CRF 20 ranged from −8.7% (riverbed) to −29.2% (rush_hour), and light x264 at CRF 20 from −3.0% to −17.8%. At the highest CRFs (44 and 46), light ranged from −2.1% to +2.0% and strong from −4.1% to +3.8%, so size barely changed or even went up.
- Some cells got larger. Strong x265 at CRF 46 was +3.8% for rush_hour, +2.7% for pedestrian_area and +2.2% for blue_sky. This experiment did not check why. A guess is that at high CRF the encoder already discards a lot of detail, so there was little left for the pre-filter to save.
- VMAF went down in about 19 cells for light, up in 10, and stayed the same in 3. For strong, it went down in 26. The change ranged from −1.27 (rush_hour x264 CRF 20) to +0.96 (pedestrian_area x264 CRF 44) for light, and from −6.09 (rush_hour x264 CRF 20) to +1.72 (pedestrian_area x265 CRF 46) for strong. The 6 strong cells where VMAF went up are all near the highest CRFs (x264 44, x265 38 and 46), where the scores themselves are low, in the 29 to 63 range.
- The cells where size dropped the most also lost the most VMAF. For strong x264 at CRF 20, rush_hour (−29.2%) and pedestrian_area (−16.6%) had the biggest size reductions and also the biggest VMAF drops (−6.09, −2.94). Size savings and score loss moved in the same direction. This metric cannot tell whether what was removed was noise or real texture.
- blue_sky showed no score change at its top-quality point. At x264 CRF 20, VMAF was 99.98 for both light and strong, yet size dropped by 6.1% and 11.2%. But this range is saturated, so any loss simply doesn't show up in the score. PSNR in the same cells fell by about 0.16 dB for light and 0.76 dB for strong. At CRF 28 and above, the size change was small, −0.7% to +2.2%.
- Bottom 5% VMAF (vmaf_p5) moved in the same direction as the mean. For strong x264 rush_hour at CRF 20, the mean dropped by 6.09 and the bottom 5% by 6.44. In most cells the bottom-5% change was similar to the mean change. There was one cell where the mean stayed flat but the bottom 5% fell (blue_sky x265 light at CRF 38: mean +0.01, bottom 5% −2.61), an example of why the mean alone is not enough to call denoising harmless.
2. At the same VMAF: size comparison (interpolated)
Bitrate interpolated at mean VMAF 90. Parentheses show the change versus the baseline of the same encoder. For a 10-second clip, kbps × 1.25 ÷ 1,000 gives the size in MB. For blue_sky x264, the upper end of the interpolation interval is 99.51 (CRF 28), which is close to saturation.
Bitrate interpolated at mean VMAF 80. Parentheses show the change versus the baseline of the same encoder. For cells with a wide interpolation interval, see the Limitations section.
- Light (dn2) made practically no difference at the same VMAF. The 16 comparisons ranged from −2.0% (rush_hour x264, VMAF 80) to +3.3% (riverbed x264, VMAF 90), with 8 smaller and 8 larger. At the same CRF the files were smaller, but once the score was matched, that saving was just a trade for the lost score. Differences this small may be within interpolation error.
- Strong (dn4) actually produced larger files at the same VMAF. All 14 comparable cases (6 at VMAF 90, 8 at VMAF 80) were larger than the baseline, from +2.2% (pedestrian_area x265, VMAF 80) to +23.4% (pedestrian_area x264, VMAF 90). In size terms, raising CRF to bring the score down to the same height was a better deal than denoising. Keep in mind, though, that the score is a metric that works against denoising.
- Strong on rush_hour did not reach VMAF 90. The maximum was 89.53 for x264 (CRF 20) and 88.05 for x265 (CRF 22). The baseline reached 95.62 at CRF 20 and 93.76 at CRF 22, so strong denoising lowered the achievable score ceiling itself.
- The gap grew as VMAF got higher. The size increase for strong was +2.2% to +8.8% at VMAF 80 (excluding rush_hour x265 at +22.5%) and +5.8% to +23.4% at VMAF 90. An explanation that it gets harder to close the gap to the original at higher scores fits the data, but this experiment did not test the cause.
- The amount of change varied by content. At the same CRF, the size savings were larger for rush_hour and pedestrian_area and smaller for blue_sky (CRF 28 and above) and for light on riverbed. At VMAF 90, the size increase for strong was larger for pedestrian_area (x264 +23.4%, x265 +17.8%) and riverbed x264 (+17.8%), and smaller for blue_sky (+5.8%, +7.6%) and riverbed x265 (+8.5%). But blue_sky is close to saturation in score, so its reliability is low.
3. Speed
The filter adds a step, but the smoother video can also leave the encoder less to do, so encoding CPU time (utime) went different ways depending on CRF. For the strong setting, utime at the lowest CRF was 0.87 to 1.04 times the baseline, and at the highest CRF it was 1.04 to 1.30 times (range across x264 and x265 combined). Because we ran at IDLE priority and timings fluctuate, this article does not draw any conclusion from speed.
Limitations
- The score works against denoising. VMAF and PSNR compare against the original with its noise. Even if the denoised video looks cleaner to a person, it is normal for the score to drop. So "no gain at the same VMAF" is a comparison by score, not a verdict on viewing quality. Measuring against a clean source (video with artificially added noise) would avoid this problem, but we did not do that this time.
- These are interpolated values. We did not encode to hit VMAF 90 or 80 directly. Where the VMAF gap between CRF points is more than 10 points, the error can be large. In particular, at VMAF 80 the x264 baseline for blue_sky (50.6 to 83.6), pedestrian_area (65.0 to 88.7) and riverbed (52.6 to 89.0) all span more than 20 points between two points, and for riverbed x265, VMAF 90 and 80 fall between the same two points (79.6 and 99.6). Use them only to read the direction.
- There are only four 10-second clips. We did not measure how much noise each clip actually has (shooting conditions, sensor, compression history). The split between "clean sky vs. scenes with lots of texture and motion" is a guess from the clip content, not a measured noise level. Results may differ for low-light footage, older cameras, or video that has been compressed several times.
- There are only two hqdn3d settings. The light
2:1.5:3:2.25and strong4:3:6:4.5pair. We did not vary the spatial and temporal strengths separately or test other denoisers (nlmeans, atadenoise and so on). - 8-bit yuv420p, 4 threads per job, and only the medium preset. One PC, one measurement run, and speed is for reference only because of IDLE priority. We only tested x264 and x265, not AV1.
Practical recommendations
- This data does not support denoising just to cut file size. The light setting produced the same size at the same score, and the strong setting produced larger files when we matched the score. To cut size at a matched score, setting CRF per video comes first, and the CRF recommender can help you pick a target CRF.
- Treat denoising as a choice about how the video looks, not about size. If the noise in the source bothers you and you want it gone, the light hqdn3d setting is a trade: at the same CRF you get a smaller file (more so at high quality) and accept a slightly lower score. You should decide this by comparing the results with your own eyes. The A/B quality comparison slider can help.
- Applying the strong setting at low CRF also costs a lot of score. Strong x264 at CRF 20 gained −8.7% to −29.2% in size but VMAF dropped by 0.00 to −6.09 points (the cells that dropped by 0.5 or more were pedestrian_area at −2.94 and rush_hour at −6.09). If your goal is high-quality archiving, leaving the original texture intact had no downside by this score.
- At high CRF (low-quality range), applying it gained almost nothing. Size changed by around ±4% for both light and strong. To cut size in this range, raising CRF directly is the surer way; see what one VMAF point costs in file size.
- When comparing pre-filters, remember that the filter's own effect gets mixed into the score against the original. Sharpening moved the metric toward a higher score and denoising moved it toward a lower one. For the opposite case, see the sharpening experiment, and for interpreting scores, see the VMAF score interpreter. To run your own comparison, you can use the VMAF FFmpeg command builder.
The full raw data can be downloaded as a CSV at the bottom of the page. You can recompute the same-CRF differences and the interpolated values yourself from the vmaf_mean, vmaf_p5, psnr_y, size_bytes and kbps columns of the CSV.