Skip to content

Instantly share code, notes, and snippets.

@AJDurant
Created February 26, 2016 16:37
Show Gist options
  • Save AJDurant/5be7029b12c17dfd1ec4 to your computer and use it in GitHub Desktop.
Save AJDurant/5be7029b12c17dfd1ec4 to your computer and use it in GitHub Desktop.
turn an audio file into a video with analysis
ffmpeg -i audio -filter_complex \
"[0:a]avectorscope=zoom=2:s=960x777:r=60,pad=1920:1080[vs]; \
[0:a]showspectrum=mode=separate:color=intensity:scale=cbrt:s=960x777[ss]; \
[0:a]showwaves=s=1920x303:r=60:mode=line[sw]; \
[vs][ss]overlay=w[bg]; \
[bg][sw]overlay=0:H-h[out]" \
-map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a aac video.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment