Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ekkebus/bb48115728a1d811c8fd536626926d34 to your computer and use it in GitHub Desktop.
Save ekkebus/bb48115728a1d811c8fd536626926d34 to your computer and use it in GitHub Desktop.
FFMPEG slideshow with a visualized background music and image overlay

magick convert "input*.jpg" -auto-orient -gravity center -crop 16:9 +repage -resize 1920x1080 -background Black -gravity center -extent 1920x1080 -scene 1 "slides\image_%%03d.png" ffmpeg -y -i input.mp3 -start_number 1 -i "slides\image_%%03d.png" -loop 1 -i slideshow-overlay.png -filter_complex "[0:a]showwaves=s=1920x800:mode=cline:colors=#ffffff|#56bfac:draw=full,colorchannelmixer=1:0:0:0:0:1:0:0:0:0:1:0:1:1:1:0[wave];[1:v]zoompan=z=1:d=30:s=1920x1080:fps=30,framerate=60[slide];[slide][wave]overlay=0:680[slideshow];[slideshow][2]overlay[outv]" -map "[outv]" -map 0:a -pix_fmt yuv420p -c:v libx264 -c:a copy -shortest slideshow.mp4

@ekkebus
Copy link
Author

ekkebus commented May 12, 2020

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