Skip to content

Sab

Video Single output Transform

Apply shape adaptive blur.

FFmpeg filter: sab — 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 Sab(…));
$result = $node->outputs()[0];

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

$result = $video->apply(new Sab(…));

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.1–4set luma radius
luma_pre_filter_radiusfloat10.1–2set luma pre-filter radius
luma_strengthfloat10.1–100set luma strength
chroma_radiusfloat-0.9-0.9–4set chroma radius
chroma_pre_filter_radiusfloat-0.9-0.9–2set chroma pre-filter radius
chroma_strengthfloat-0.9-0.9–100set chroma strength

FFmpeg also names these options (use the parameter shown above): lr → luma_radius, lpfr → luma_pre_filter_radius, ls → luma_strength, cr → chroma_radius, cpfr → chroma_pre_filter_radius, cs → chroma_strength.


Maps to FFmpeg’s sab 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.