Created
April 18, 2020 23:37
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Here's a couple of videos demonstrating what this produces:
https://twitter.com/kentbye/status/1251659988264574976
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a modified version of ffmpeg code that I originally found here: https://pastebin.com/uVNvLjKh