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