添加倉庫源:php
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-6.noarch.rpm
安裝:bash
yum install ffmpeg
命令:ide
ffmpeg -i water.jpeg -strict -2 -vf delogo=x=300:y=250:w=56:h=18:show=0 no_water.jpeg
參數解釋:
x,y :指定水印的位置,即圖片左上角的座標
w,h:給出水印的寬高code