Reputation: 654
Want to add border to video like this
i already tried using ffmpeg not working correctly
"ffmpeg -i input.avi -vf pad=w:h:x:y:black output.avi"
"w" is the width of your border, "h" is the height of your border, and "x" and "y" are the border's origin coordinates.
can anyone suggest the width,height,x and y value please
Upvotes: 6
Views: 2060
Reputation: 5684
FFmpeg has the drawbox filter... Just replace the desired width and height here down:
ffmpeg -i input.avi -vf "drawbox= : x=0 : y=0 : w=100 : h=100 : color=green" output.avi
You can find all the options in the filter page (change color, thickness, etc)
http://ffmpeg.org/ffmpeg-filters.html#drawbox
Upvotes: 5