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
filenamestring——set source file
sizestring——set video size
ratestring25—set video rate
rulestringB3/S23—set rule
random_fill_ratiofloat0.618033988749890–1set fill ratio for filling initial grid randomly
random_seedint-1≥ -1set the seed for filling the initial grid randomly
stitchbooltrue—stitch boundaries
moldint00–255set mold speed for dead cells
life_colorstringwhite—set life color
death_colorstringblack—set death color
mold_colorstringblack—set mold color

FFmpeg also names these options (use the parameter shown above): f → filename, s → size, r → rate, ratio → random_fill_ratio, seed → random_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.