Guest User

Untitled

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