我需要使用ffmpeg(v2.8)将mp4转换为webp,如何使用libwebp为android构建ffmpeg?
我用谷歌搜索,但很少有信息用libwebp构建ffmpeg。
我尝试添加配置:
--enable-libwebp
--enable-muxer=webp
--enable-encoder=libwebp
但是我收到了以下编译错误。
ERROR: libwebp not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
config.log是:
check_pkg_config libwebp >= 0.2.0 webp/encode.h WebPGetEncoderVersion
false --exists --print-errors libwebp >= 0.2.0
ERROR: libwebp not found using pkg-config
答案 0 :(得分:1)
我按以下步骤解决了问题:
@halfelf在评论中提到的方式是用于PC构建,而不是用于Android移动平台。