Skip to content

Instantly share code, notes, and snippets.

@kgorskowski
Last active August 29, 2015 14:18
Show Gist options
  • Save kgorskowski/6534fcfb591d91c47f3a to your computer and use it in GitHub Desktop.
Save kgorskowski/6534fcfb591d91c47f3a to your computer and use it in GitHub Desktop.
ffmpeg for audiowavelength conversion
ffmpeg -i audioinput.mp3 -loop 1 -i backgroundpic.png -filter_complex "[0:a]channelsplit[a1][a2];[a1]showwaves=s=960x270:mode=p2p:rate=15,format=yuv420p,colorbalance=gs=0.49,colorbalance=bs=0.34,colorbalance=rm=1,colorbalance=gm=1,colorbalance=bm=1,scale=1920x540[bottom];[1:v][bottom]overlay=shortest=1:main_h/2[vid]" -map "[a2]" -c:a /dev/null -map "[vid]" -map 0:a -codec:v libx264 -crf 18 -tune animation -preset fast -r 15 -codec:a aac -strict -2 -b:a 192k output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment