FFmpeg learning (8) - watermark to video

Remove video watermark
such as an audio download remove the watermark, the video is downloaded video 1280 * 720, 4 seconds before the watermark in the upper left corner of the video, the right four seconds watermark in the lower right corner of the video
input command twice this time,

First remove the watermark upper left corner

ffmpeg -i 1.mp4 -filter_complex "delogo=x=10:y=10:w=250:h=100:show=0" out.mp4

Then remove the lower right corner of the watermark

ffmpeg -i out.mp4 -filter_complex "delogo=x=460:y=1170:w=250:h=100:show=0" out2.mp4

Syntax:

delogo=x=10:y=10 水印的坐标,这里x,y最好不要同时为0
w,h   水印的宽高
band,t  指定矩形模糊边缘的厚度(添加到w和h),默认值为1。该选项不赞成使用
show 为1时将在屏幕上绘制一个绿色矩形,一般为0没有边框

 

Published 295 original articles · won praise 37 · views 30000 +

Guess you like

Origin blog.csdn.net/tianshan2010/article/details/104738414