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
sizestring640x512set video size
ratestring25set video rate
scaleShowcwtScalelinearlinear, log, bark, mel, erbs, sqrt, cbrt, qdrt, …set frequency scale
iscaleShowcwtIscaleloglinear, log, sqrt, cbrt, qdrtset intensity scale
minfloat201192000set minimum frequency
maxfloat200001192000set maximum frequency
iminfloat001set minimum intensity
imaxfloat101set maximum intensity
logbfloat0.000101set logarithmic basis
deviationfloat10100set frequency deviation
ppsint6411024set pixels per second
modeShowcwtModemagnitudemagnitude, phase, magphase, channel, stereoset output mode
slideShowcwtSlidereplacereplace, scroll, frameset slide mode
directionShowcwtDirectionlrlr, rl, ud, duset direction mode
barfloat001set bargraph ratio
rotationfloat0-11set color rotation

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


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.