Key facts

  1. FFmpeg has audio-to-video filters built in. showwaves draws the waveform, showcqt and showspectrum draw frequency, avectorscope draws left against right, and showwavespic and showspectrumpic make one still for a whole file.
  2. In FFmpeg 8.1, showwaves defaults to draw=scale, which dims each sample. Add draw=full for a solid shape.
  3. Every command on this page was run on FFmpeg 8.1 on 11 October 2026 against an eight-second loop synthesized with FFmpeg itself. The pictures are frames from those runs.

Checked on .

FFmpeg can turn a sound file into a visualizer video on its own. No editor, no account, no watermark: the picture is drawn by a filter and encoded like any other video. The catch is that each filter answers one question, and the defaults are not always the look people expect.

Everything below was run on FFmpeg 8.1 (Homebrew build, macOS) on 11 October 2026. The input was an eight-second loop made with FFmpeg’s own aevalsrc source: a falling-pitch kick on each beat at 112 BPM, a sine bass, a short sine melody, and a noise tick on the off-beat. The pictures are frames pulled from the actual output files at 3.2 seconds.

Check that your build has the filters before you start. ffmpeg -h filter=showwaves prints the options and the defaults your version uses. Those printed defaults are the ones we quote here.

1. Waveform video: showwaves

ffmpeg -i song.wav -filter_complex \
  "[0:a]showwaves=s=1280x720:mode=cline:draw=full:rate=30:colors=0x14b8a6,format=yuv420p[v]" \
  -map "[v]" -map 0:a -c:v libx264 -c:a aac -shortest waveform.mp4
A teal filled waveform on black, a row of lobes across the middle of the frame.
showwaves with mode=cline and draw=full. Each frame shows the 1,600 samples that pass in one thirtieth of a second at 48 kHz, so the shape changes every frame.

mode picks the mark. In 8.1 the default is point. line draws a vertical line per sample, p2p joins points, and cline draws a line centred on the middle, which reads as a filled shape. The option most people miss is draw. Its default is scale, which the help text describes as “scale pixel values for each drawn sample”. Our first render with the default came out a muddy olive instead of teal. draw=full fixed it.

format=yuv420p at the end is there so the H.264 file plays in browsers and phone galleries. Without it, FFmpeg may pick a pixel format that some players reject.

2. Pitch display: showcqt

ffmpeg -i song.wav -filter_complex \
  "[0:a]showcqt=s=1280x720:fps=30,format=yuv420p[v]" \
  -map "[v]" -map 0:a -c:v libx264 -c:a aac -shortest cqt.mp4
A constant-Q display: bright bars in the low left, a row of note letters across the middle, and a scrolling sonogram below.
showcqt draws bars on top, note names across the middle, and a scrolling sonogram underneath. The kick and bass sit far left. The melody is the thin spike near the centre.

showcqt uses a constant-Q transform: frequency bands spaced like piano keys rather than in equal steps of hertz. That is why the note letters repeat evenly across the frame, one set per octave. It is the closest thing in FFmpeg to a ready-made “music visualizer” look. Its defaults are 1920×1080 at 25 frames per second, so set s and fps if you want something else.

3. Spectrogram: showspectrum and showspectrumpic

# a still of the whole file
ffmpeg -i song.wav -lavfi "showspectrumpic=s=1280x480:scale=log:fscale=log:legend=1" spectrogram.png
A spectrogram with time across and frequency up a log axis. A bright yellow band at the bottom, an orange band near 400 Hz, and regular vertical stripes up to 16 kHz.
showspectrumpic with a log frequency axis and the legend on. The stripes are the kick and the off-beat tick. The band near 400 Hz is the melody. With legend=1 the output is larger than s, because the axes are added around it.

For a moving version, showspectrum is the video filter. Two things surprised us. With slide=scroll it adds one column at a time, so our 1280-pixel frame was only about a tenth full at three seconds. And its fps option defaults to auto: our render came out at 100/3, about 33.3 frames per second, not 25 or 30. Check the rate with ffprobe before you join the clip to anything else.

