Mandelbrot
Video Single output Source
Render a Mandelbrot fractal.
FFmpeg filter:
mandelbrot— the official reference.
Generate a stream. Mandelbrot 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 Mandelbrot(…));apply() and addFilter() do not apply to source filters (there is nothing to attach them to).
When to use it
Section titled “When to use it”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.
How to use it
Section titled “How to use it”TODO — prose: how the filter actually works and what its key parameters mean (the explanation FFmpeg’s terse option help omits).
Examples
Section titled “Examples”TODO — runnable PHP, with the equivalent ffmpeg CLI alongside.
Gotchas
Section titled “Gotchas”TODO
See also
Section titled “See also”TODO
Parameters
Section titled “Parameters”| Parameter | Type | Default | Range / values | Description |
|---|---|---|---|---|
size | string | 640x480 | — | set frame size |
rate | string | 25 | — | set frame rate |
maxiter | int | 7189 | ≥ 1 | set max iterations number |
start_x | float | -0.74364388703716 | -100–100 | set the initial x position |
start_y | float | -0.13182590420531 | -100–100 | set the initial y position |
start_scale | float | 3 | ≥ 0 | set the initial scale value |
end_scale | float | 0.3 | ≥ 0 | set the terminal scale value |
end_pts | float | 400 | ≥ 0 | set the terminal pts value |
bailout | float | 10 | ≥ 0 | set the bailout value |
morphxf | float | 0.01 | — | set morph x frequency |
morphyf | float | 0.0123 | — | set morph y frequency |
morphamp | float | 0 | — | set morph amplitude |
outer | MandelbrotOuter | normalized_iteration_count | iteration_count, normalized_iteration_count, white, outz | set outer coloring mode |
inner | MandelbrotInner | mincol | black, period, convergence, mincol | set inner coloring mode |
FFmpeg also names these options (use the parameter shown above): s → size, r → rate.
Maps to FFmpeg’s mandelbrot 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.