Skip to content

Showfreqs

Audio Video Single output Transform

Convert input audio to a frequencies video output.

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

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

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

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
sizestring1024x512—set video size
ratestring25—set video rate
modeShowfreqsModebarline, bar, dotset display mode
ascaleShowfreqsAscaleloglin, sqrt, cbrt, logset amplitude scale
fscaleShowfreqsFscalelinlin, log, rlogset frequency scale
win_sizeint204816–65536set window size
win_funcShowfreqsWinFunchanningrect, bartlett, hanning, hamming, blackman, welch, flattop, bharris, …set window function
overlapfloat10–1set window overlap
averagingint1≥ 0set time averaging
colorsstringred|green|blue|yellow|orange|lime|pink|magenta|brown—set channels colors
cmodeShowfreqsCmodecombinedcombined, separateset channel mode
minampfloat1.0E-61.1754943508223E-38–1.0E-6set minimum amplitude
dataShowfreqsDatamagnitudemagnitude, phase, delayset data mode
channelsstringall—set channels to draw

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


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