Skip to content

Rgbashift

Video Single output Transform

Shift RGBA.

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

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

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

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
rhint0-255255shift red horizontally
rvint0-255255shift red vertically
ghint0-255255shift green horizontally
gvint0-255255shift green vertically
bhint0-255255shift blue horizontally
bvint0-255255shift blue vertically
ahint0-255255shift alpha horizontally
avint0-255255shift alpha vertically
edgeRgbashiftEdgesmearsmear, wrapset edge operation

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