FFmpeg的添加logo,去logo滤镜的组合共有三种方式:
1. 只有添加logo滤镜
$ ./ffmpeg -i INPUT.FLV
-vf movie=/opt/logo.png[logo];[in][logo]overlay=main_w-overlay_w-100:0[out]
-vcodec ... -acodec ... -f flv -y OUT.FLV
2. 只有去logo滤镜
$ ./ffmpeg -i INPUT.FLV
-vf mp=delogo=560:10:190:60:20
-vcodec ... -acodec ... -f flv -y OUT.FLV
3. 在添加logo的同时还要去logo
$ ./ffmpeg -i INPUT.FLV
-vf movie=/opt/logo.png[logo];[in]mp=delogo=560:10:190:60:20,[logo]overlay=main_w-overlay_w-100:0[out]
-vcodec ... -acodec ... -f flv -y OUT.FLV