Skip to content

Smartblur

Video Single output Transform

Blur the input video without impacting the outlines.

FFmpeg filter: smartblur — the official reference.

Add it to a graph. The explicit form works for every filter — bind it to its input and read the result from outputs():

$node = $video->addFilter(new Smartblur());
$result = $node->outputs()[0];

Shorthand. Single-output filters can skip the node — apply() returns the result stream directly:

$result = $video->apply(new Smartblur());

TODO — when this filter shines: what it’s the right tool for, what to reach for instead when it isn’t, and how it composes with neighbouring filters.

TODO — prose: how the filter actually works and what its key parameters mean (the explanation FFmpeg’s terse option help omits).

TODO — runnable PHP, with the equivalent ffmpeg CLI alongside.

TODO

TODO

ParameterTypeDefaultRange / valuesDescription
luma_radiusfloat10.15set luma radius
luma_strengthfloat1-11set luma strength
luma_thresholdint0-3030set luma threshold
chroma_radiusfloat-0.9-0.95set chroma radius
chroma_strengthfloat-2-21set chroma strength
chroma_thresholdint-31-3130set chroma threshold
alpha_radiusfloat-0.9-0.95set alpha radius
alpha_strengthfloat-2-21set alpha strength
alpha_thresholdint-31-3130set alpha threshold

FFmpeg also names these options (use the parameter shown above): lrluma_radius, lsluma_strength, ltluma_threshold, crchroma_radius, cschroma_strength, ctchroma_threshold, aralpha_radius, asalpha_strength, atalpha_threshold.


Maps to FFmpeg’s smartblur filter. Verified against ffmpeg n7.1.1.

An Artisan Build project.

Built on FFmpeg — an independent binding, not affiliated with or endorsed by the FFmpeg project. Support FFmpeg.