Skip to content

Waveform

Video Single output Transform

Video waveform monitor.

FFmpeg filter: waveform — 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 Waveform());
$result = $node->outputs()[0];

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

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

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
modeWaveformModecolumnrow, columnset mode
intensityfloat0.0401set intensity
mirrorbooltrueset mirroring
displayWaveformDisplaystackoverlay, stack, paradeset display mode
componentsint1115set components to display
envelopeWaveformEnvelopenonenone, instant, peak, peak+instantset envelope to display
filterWaveformFilterlowpasslowpass, flat, aflat, chroma, color, acolor, xflat, yflatset filter
graticuleWaveformGraticulenonenone, green, orange, invertset graticule
opacityfloat0.7501set graticule opacity
flagsint|string1set graticule flags
scaleWaveformScaledigitaldigital, millivolts, ireset scale
bgopacityfloat0.7501set background opacity
tint0float0-11set 1st tint
tint1float0-11set 2nd tint
fitmodeWaveformFitmodenonenone, sizeset fit mode
inputWaveformInputfirstall, firstset input formats selection

FFmpeg also names these options (use the parameter shown above): mmode, iintensity, rmirror, ddisplay, ccomponents, eenvelope, ffilter, ggraticule, oopacity, flflags, sscale, bbgopacity, t0tint0, t1tint1, fmfitmode.


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