Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create video with border in android

Tags:

android

ffmpeg

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

like image 888
Dinesh Raj Avatar asked Oct 24 '13 07:10

Dinesh Raj


1 Answers

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

like image 102
Wagner Patriota Avatar answered Oct 21 '22 00:10

Wagner Patriota