Configure FFmpeg Smartblur Radius Strength and Threshold

This article provides a quick overview and practical guide on how to configure the luma radius, strength, and threshold parameters within the FFmpeg smartblur filter. By understanding these three core settings, you can effectively smooth out video noise and compression artifacts while keeping important image edges and details sharp.

The smartblur filter in FFmpeg applies a selective blur to your video. It targets flat areas of the image while preserving sharp details (edges). To achieve this, it uses three primary luma (brightness) parameters:

1. Luma Radius (luma_radius or lr)

2. Luma Strength (luma_strength or ls)

3. Luma Threshold (luma_threshold or lt)


Filter Syntax and Examples

You can define these parameters in FFmpeg using either positional arguments or named key-value pairs. Named pairs are highly recommended for clarity.

This method is explicit and prevents errors regarding parameter order:

ffmpeg -i input.mp4 -vf "smartblur=lr=3.0:ls=0.8:lt=-5" output.mp4

Option B: Positional Parameters

If you prefer shorthand, pass the values in the exact order of luma_radius:luma_strength:luma_threshold:

ffmpeg -i input.mp4 -vf "smartblur=3.0:0.8:-5" output.mp4

Tips for Fine-Tuning