Lab · 2026-11-25한국어日本語

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)

Bottom line

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.

What this article shows, and what it doesn't

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

ItemDetails
FFmpeg9.0.2 (gyan.dev full_build)
PCOne machine: AMD Ryzen 5 PRO 4650G (6 cores, 12 threads), 16 GB RAM
Threads per job4. Process priority set to IDLE
Input formatyuv420p 8-bit, 1920x1080, 25 fps. Input is the original y4m, output is mkv (no audio)
LengthOnly the first 250 frames (10 seconds) of each clip
VMAFlibvmaf default model (vmaf_v0.6.1), measured per frame against the original video from before denoising
PSNRpsnr_y in the CSV. Luma (Y) PSNR against the original
Measured on2026-11-24 (4 clips × 24 encodes = 96 encodes)

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

Name (CSV preset column)EncoderQuality values (Q), 4 stepsCommand (key options)
medium (baseline)x26420, 28, 36, 44-c:v libx264 -preset medium -crf Q -threads 4
medium+dn2 (light)x26420, 28, 36, 44-vf hqdn3d=2:1.5:3:2.25 -c:v libx264 -preset medium -crf Q -threads 4
medium+dn4 (strong)x26420, 28, 36, 44-vf hqdn3d=4:3:6:4.5 -c:v libx264 -preset medium -crf Q -threads 4
medium (baseline)x26522, 30, 38, 46-c:v libx265 -preset medium -crf Q -x265-params pools=4:log-level=error
medium+dn2 (light)x26522, 30, 38, 46-vf hqdn3d=2:1.5:3:2.25 -c:v libx265 -preset medium -crf Q -x265-params pools=4:log-level=error
medium+dn4 (strong)x26522, 30, 38, 46-vf hqdn3d=4:3:6:4.5 -c:v libx265 -preset medium -crf Q -x265-params pools=4:log-level=error

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

