ffmpeg commands
Audio visualization
The scripts in this folder each turn an audio file into a video that shows something about the sound: its waveform, its spectrum on a musical scale, its loudness distribution, or how its left and right channels relate. Each one renders the visualization with the original audio muxed in, either as H.264 for quick viewing and sharing or as ProRes 422 HQ for compositing in an editor. They're useful when you need a visual to go with a music track, or when you want to check a mix's dynamic range, stereo width or mono compatibility by eye. The header in each script explains every flag.
Audio level histogram video (ahistogram)
ahistogram.sh
Draws how often each loudness level occurs, updated over time, with a scrolling history below. Quiet, dynamic music spreads wide, and heavily compressed masters pile up near the top. A simple way to see dynamic range.
Stereo phase meter video (aphasemeter)
aphasemeter.sh
Shows how in-phase the left and right channels are over time: a bar toward the right means correlated (mono-compatible) stereo, toward the left means out-of-phase content that can cancel out when summed to mono. The median phase is drawn as a cyan line.
Polar and Lissajous vectorscopes drawn with lines
avectorscope-polar.sh
Two more ways to plot left against right channel, compared with the dot vectorscope in avectorscope.sh. Polar mode folds the plot into a half-circle fan, like a hardware stereo goniometer. Lissajous XY plots L on X and R on Y, so tones trace spirograph-like loops. Drawing with lines instead of dots gives continuous, glowing traces.
Stereo vectorscope (Lissajous / goniometer) video from an audio file
avectorscope.sh
avectorscope plots left against right channel: mono sound draws a vertical line, wide stereo spreads into clouds, and tones trace looping Lissajous figures. Rendered as dots over black, with the audio muxed in.
Musical spectrum video with showcqt (constant-Q transform)
showcqt.sh
showcqt draws the spectrum on a musical scale, with each octave the same width (like piano keys), plus a scrolling sonogram underneath. That makes notes and chords readable, unlike a linear FFT spectrum.
Render an audio file as waveform video, four ways (ProRes for editing)
showwaves.sh
showwaves draws the audio waveform as video frames. These four styles are 1920×1080 at 30 fps over black, with the original audio muxed in, ready to composite in an editor (e.g. with a screen blend mode).
Source: lucidbeaming/ffmpeg-utilities/audio-visualization at v1.0.1