Skip to content

Life

Video Single output Source

Create life.

FFmpeg filter: life — the official reference.

Generate a stream. Life is a source — it has no input, so you create a stream from it rather than applying it to one:

$video = \FFmpeg\VideoStream::generate(new Life());

apply() and addFilter() do not apply to source filters (there is nothing to attach them to).

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
filenamestringset source file
sizestringset video size
ratestring25set video rate
rulestringB3/S23set rule
random_fill_ratiofloat0.6180339887498901set fill ratio for filling initial grid randomly
random_seedint-1-1set the seed for filling the initial grid randomly
stitchbooltruestitch boundaries
moldint00255set mold speed for dead cells
life_colorstringwhiteset life color
death_colorstringblackset death color
mold_colorstringblackset mold color

FFmpeg also names these options (use the parameter shown above): ffilename, ssize, rrate, ratiorandom_fill_ratio, seedrandom_seed.


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