How to create frame video in android

Want to add a border to the video, for example,

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 coordinates of the start of the border.

can anyone suggest width, height, x and y value please

enter image description here

+6
source share
1 answer

FFmpeg has a drawbox filter ... Just replace the desired width and height below:

 ffmpeg -i input.avi -vf "drawbox= : x=0 : y=0 : w=100 : h=100 : color=green" output.avi 

You can find all the options on the filter page (change color, thickness, etc.)

http://ffmpeg.org/ffmpeg-filters.html#drawbox

+5
source

Source: https://habr.com/ru/post/956614/


All Articles