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).
Also in notes/ffmpeg-filters.txt: mode=p2p at 1280×720 with hex colors (colors=0xA9A9A9|0xFDF5E6) to H.264. One showwaves line there passed mpc=cyan, which belongs to aphasemeter (see aphasemeter.sh), and had no [v] label.
The command
ffmpeg -i input.aiff \
-filter_complex "[0:a]showwaves=mode=cline:scale=lin:colors=White|White:size=1920x1080:rate=30,format=yuv422p10le[v]" \
-map "[v]" -map 0:a \
-c:v prores_ks -profile:v 3 \
waves-cline-lin.mov
ffmpeg -i input.aiff \
-filter_complex "[0:a]showwaves=mode=cline:scale=log:colors=White|White:size=1920x1080:rate=30,format=yuv422p10le[v]" \
-map "[v]" -map 0:a \
-c:v prores_ks -profile:v 3 \
waves-cline-log.mov
ffmpeg -i input.aiff \
-filter_complex "[0:a]showwaves=mode=p2p:scale=lin:colors=White|Gray:size=1920x1080:rate=30,format=yuv422p10le[v]" \
-map "[v]" -map 0:a \
-c:v prores_ks -profile:v 3 \
waves-p2p-lin.mov
ffmpeg -i input.aiff \
-filter_complex "[0:a]showwaves=mode=point:split_channels=1:scale=log:colors=White|White:size=1920x1080:rate=30,format=yuv422p10le[v]" \
-map "[v]" -map 0:a \
-c:v prores_ks -profile:v 3 \
waves-point-split.mov What each part does
showwaves=…
mode=cline filled, centered line
mode=p2p dots joined point-to-point
mode=point a dot per sample
scale=lin|log linear or logarithmic amplitude (log shows
quiet passages better)
split_channels=1 draw left and right separately
colors=White|Gray per-channel colors
size=1920x1080:rate=30
format=yuv422p10le 10-bit 4:2:2 for ProRes
-map "[v]" -map 0:a take the rendered video and the original audio
-c:v prores_ks -profile:v 3
ProRes 422 HQ When to use it
This is useful when you need a waveform as a separate layer to composite over footage in an editor. Each of the four commands renders one style as 1920×1080, 30 fps ProRes 422 HQ over black, with the original audio muxed in. Use a screen blend mode in the editor to drop the black. The header explains each flag. Delete the commands for the styles you don't need, and change input.aiff and the output names to suit.
Skip it when you want frequency content rather than amplitude (see showcqt.sh) or stereo width and phase (see avectorscope.sh or aphasemeter.sh). ProRes files are large, so don't use this for web delivery.
For variations, edit size and rate to match your timeline, or swap in hex colors such as 0xA9A9A9|0xFDF5E6.
If the output looks wrong:
- Waveform barely moves on quiet material: switch
scale=lintoscale=log. - Channels overlap when you want them apart: add
split_channels=1. - Filter rejects
mpc: that option belongs to aphasemeter, not showwaves. - Mapping fails: check that the filter chain ends with the
[v]label.
Notes
- Source
- ffmpeg-utilities/wavs.sh
- Changed
- format=yuv422p → yuv422p10le (ProRes is 10-bit); removed the redundant -r 30 (the filter's rate=30 sets it); -c:v prores → prores_ks