405060708090100200k500k1M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=44: 477.2 kbps, VMAF 50.644x264 (H.264) · preset medium q=36: 961.5 kbps, VMAF 83.576x264 (H.264) · preset medium q=28: 2,490.2 kbps, VMAF 99.51x264 (H.264) · preset medium q=20: 9,140.9 kbps, VMAF 99.979x264 (H.264) · preset medium+dn2 q=44: 482.8 kbps, VMAF 50.653x264 (H.264) · preset medium+dn2 q=36: 970.2 kbps, VMAF 83.461x264 (H.264) · preset medium+dn2 q=28: 2,490.2 kbps, VMAF 99.378x264 (H.264) · preset medium+dn2 q=20: 8,584.6 kbps, VMAF 99.979x264 (H.264) · preset medium+dn4 q=44: 487.8 kbps, VMAF 50.514x264 (H.264) · preset medium+dn4 q=36: 978.5 kbps, VMAF 82.545x264 (H.264) · preset medium+dn4 q=28: 2,471.6 kbps, VMAF 98.905x264 (H.264) · preset medium+dn4 q=20: 8,117.8 kbps, VMAF 99.978x265 (HEVC) · preset medium q=46: 201.6 kbps, VMAF 49.679x265 (HEVC) · preset medium q=38: 638.4 kbps, VMAF 81.807x265 (HEVC) · preset medium q=30: 1,874.4 kbps, VMAF 98.083x265 (HEVC) · preset medium q=22: 6,348.2 kbps, VMAF 99.977x265 (HEVC) · preset medium+dn2 q=46: 205.1 kbps, VMAF 49.843x265 (HEVC) · preset medium+dn2 q=38: 647.3 kbps, VMAF 81.814x265 (HEVC) · preset medium+dn2 q=30: 1,899.4 kbps, VMAF 98.168x265 (HEVC) · preset medium+dn2 q=22: 6,303.3 kbps, VMAF 99.977x265 (HEVC) · preset medium+dn4 q=46: 206 kbps, VMAF 49.736x265 (HEVC) · preset medium+dn4 q=38: 643.7 kbps, VMAF 80.737x265 (HEVC) · preset medium+dn4 q=30: 1,874.7 kbps, VMAF 97.049x265 (HEVC) · preset medium+dn4 q=22: 6,068.7 kbps, VMAF 99.975
x264 (H.264) · preset mediumx264 (H.264) · preset medium+dn2x264 (H.264) · preset medium+dn4x265 (HEVC) · preset mediumx265 (HEVC) · preset medium+dn2x265 (HEVC) · preset medium+dn4
blue_sky — blue sky and tree branches — bitrate vs. VMAF (baseline vs. light and strong denoising)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium209,140.9 kbps99.98100.0041.1020.5534.0
x264 (H.264) · preset medium+dn2208,584.6 kbps99.98100.0040.9420.7735.4
x264 (H.264) · preset medium+dn4208,117.8 kbps99.98100.0040.3420.4835.3
x264 (H.264) · preset medium282,490.2 kbps99.5197.4437.2534.2220.9
x264 (H.264) · preset medium+dn2282,490.2 kbps99.3897.0237.2432.5923.9
x264 (H.264) · preset medium+dn4282,471.6 kbps98.9195.6637.0231.4724.5
x264 (H.264) · preset medium36961.5 kbps83.5875.2632.5547.0516.3
x264 (H.264) · preset medium+dn236970.2 kbps83.4675.1132.5843.3719.3
x264 (H.264) · preset medium+dn436978.5 kbps82.5576.0932.5241.7920.2
x264 (H.264) · preset medium44477.2 kbps50.6441.1027.5553.613.7
x264 (H.264) · preset medium+dn244482.8 kbps50.6542.1127.5947.9817.5
x264 (H.264) · preset medium+dn444487.8 kbps50.5141.7327.5947.2117.8
x265 (HEVC) · preset medium226,348.2 kbps99.98100.0041.1413.1366.4
x265 (HEVC) · preset medium+dn2226,303.3 kbps99.98100.0041.0214.765.0
x265 (HEVC) · preset medium+dn4226,068.7 kbps99.97100.0040.3517.1259.7
x265 (HEVC) · preset medium301,874.4 kbps98.0892.6137.4225.2838.5
x265 (HEVC) · preset medium+dn2301,899.4 kbps98.1792.2837.4526.539.0
x265 (HEVC) · preset medium+dn4301,874.7 kbps97.0591.5637.1426.6938.6
x265 (HEVC) · preset medium38638.4 kbps81.8172.8032.9534.0828.4
x265 (HEVC) · preset medium+dn238647.3 kbps81.8170.1932.9830.632.2
x265 (HEVC) · preset medium+dn438643.7 kbps80.7469.5832.8830.1633.3
x265 (HEVC) · preset medium46201.6 kbps49.6840.2827.9040.1922.4
x265 (HEVC) · preset medium+dn246205.1 kbps49.8438.9727.9114.7131.0
x265 (HEVC) · preset medium+dn446206 kbps49.7438.4627.9138.6325.9
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

