FFmpeg libavfilter水印? [英] FFmpeg libavfilter watermark?
本文介绍了FFmpeg libavfilter水印?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于vhook子系统已从最新版本的FFMPEG中删除,所以如何向视频添加水印?
Since the vhook subsystem has been removed from the latest version of FFMPEG, how can I add a watermark to a video?
我的服务器上安装了以下软件:
the following software is installed on my server:
FFmpeg版本SVN-r0.5.1-4:0.5 .1-1ubuntu1与libavfilter 0.4.0
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1 with libavfilter 0.4.0
例如: - >但这段代码不起作用。
for example: --> but this code does not work.
exec('ffmpeg -i 01.mpg -vfilters "movie=0:png:watermark.png [logo]; [in][logo] overlay=10:main_h-overlay_h-10 [out]" -f flv 03.flv');
谢谢,
推荐答案
我不认为-vfilters被识别:使用-vf代替。电影不会列出未定义的冒号分隔参数( http://ffmpeg.org/ffmpeg。 html#toc-movie )
I don't think -vfilters is recognized: use -vf instead. movie doesn't take a list of undefined colon delimited arguments (http://ffmpeg.org/ffmpeg.html#toc-movie)
尝试:
ffmpeg -i 01.mpg -vf "movie=watermark.png [logo]; [in][logo] overlay=10:main_h-overlay_h-10 [out]" -f flv 03.flv
这篇关于FFmpeg libavfilter水印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文