Skip to content

Showcwt

Audio Video Single output Transform

Convert input audio to a CWT (Continuous Wavelet Transform) spectrum video output.

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

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

$result = $video->apply(new Showcwt(…));

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
sizestring640x512—set video size
ratestring25—set video rate
scaleShowcwtScalelinearlinear, log, bark, mel, erbs, sqrt, cbrt, qdrt, …set frequency scale
iscaleShowcwtIscaleloglinear, log, sqrt, cbrt, qdrtset intensity scale
minfloat201–192000set minimum frequency
maxfloat200001–192000set maximum frequency
iminfloat00–1set minimum intensity
imaxfloat10–1set maximum intensity
logbfloat0.00010–1set logarithmic basis
deviationfloat10–100set frequency deviation
ppsint641–1024set pixels per second
modeShowcwtModemagnitudemagnitude, phase, magphase, channel, stereoset output mode
slideShowcwtSlidereplacereplace, scroll, frameset slide mode
directionShowcwtDirectionlrlr, rl, ud, duset direction mode
barfloat00–1set bargraph ratio
rotationfloat0-1–1set color rotation

FFmpeg also names these options (use the parameter shown above): s → size, r → rate.


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