Skip to content

Showvolume

Audio Video Single output Transform

Convert input audio volume to video output.

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

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

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

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
ratestring25set video rate
bint105set border width
wint400808192set channel width
hint201900set channel height
ffloat0.9501set fade
cstringPEAK*255+floor((1-PEAK)*255)*256+0xff000000set volume color expression
tbooltruedisplay channel names
vbooltruedisplay volume value
dmfloat009000duration for max value display
dmcstringorangeset color of the max value line
oShowvolumeOrientationhh, vset orientation
sint005set step size
pfloat001set background opacity
mShowvolumeModepp, rset mode
dsShowvolumeDisplayScalelinlin, logset display scale

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


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