2030405060708090100200k500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=44: 482.4 kbps, VMAF 31.523x264 (H.264) · preset medium q=36: 1,054.6 kbps, VMAF 65.045x264 (H.264) · preset medium q=28: 2,480 kbps, VMAF 88.665x264 (H.264) · preset medium q=20: 7,819.9 kbps, VMAF 98.753x264 (H.264) · preset medium+dn2 q=44: 481.8 kbps, VMAF 32.481x264 (H.264) · preset medium+dn2 q=36: 1,047.9 kbps, VMAF 65.231x264 (H.264) · preset medium+dn2 q=28: 2,452.9 kbps, VMAF 88.491x264 (H.264) · preset medium+dn2 q=20: 7,032.1 kbps, VMAF 98.366x264 (H.264) · preset medium+dn4 q=44: 479.5 kbps, VMAF 32.583x264 (H.264) · preset medium+dn4 q=36: 1,033 kbps, VMAF 64.562x264 (H.264) · preset medium+dn4 q=28: 2,420.4 kbps, VMAF 86.282x264 (H.264) · preset medium+dn4 q=20: 6,518.5 kbps, VMAF 95.818x265 (HEVC) · preset medium q=46: 213.5 kbps, VMAF 27.706x265 (HEVC) · preset medium q=38: 570.8 kbps, VMAF 62.096x265 (HEVC) · preset medium q=30: 1,472.2 kbps, VMAF 87.05x265 (HEVC) · preset medium q=22: 4,357.1 kbps, VMAF 97.842x265 (HEVC) · preset medium+dn2 q=46: 217.8 kbps, VMAF 28.494x265 (HEVC) · preset medium+dn2 q=38: 572.5 kbps, VMAF 62.845x265 (HEVC) · preset medium+dn2 q=30: 1,454.8 kbps, VMAF 87.017x265 (HEVC) · preset medium+dn2 q=22: 4,057.4 kbps, VMAF 97.482x265 (HEVC) · preset medium+dn4 q=46: 219.3 kbps, VMAF 29.422x265 (HEVC) · preset medium+dn4 q=38: 566.5 kbps, VMAF 62.42x265 (HEVC) · preset medium+dn4 q=30: 1,414.3 kbps, VMAF 85.102x265 (HEVC) · preset medium+dn4 q=22: 3,770 kbps, VMAF 94.703
x264 (H.264) · preset mediumx264 (H.264) · preset medium+dn2x264 (H.264) · preset medium+dn4x265 (HEVC) · preset mediumx265 (HEVC) · preset medium+dn2x265 (HEVC) · preset medium+dn4
pedestrian_area — pedestrian street — bitrate vs. VMAF (baseline vs. light and strong denoising)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium207,819.9 kbps98.7595.9741.6517.4442.7
x264 (H.264) · preset medium+dn2207,032.1 kbps98.3795.4641.5717.645.0
x264 (H.264) · preset medium+dn4206,518.5 kbps95.8292.7740.9218.7542.7
x264 (H.264) · preset medium282,480 kbps88.6785.9138.7228.2530.3
x264 (H.264) · preset medium+dn2282,452.9 kbps88.4985.8338.7627.4932.9
x264 (H.264) · preset medium+dn4282,420.4 kbps86.2883.7538.5029.9930.3
x264 (H.264) · preset medium361,054.6 kbps65.0562.3034.9538.5623.4
x264 (H.264) · preset medium+dn2361,047.9 kbps65.2362.5135.0428.829.4
x264 (H.264) · preset medium+dn4361,033 kbps64.5661.8435.0329.5827.5
x264 (H.264) · preset medium44482.4 kbps31.5228.5730.5243.7817.9
x264 (H.264) · preset medium+dn244481.8 kbps32.4829.6030.6432.322.8
x264 (H.264) · preset medium+dn444479.5 kbps32.5829.7730.7246.7618.7
x265 (HEVC) · preset medium224,357.1 kbps97.8495.0641.4810.6987.2
x265 (HEVC) · preset medium+dn2224,057.4 kbps97.4894.6941.3812.9678.6
x265 (HEVC) · preset medium+dn4223,770 kbps94.7091.9240.7213.5275.7
x265 (HEVC) · preset medium301,472.2 kbps87.0584.3638.5417.6555.6
x265 (HEVC) · preset medium+dn2301,454.8 kbps87.0284.5438.5918.3256.1
x265 (HEVC) · preset medium+dn4301,414.3 kbps85.1082.5838.3318.8754.7
x265 (HEVC) · preset medium38570.8 kbps62.1058.7634.6723.9241.0
x265 (HEVC) · preset medium+dn238572.5 kbps62.8459.2334.8024.1642.7
x265 (HEVC) · preset medium+dn438566.5 kbps62.4258.9734.7924.5342.4
x265 (HEVC) · preset medium46213.5 kbps27.7123.3330.2731.0829.3
x265 (HEVC) · preset medium+dn246217.8 kbps28.4924.0630.3830.5233.0
x265 (HEVC) · preset medium+dn446219.3 kbps29.4225.2230.4431.532.3
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

