Skip to content

Instantly share code, notes, and snippets.

@fluffy-critter
Created August 26, 2019 00:48
Show Gist options
  • Save fluffy-critter/daf52fa480d2597c9cf046c10ab08311 to your computer and use it in GitHub Desktop.
Save fluffy-critter/daf52fa480d2597c9cf046c10ab08311 to your computer and use it in GitHub Desktop.
Make a music visualizer for twitter/mastodon/etc.
#!/bin/sh
# Converts an audio file to a smol .mp4 video with a basic spectrogram visualizer
ffmpeg -y -i "$1" -filter_complex "
[0:a]showcqt=s=320x80:text=0[v]
" -map [v] -map 0:a -b:a 320k "$1.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment