admin管理员组文章数量:1404572
I am trying to build ffmpeg extensions for media3 (ExoPlayer) for Android
Using the default settings everything is fine but if I try to add support to libx264 the build failed. I compiled x264 for Android locally and it worked so the .so file for arm64 is present, I added it to the pkg-config with :
export PKG_CONFIG_PATH=/build/x264/arm64/lib/pkgconfig:$PKG_CONFIG_PATH
but when I try to build ffmpeg with the following command it fails :
./configure \
--prefix=/build/ffmpeg \
--enable-gpl \
--enable-libx264 \
--enable-static \
--enable-pic \
--arch=arm64 \
--target-os=android \
--cross-prefix=$TOOLCHAIN/bin/aarch64-linux-android21- \
--sysroot=$SYSROOT
Error : ERROR: x264 not found using pkg-config
But it is not due to pkg-config as the command:
pkg-config --cflags --libs x264
reports : -DX264_API_IMPORTS -I/build/x264/arm64/include -L/build/x264/arm64/lib -lx264
Any idea on how to fix it ?
Thank you :-)
本文标签: FFMPEG compile with x264 support for AndroidStack Overflow
版权声明:本文标题:FFMPEG compile with x264 support for Android - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744841815a2627968.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论