20304050607080901001M2M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=44: 1,365.6 kbps, VMAF 24.48x264 (H.264) · preset medium q=36: 4,446.8 kbps, VMAF 52.612x264 (H.264) · preset medium q=28: 11,622.6 kbps, VMAF 88.974x264 (H.264) · preset medium q=20: 29,769.2 kbps, VMAF 99.957x264 (H.264) · preset medium+dn2 q=44: 1,351.2 kbps, VMAF 24.463x264 (H.264) · preset medium+dn2 q=36: 4,406.5 kbps, VMAF 52.391x264 (H.264) · preset medium+dn2 q=28: 11,462.3 kbps, VMAF 88.303x264 (H.264) · preset medium+dn2 q=20: 28,861.4 kbps, VMAF 99.957x264 (H.264) · preset medium+dn4 q=44: 1,309.8 kbps, VMAF 24.424x264 (H.264) · preset medium+dn4 q=36: 4,281.5 kbps, VMAF 51.185x264 (H.264) · preset medium+dn4 q=28: 11,060.8 kbps, VMAF 84.991x264 (H.264) · preset medium+dn4 q=20: 27,169.6 kbps, VMAF 99.941x265 (HEVC) · preset medium q=46: 677.3 kbps, VMAF 23.448x265 (HEVC) · preset medium q=38: 2,512.6 kbps, VMAF 46.324x265 (HEVC) · preset medium q=30: 7,534.2 kbps, VMAF 79.562x265 (HEVC) · preset medium q=22: 19,060.6 kbps, VMAF 99.592x265 (HEVC) · preset medium+dn2 q=46: 675.4 kbps, VMAF 23.35x265 (HEVC) · preset medium+dn2 q=38: 2,498.5 kbps, VMAF 46.35x265 (HEVC) · preset medium+dn2 q=30: 7,441.9 kbps, VMAF 79.203x265 (HEVC) · preset medium+dn2 q=22: 18,641.5 kbps, VMAF 99.282x265 (HEVC) · preset medium+dn4 q=46: 666 kbps, VMAF 23.3x265 (HEVC) · preset medium+dn4 q=38: 2,418.2 kbps, VMAF 45.457x265 (HEVC) · preset medium+dn4 q=30: 7,137 kbps, VMAF 76.565x265 (HEVC) · preset medium+dn4 q=22: 17,600.2 kbps, VMAF 96.139
x264 (H.264) · preset mediumx264 (H.264) · preset medium+dn2x264 (H.264) · preset medium+dn4x265 (HEVC) · preset mediumx265 (HEVC) · preset medium+dn2x265 (HEVC) · preset medium+dn4
riverbed — riverbed (fine ripples) — bitrate vs. VMAF (baseline vs. light and strong denoising)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium2029,769.2 kbps99.96100.0039.7712.5982.9
x264 (H.264) · preset medium+dn22028,861.4 kbps99.96100.0039.6112.6584.5
x264 (H.264) · preset medium+dn42027,169.6 kbps99.9499.9838.8112.8382.8
x264 (H.264) · preset medium2811,622.6 kbps88.9786.9935.3815.7767.1
x264 (H.264) · preset medium+dn22811,462.3 kbps88.3086.1835.3315.5569.0
x264 (H.264) · preset medium+dn42811,060.8 kbps84.9982.7235.0415.7867.9
x264 (H.264) · preset medium364,446.8 kbps52.6149.6130.7920.6444.6
x264 (H.264) · preset medium+dn2364,406.5 kbps52.3948.8630.7720.6747.0
x264 (H.264) · preset medium+dn4364,281.5 kbps51.1948.1430.6820.4545.9
x264 (H.264) · preset medium441,365.6 kbps24.4821.8125.9123.6425.0
x264 (H.264) · preset medium+dn2441,351.2 kbps24.4621.4325.9123.0727.6
x264 (H.264) · preset medium+dn4441,309.8 kbps24.4221.5425.8922.9427.1
x265 (HEVC) · preset medium2219,060.6 kbps99.5998.1138.694.12237.8
x265 (HEVC) · preset medium+dn22218,641.5 kbps99.2897.1938.604.14239.2
x265 (HEVC) · preset medium+dn42217,600.2 kbps96.1493.1437.984.3229.8
x265 (HEVC) · preset medium307,534.2 kbps79.5674.6534.545.85167.4
x265 (HEVC) · preset medium+dn2307,441.9 kbps79.2074.3634.545.88169.3
x265 (HEVC) · preset medium+dn4307,137 kbps76.5671.7234.326.04164.5
x265 (HEVC) · preset medium382,512.6 kbps46.3241.0830.219.01109.3
x265 (HEVC) · preset medium+dn2382,498.5 kbps46.3540.8930.239.06110.7
x265 (HEVC) · preset medium+dn4382,418.2 kbps45.4640.2430.199.04110.9
x265 (HEVC) · preset medium46677.3 kbps23.4520.5726.4918.6552.9
x265 (HEVC) · preset medium+dn246675.4 kbps23.3520.6526.5118.556.0
x265 (HEVC) · preset medium+dn446666 kbps23.3020.7126.4818.4455.8
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

