想要像这样为视频添加边框
我已经尝试使用ffmpeg,但效果不正确。
"ffmpeg -i input.avi -vf pad=w:h:x:y:black output.avi"
"w"是边框的宽度,"h"是边框的高度,"x"和"y"是边框的起始坐标。请问有人能建议一下宽度、高度、X和Y的值吗?
![enter image description here](https://istack.dev59.com/oz5yV.webp)
FFmpeg拥有drawbox滤镜...只需在此处替换所需的宽度和高度:
ffmpeg -i input.avi -vf "drawbox= : x=0 : y=0 : w=100 : h=100 : color=green" output.avi