Dinesh Raj
Dinesh Raj

Reputation: 654

How to create video with border in android

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

enter image description here

Upvotes: 6

Views: 2060

Answers (1)

Wagner Patriota
Wagner Patriota

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

Related Questions