2030405060708090100200k500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=44: 319 kbps, VMAF 35.322x264 (H.264) · preset medium q=36: 875.7 kbps, VMAF 63.431x264 (H.264) · preset medium q=28: 2,275.6 kbps, VMAF 84.821x264 (H.264) · preset medium q=20: 8,033 kbps, VMAF 95.617x264 (H.264) · preset medium+dn2 q=44: 312.3 kbps, VMAF 34.829x264 (H.264) · preset medium+dn2 q=36: 846 kbps, VMAF 63.25x264 (H.264) · preset medium+dn2 q=28: 2,155.5 kbps, VMAF 84.015x264 (H.264) · preset medium+dn2 q=20: 6,605.1 kbps, VMAF 94.345x264 (H.264) · preset medium+dn4 q=44: 307.7 kbps, VMAF 35.41x264 (H.264) · preset medium+dn4 q=36: 795.7 kbps, VMAF 61.936x264 (H.264) · preset medium+dn4 q=28: 1,996.8 kbps, VMAF 80.576x264 (H.264) · preset medium+dn4 q=20: 5,686.4 kbps, VMAF 89.527x265 (HEVC) · preset medium q=46: 123.4 kbps, VMAF 29.577x265 (HEVC) · preset medium q=38: 370.5 kbps, VMAF 58.295x265 (HEVC) · preset medium q=30: 1,233.5 kbps, VMAF 81.816x265 (HEVC) · preset medium q=22: 4,009.4 kbps, VMAF 93.759x265 (HEVC) · preset medium+dn2 q=46: 124.4 kbps, VMAF 29.828x265 (HEVC) · preset medium+dn2 q=38: 366.2 kbps, VMAF 58.128x265 (HEVC) · preset medium+dn2 q=30: 1,183.9 kbps, VMAF 81.107x265 (HEVC) · preset medium+dn2 q=22: 3,634.1 kbps, VMAF 92.616x265 (HEVC) · preset medium+dn4 q=46: 128.1 kbps, VMAF 29.643x265 (HEVC) · preset medium+dn4 q=38: 356.2 kbps, VMAF 56.813x265 (HEVC) · preset medium+dn4 q=30: 1,098.7 kbps, VMAF 77.868x265 (HEVC) · preset medium+dn4 q=22: 3,230.4 kbps, VMAF 88.048
x264 (H.264) · preset mediumx264 (H.264) · preset medium+dn2x264 (H.264) · preset medium+dn4x265 (HEVC) · preset mediumx265 (HEVC) · preset medium+dn2x265 (HEVC) · preset medium+dn4
rush_hour — evening rush-hour traffic — bitrate vs. VMAF (baseline vs. light and strong denoising)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium208,033 kbps95.6294.0942.0417.0949.0
x264 (H.264) · preset medium+dn2206,605.1 kbps94.3492.8241.8318.1848.8
x264 (H.264) · preset medium+dn4205,686.4 kbps89.5387.6441.0119.6942.6
x264 (H.264) · preset medium282,275.6 kbps84.8282.4039.8431.5928.7
x264 (H.264) · preset medium+dn2282,155.5 kbps84.0281.6339.7730.4730.9
x264 (H.264) · preset medium+dn4281,996.8 kbps80.5878.1239.3330.9428.4
x264 (H.264) · preset medium36875.7 kbps63.4359.9436.4544.5619.5
x264 (H.264) · preset medium+dn236846 kbps63.2559.9836.5042.8122.1
x264 (H.264) · preset medium+dn436795.7 kbps61.9458.7336.4045.4820.7
x264 (H.264) · preset medium44319 kbps35.3231.1231.8447.8614.5
x264 (H.264) · preset medium+dn244312.3 kbps34.8331.0031.9246.1417.4
x264 (H.264) · preset medium+dn444307.7 kbps35.4131.6332.0349.3816.0
x265 (HEVC) · preset medium224,009.4 kbps93.7692.0641.7711.9483.0
x265 (HEVC) · preset medium+dn2223,634.1 kbps92.6290.8841.6212.3382.2
x265 (HEVC) · preset medium+dn4223,230.4 kbps88.0586.1540.8413.6874.5
x265 (HEVC) · preset medium301,233.5 kbps81.8278.9539.3519.4650.8
x265 (HEVC) · preset medium+dn2301,183.9 kbps81.1178.2039.3219.7651.6
x265 (HEVC) · preset medium+dn4301,098.7 kbps77.8774.9338.9121.3148.4
x265 (HEVC) · preset medium38370.5 kbps58.3054.3435.6928.7832.2
x265 (HEVC) · preset medium+dn238366.2 kbps58.1354.0535.7228.0135.5
x265 (HEVC) · preset medium+dn438356.2 kbps56.8152.7435.6028.6734.5
x265 (HEVC) · preset medium46123.4 kbps29.5825.8231.2333.4324.7
x265 (HEVC) · preset medium+dn246124.4 kbps29.8326.3331.2932.0828.0
x265 (HEVC) · preset medium+dn446128.1 kbps29.6426.2031.3232.1626.7
rush_hour — evening rush-hour traffic — all measurements

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).

