FFmpeg: How to add a color border to a video?

In this tutorial, I will show you how to add a color border to a video using the FFmpeg command. ffmpeg -i myinput.mp4 -filter_complex “[0]pad = w=40+iw : h=40+ih: x=20 : y=20 : color=#FF0000” -movflags +faststart output.mp4 w=40+iw h=40+ih x=20:y=20 is used for if x=0,y=0 so the border is not shown on the left and … Read more