Skip to content

Showcqt

Audio Video Single output Transform

Convert input audio to a CQT (Constant/Clamped Q Transform) spectrum video output.

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

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

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

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
sizestring1920x1080set video size
ratestring25set video rate
bar_hint-1-1set bargraph height
axis_hint-1-1set axis height
sono_hint-1-1set sonogram height
fullhdbooltrueset fullhd size
sono_vstring16set sonogram volume
volume2stringsono_vset bargraph volume
sono_gfloat317set sonogram gamma
gamma2float117set bargraph gamma
bar_tfloat101set bar transparency
timeclampfloat0.170.0021set timeclamp
attackfloat001set attack time
basefreqfloat20.0152312640810100000set base frequency
endfreqfloat20495.59681441810100000set end frequency
coeffclampfloat10.110set coeffclamp
tlengthstring384*tc/(384+tc*f)set tlength
countint6130set transform count
fcountint0010set frequency count
fontfilestringset axis font file
fontstringset axis font
fontcolorstringst(0, (midi(f)-59.5)/12);st(1, if(between(ld(0),0,1), 0.5-0.5*cos(2*PI*ld(0)), 0));r(1-ld(1)) + b(ld(1))set font color
axisfilestringset axis image
axisbooltruedraw axis
cspShowcqtCspunspecifiedunspecified, bt709, fcc, bt470bg, smpte170m, smpte240m, bt2020nclset color space
cschemestring1|0.5|0|0|0.5|1set color scheme

FFmpeg also names these options (use the parameter shown above): ssize, fpsrate, rrate, volumesono_v, bar_vvolume2, gammasono_g, bar_ggamma2, tctimeclamp, textaxis.


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