Skip to content

Instantly share code, notes, and snippets.

@ekkebus
Last active May 24, 2021 10:08
Show Gist options
  • Save ekkebus/e40243aa7d8f0c0f0b2d1c7d087d7280 to your computer and use it in GitHub Desktop.
Save ekkebus/e40243aa7d8f0c0f0b2d1c7d087d7280 to your computer and use it in GitHub Desktop.
FFMPEG transparent audio wave visulatsation on background image

ffmpeg -y -i input.mp3 -loop 1 -i background.png -filter_complex "[0:a]showwaves=s=1520x200:mode=line:colors=Red:draw=full,colorchannelmixer=1:0:0:0:0:1:0:0:0:0:1:0:1:1:1:0[v];[1:v][v]overlay=200:900[outv]" -map "[outv]" -pix_fmt yuv420p -map 0:a -c:v libx264 -c:a copy -shortest output-audio-visualisation.mp4

@ekkebus
Copy link
Author

ekkebus commented Apr 28, 2020

Here is a screencapture of the result.
ffmpeg mp3 wave visualisation on background image

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