使用当前安装的 ffmpeg,我无法在转换后的视频上发布水印。原因可能是我没有安装 libavfilter 库吗?
目前 # ffmpeg -v 看起来像:
FFmpeg version SVN-r20374, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Oct 26 2009 22:47:01 with gcc 4.1.2 20080704 (Red Hat 4.1.2-46)
configuration: --enable-libmp3lame --enable-libopencore-amrnb --enable-version3 - enable-libopencore-amrwb --enable-version3 --enable-nonfree --enable-libfaad --enable-gpl - -disable-mmx --enable-shared --enable-libfaac --enable-libvorbis
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.37. 1 / 52.37. 1
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
如您所见,我缺少 libavfilter?如何将该库添加到 FFMPEG 并成功在视频上添加水印?
谢谢你的帮助。
最佳答案
看来你不见了libavfilter
,尝试使用以下方法安装它:
cd /
svn checkout svn://svn.ffmpeg.org/soc/libavfilter
cd libavfilter
./checkout.sh
然后,您必须在 ffmpeg 中启用它:
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf
make
验证它是否已使用:
ffmpeg -filters
根据我的经验,在安装 ffmpeg 之后安装扩展和编解码器并不总是有效。如果它不起作用,我建议删除 ffmpeg 并重新开始。
关于php - FFMPEG 和 libavfilter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5133290/