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 top side

color = red or (#FF0000) hexadecimal code can be used here.


If you enjoyed this video tutorial and found it helpful, please consider giving it a thumbs up (like) 👍 and hitting that subscribe button ✅ if you haven’t already. Your likes and subscriptions not only motivate me to create more content but also help my channel grow, reaching more people who can benefit from it.

Indian Tourist  Visa

How to get Indian etourist visa

Leave a Comment