ffprobe -v error -select_streams v -show_entries stream=r_frame_rate -of csv=p=0 spectrum.mp4

For a spectrogram of a short clip, the still is often the better choice. For a long track, a narrower frame or slide=replace (the default) keeps the screen busy.

4. Stereo field: avectorscope

ffmpeg -i song.wav -filter_complex \
  "[0:a]avectorscope=s=720x720:mode=lissajous_xy:draw=line:zoom=1.5,format=yuv420p[v]" \
  -map "[v]" -map 0:a -c:v libx264 -c:a aac -shortest scope.mp4
A single thin diagonal line from top left to bottom right on black.
Our loop is mono copied to two channels. Left equals right, so the scope is one straight line.
A dense blue and green tangle of curves along the same diagonal.
The same loop with the right channel delayed by 2 ms (adelay=0|2). Now left and right differ, and the line opens into a cloud.

A vectorscope plots one channel against the other. It is a fair test of whether a file is really stereo, and it makes a striking picture for music with wide stereo. For a mono podcast or a mono bounce, it will draw a line. That is the correct answer, not a bug.

5. One still for the whole file: showwavespic

ffmpeg -i song.wav -lavfi "showwavespic=s=1600x400:colors=0x14b8a6" -frames:v 1 wave.png
A teal waveform across the full width with sixteen evenly spaced peaks.
Eight seconds in one image. Each peak is a kick. The output PNG has a transparent background, so it sits on any colour.

This is the FFmpeg version of a waveform print. It is a good way to preview the shape of a recording before making sound wave art in a dedicated tool, and it is how the waveform pictures on our comparison of music visualizers, audiograms, and sound wave art were made.

What FFmpeg will not do for you

The filters draw from the sound. They do not lay out a cover image, a title, captions, or a progress bar. Those take more filters, for example overlay for an image or drawtext for type, and drawtext needs an FFmpeg build with a font library. The Homebrew 8.1 build we used did not list drawtext at all. Run ffmpeg -filters | grep drawtext to check yours.

FFmpeg also does not separate a mix into instruments. Every filter here reads the whole mix. If you want the kick to drive one part of the picture and the vocal another, you need separate stem files, and then one filter per stem.

One filter cost us time: showfreqs with a log frequency scale ran out of memory on the eight-second loop and was killed by the operating system. We left it out of this page.

Test the commands yourself

The test loop is reproducible. This writes the same eight seconds we used:

B=0.5357
ffmpeg -f lavfi -i "aevalsrc='0.9*sin(2*PI*(46+110*exp(-25*mod(t,$B)))*mod(t,$B))*exp(-7*mod(t,$B)) + 0.35*sin(2*PI*(65.4*(1+0.189*gte(mod(t,4*$B),2*$B)))*t) + 0.18*sin(2*PI*(392*(1+0.26*gte(mod(t,$B),$B/2)))*t)*exp(-4*mod(t,$B/2)) + 0.08*(random(0)*2-1)*exp(-40*mod(t+$B/2,$B))':s=48000:d=8" -ac 2 loop.wav

The filter reference is the FFmpeg filters documentation. It is long. ffmpeg -h filter=NAME gives the same options for the version you actually have installed.

Questions

Can FFmpeg make a music visualizer without other software?

Yes, for plain pictures. The filters on this page draw a waveform, a pitch display, a spectrogram, or a vectorscope straight from the audio. Layout, logos, and type need more filters or another tool.

Why does my showwaves video look faint?

In FFmpeg 8.1 the draw option defaults to scale, which scales pixel values for each drawn sample. Set draw=full to paint the shape at full colour.

Why is my showspectrum video mostly black?

With slide=scroll the picture moves by one column at a time, so a wide frame takes a long time to fill. In our run, a 1280-pixel frame was about one tenth full after three seconds. Use a narrower frame, a different slide mode, or showspectrumpic for a still of the whole file.