Created
June 18, 2020 20:08
-
-
Save alexjpaz/de25c83d69e597e311602ffaa7d16f06 to your computer and use it in GitHub Desktop.
ffmpeg with audio with visualization on top of an image with text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ffmpeg \ | |
-y \ | |
-i input.wav \ | |
-i paz.png \ | |
-filter_complex "\ | |
[1:v]scale=-1:480:flags=neighbor,loop=size=2:loop=-1[fg]; | |
[0:a]showcqt=s=1280x720:axis_h=0:sono_h=0:basefreq=27.5:endfreq=1000.0[v]; | |
[fg]drawtext=text='Primitive Rule':fontcolor=white:fontsize=72:font=Bebas Neue:x=(w-text_w)/2:y=(h-text_h)/2[fg]; | |
[v][fg]overlay=x=(1280-w)/2:y=(720-h)/2[out] | |
" \ | |
-map "[out]" \ | |
-map 0:a \ | |
-c:v libx264 \ | |
-c:a copy \ | |
output.mkv | |
echo 'DONE' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment