Skip to content

Cellauto

Video Single output Source

Create pattern generated by an elementary cellular automaton.

FFmpeg filter: cellauto — the official reference.

Generate a stream. Cellauto 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 Cellauto());

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
filenamestringread initial pattern from file
patternstringset initial pattern
ratestring25set video rate
sizestringset video size
ruleint1100255set rule
random_fill_ratiofloat0.6180339887498901set fill ratio for filling initial grid randomly
random_seedint-1-1set the seed for filling the initial grid randomly
scrollbooltruescroll pattern downward
start_fullboolfalsestart filling the whole video
stitchbooltruestitch boundaries

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


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