Skip to content

Mergeplanes

Video Single output Transform

Merge planes.

FFmpeg filter: mergeplanes — the official reference.

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

$node = $video->addFilter(new Mergeplanes(…), [$other]);
$result = $node->outputs()[0];

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

$result = $video->apply(new Mergeplanes(…), $other);

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
mappingint-1-1–858993459set input to output plane mapping
formatstring79—set output pixel format
map0sint00–3set 1st input to output stream mapping
map0pint00–3set 1st input to output plane mapping
map1sint00–3set 2nd input to output stream mapping
map1pint00–3set 2nd input to output plane mapping
map2sint00–3set 3rd input to output stream mapping
map2pint00–3set 3rd input to output plane mapping
map3sint00–3set 4th input to output stream mapping
map3pint00–3set 4th input to output plane mapping

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