I need use the ffmpeg (v2.8) to convert mp4 to webp, how to build ffmpeg with libwebp for android ?
I googled, but have little information to build ffmpeg with libwebp.
I try to add the configuration:
--enable-libwebp
--enable-muxer=webp
--enable-encoder=libwebp
but i got the following compile error.
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.
The config.log is:
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
I solved the problem as the following steps:
The way that @halfelf mentioned in comments is for PC build, not for Android mobile platform.