Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Simple ffmpeg script to add audio to video and add a progress bar below
- # For 720p image
- ffmpeg -loop 1 -i <BACKGROUND_IMAGE> -i <AUDIO> \
- -filter_complex "drawbox=x=0:y=0:w=in_w:h=26:color=#ff0000@0.7:t=20[line]; \
- [0:v][line]overlay=shortest:y=(H-26):x=(t*(W/<AUDIO_DURATION>)-W)[out]" \
- -map '[out]' -map 1:a -pix_fmt yuv420p -b:a 160k -shortest OUT.mp4
Add Comment
Please, Sign In to add comment