x264 light (dn2)CRF 20CRF 28CRF 36CRF 44
blue_sky−6.1% / 0.00+0.0% / −0.13+0.9% / −0.11+1.2% / +0.01
pedestrian_area−10.1% / −0.39−1.1% / −0.17−0.6% / +0.19−0.1% / +0.96
riverbed−3.0% / 0.00−1.4% / −0.67−0.9% / −0.22−1.1% / −0.02
rush_hour−17.8% / −1.27−5.3% / −0.81−3.4% / −0.18−2.1% / −0.49

Differences of CSV values, relative to the baseline (x264 medium) at the same CRF.

x264 strong (dn4)CRF 20CRF 28CRF 36CRF 44
blue_sky−11.2% / 0.00−0.7% / −0.61+1.8% / −1.03+2.2% / −0.13
pedestrian_area−16.6% / −2.94−2.4% / −2.38−2.0% / −0.48−0.6% / +1.06
riverbed−8.7% / −0.02−4.8% / −3.98−3.7% / −1.43−4.1% / −0.06
rush_hour−29.2% / −6.09−12.3% / −4.25−9.1% / −1.49−3.5% / +0.09

Differences of CSV values, relative to the baseline (x264 medium) at the same CRF.

x265 light (dn2)CRF 22CRF 30CRF 38CRF 46
blue_sky−0.7% / 0.00+1.3% / +0.09+1.4% / +0.01+1.7% / +0.16
pedestrian_area−6.9% / −0.36−1.2% / −0.03+0.3% / +0.75+2.0% / +0.79
riverbed−2.2% / −0.31−1.2% / −0.36−0.6% / +0.03−0.3% / −0.10
rush_hour−9.4% / −1.14−4.0% / −0.71−1.1% / −0.17+0.8% / +0.25

Differences of CSV values, relative to the baseline (x265 medium) at the same CRF.

x265 strong (dn4)CRF 22CRF 30CRF 38CRF 46
blue_sky−4.4% / 0.000.0% / −1.03+0.8% / −1.07+2.2% / +0.06
pedestrian_area−13.5% / −3.14−3.9% / −1.95−0.8% / +0.32+2.7% / +1.72
riverbed−7.7% / −3.45−5.3% / −3.00−3.8% / −0.87−1.7% / −0.15
rush_hour−19.4% / −5.71−10.9% / −3.95−3.9% / −1.48+3.8% / +0.07

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)

VMAF 90x264 baselinex264 lightx264 strongx265 baselinex265 lightx265 strong
blue_sky1,411kbps1,429 (+1.3%)1,493 (+5.8%)1,098kbps1,109 (+1.1%)1,181 (+7.6%)
pedestrian_area2,887kbps2,881 (−0.2%)3,562 (+23.4%)1,981kbps1,949 (−1.6%)2,332 (+17.8%)
riverbed12,690kbps13,112 (+3.3%)14,947 (+17.8%)12,221kbps12,193 (−0.2%)13,261 (+8.5%)
rush_hour4,167kbps4,124 (−1.0%)not reached (max 89.53)2,767kbps2,816 (+1.8%)not reached (max 88.05)

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.

VMAF 80x264 baselinex264 lightx264 strongx265 baselinex265 lightx265 strong
blue_sky891kbps901 (+1.2%)926 (+3.9%)598kbps606 (+1.4%)626 (+4.7%)
pedestrian_area1,812kbps1,798 (−0.8%)1,892 (+4.4%)1,126kbps1,110 (−1.5%)1,151 (+2.2%)
riverbed9,169kbps9,189 (+0.2%)9,615 (+4.9%)7,689kbps7,718 (+0.4%)8,362 (+8.8%)
rush_hour1,835kbps1,799 (−2.0%)1,941 (+5.8%)1,124kbps1,119 (−0.5%)1,377 (+22.5%)

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.25 and strong 4:3:6:4.5 pair. 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.

Raw data: hqdn3d-denoise-prefilter-size-vmaf-v1.csv