Created
January 28, 2023 19:45
-
-
Save Gumichan01/5af9d22fbc10df98f423ff28189184ee to your computer and use it in GitHub Desktop.
A simple script I use in order to generate a video from audio
This file contains hidden or 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 | |
# Generate video from audio and a cover image | |
if (( $# < 3 )); then | |
echo "Usage: audeo.sh <img_file> <audio_file> <dest-video-file>" | |
else | |
ffmpeg -i $2 -loop 1 -i $1 -loop 1 -filter_complex "[0:a]showwaves=s=1920x200:mode=cline:colors=0xFFFFFF|0x333333[fg];[1:v]scale=1920:-1[bg];[bg][fg]overlay=shortest=1:820:format=auto,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -c:a copy -shortest $3 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment