ffmpeg watermark

不羁岁月 提交于 2019-12-11 14:49:39

问题


I am using a static compiled lib of FFMPEG gotten from BAMBUSER for android. The problem I am facing now is that FFMPEG version gotten from BAMBUSER does not support watermarking.

ffmpeg -sameq -i mirror_watermark.mp4 -vf "movie=mirror_watermark.png [logo]; [in][logo] overlay=main_w-overlay_w:main_h-overlay_h [out]" output.mp4
No such filter: 'movie'

./configure --list-filters | grep movie
returns nothing

So I guess I have to use a newer version of FFMPEG but I do not know how to get started since with the BAMBUSER everything was already set I just added certain encoders and decoders to their script.


回答1:


I used this as a reference for compiling newer FFMPEG version which supports watermarking: https://github.com/guardianproject/android-ffmpeg




回答2:


You can Use -overlay for it. This Will Add Your Watermark on a Particular position on the image or video as per dimensions.

Use below command:

-ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4


来源:https://stackoverflow.com/questions/13818436/ffmpeg-watermark

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!