`showcqt’ and `showwaves’ (overlay)

Watch on youtube.com
doc

https://ffmpeg.org/ffmpeg-filters.html#showcqt, https://ffmpeg.org/ffmpeg-filters.html#showwaves, https://ffmpeg.org/ffmpeg-filters.html#overlay

#! /bin/sh
ifn="Air on the G String (from Orchestral Suite no. 3, BWV 1068).mp3"
ifnb="`basename \"${ifn}\" .mp3`"
pref="`basename $0 .sh`"

#
ffmpeg -y -i "${ifn}" -filter_complex "
[0:a]showcqt=s=1920x1080[vcqt];
[0:a]showwaves=split_channels=1:mode=line:s=1280x480[vs];
[vcqt][vs]overlay=x=W-w-50:y=50[v]
" -map '[v]' -map '0:a' -c:a copy \
  "${pref}_${ifnb}.mp4"