Skip to content

Tblend

Video Single output Transform

Blend successive frames.

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

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

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

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
c0_modeTblendModenormaladdition, addition128, and, average, burn, darken, difference, difference128, …set component #0 blend mode
c1_modeTblendModenormaladdition, addition128, and, average, burn, darken, difference, difference128, …set component #1 blend mode
c2_modeTblendModenormaladdition, addition128, and, average, burn, darken, difference, difference128, …set component #2 blend mode
c3_modeTblendModenormaladdition, addition128, and, average, burn, darken, difference, difference128, …set component #3 blend mode
all_modeTblendMode-1addition, addition128, and, average, burn, darken, difference, difference128, …set blend mode for all components
c0_exprstringset color component #0 expression
c1_exprstringset color component #1 expression
c2_exprstringset color component #2 expression
c3_exprstringset color component #3 expression
all_exprstringset expression for all color components
c0_opacityfloat101set color component #0 opacity
c1_opacityfloat101set color component #1 opacity
c2_opacityfloat101set color component #2 opacity
c3_opacityfloat101set color component #3 opacity
all_opacityfloat101set opacity for all color components

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