Skip to content

Perlin

Video Single output Source

Generate Perlin noise

FFmpeg filter: perlin — the official reference.

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

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
sizestring320x240set video size
ratestring25set video rate
octavesint11set the number of components to use to generate the noise
persistencefloat10set the octaves persistence
xscalefloat10set x-scale factor
yscalefloat10set y-scale factor
tscalefloat10set t-scale factor
random_modePerlinRandomModerandomrandom, ken, seedset random mode used to compute initial pattern
random_seedstringset the seed for filling the initial pattern

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


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