Skip to content

Eq

Video Single output Transform

Adjust brightness, contrast, gamma, and saturation.

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

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

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

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
contraststring1.0set the contrast adjustment, negative values give a negative image
brightnessstring0.0set the brightness adjustment
saturationstring1.0set the saturation adjustment
gammastring1.0set the initial gamma value
gamma_rstring1.0gamma value for red
gamma_gstring1.0gamma value for green
gamma_bstring1.0gamma value for blue
gamma_weightstring1.0set the gamma weight which reduces the effect of gamma on bright areas
evalEqEvalinitinit, framespecify when to evaluate expressions

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