Skip to content

Adrawgraph

Audio Video Single output Transform

Draw a graph using input audio metadata.

FFmpeg filter: adrawgraph — the official reference.

Add it to a graph. The explicit form works for every filter — bind it to its input and read the result from outputs():

$node = $video->addFilter(new Adrawgraph());
$result = $node->outputs()[0];

Shorthand. Single-output filters can skip the node — apply() returns the result stream directly:

$result = $video->apply(new Adrawgraph());

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
m1stringset 1st metadata key
fg1string0xffff0000set 1st foreground color expression
m2stringset 2nd metadata key
fg2string0xff00ff00set 2nd foreground color expression
m3stringset 3rd metadata key
fg3string0xffff00ffset 3rd foreground color expression
m4stringset 4th metadata key
fg4string0xffffff00set 4th foreground color expression
bgstringwhiteset background color
minfloat-1set minimal value
maxfloat1set maximal value
modeAdrawgraphModelinebar, dot, lineset graph mode
slideAdrawgraphSlideframeframe, replace, scroll, rscroll, pictureset slide mode
sizestring900x256set graph size
ratestring25set video rate

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


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