Skip to content

Instantly share code, notes, and snippets.

@kentbye
Created April 18, 2020 23:37
Show Gist options
  • Save kentbye/d643216a3c2ace30cabc9efa023df3db to your computer and use it in GitHub Desktop.
Save kentbye/d643216a3c2ace30cabc9efa023df3db to your computer and use it in GitHub Desktop.
FFMPEG code for Spectral Frequency Display using showcqt (logarithmic frequency spectrum) + showspectrum (audio frequency spectrum) + showwaves
ffmpeg -i coltrane.wav -filter_complex "[0:a]showcqt=s=640x518:fps=30:axis=0,colorchannelmixer=.769:.393:.189:.349:0:.686:.168:0:.272:.534:.131,hue=n*2,pad=1280:720[vs]; [0:a]showspectrum=mode=separate:color=fiery:scale=log:orientation=vertical:overlap=1:slide=scroll:s=640x518[ss]; [0:a]showwaves=s=1280x202:mode=cline:scale=cbrt:colors=#FF8300[sw]; [vs][ss]overlay=w[bg]; [bg][sw]overlay=0:H-h[out]" -map "[out]" -map 0:a coltrane-output.mov
@kentbye
Copy link
Author

kentbye commented Apr 18, 2020

This is a modified version of ffmpeg code that I originally found here: https://pastebin.com/uVNvLjKh

@kentbye
Copy link
Author

kentbye commented Apr 18, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment