android - 错误 : libfaac not found while compiling FFMPEG library

标签 android compilation ffmpeg android-ndk libfaac

我试图在 ubuntu 下为 android 编译 FFMPEG 库,其中包括所有可能的编解码器。
我按照本教程 http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/ .
但是当我执行 ./build_android.sh 它给了我这个错误:

root@AK-74:/home/rango/Desktop/android-ndk-r10e/sources/ffmpeg-3.0# ./build_android.sh ERROR: libfaac not found

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.



这是我的 build_android.sh 内容:
#!/bin/bash
NDK=/home/rango/Desktop/android-ndk-r10e
SYSROOT=$NDK/platforms/android-19/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86

function build_one
{
./configure \
    --prefix=$PREFIX \
    --enable-shared \
    --disable-static \
    --disable-doc \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-avdevice \
    --disable-doc \
    --disable-symver \
    --enable-gpl \
    --enable-version3 \
    --enable-nonfree \
    --enable-shared \
    --enable-libopencore-amrnb \
    --enable-libopencore-amrwb \
    --enable-libfaac \
    --enable-libgsm \
    --enable-libmp3lame \
    --enable-libtheora \
    --enable-libvorbis \
    --enable-libx264 \
    --enable-libxvid \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
    --target-os=linux \
    --arch=arm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
    --extra-ldflags="$ADDI_LDFLAGS" \
    $ADDITIONAL_CONFIGURE_FLAG
make clean
make -j4
make install
}

CPU=arm
PREFIX=$(pwd)/android/$CPU
ADDI_CFLAGS="-marm"

build_one

最佳答案

libfaac sucks .删除 --enable-libfaac--enable-nonfree .您可以改用 native FFmpeg AAC 编码器,并且不需要额外的外部库来使用它。

关于android - 错误 : libfaac not found while compiling FFMPEG library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35750462/

相关文章:

java - longclick时, ListView 中的删除按钮项目出现在另一个位置

windows - ffmpeg 在播放全屏的电视上保持宽高比

filter - 尝试使用 2 个叠加层创建视频

python - 将Python转换为C,然后用Cython编译成exe

c++ - 是否可以在 C++ 编译时使用模板元编程输出评估值?

ffmpeg - 为什么 android camera and go pros 不使用 b 帧?

Android Geofencingclient ApiException 1004 :

android - 获取被点击项的名称

java - Android中写入 "text"和Resource ID

c - 为什么我没有 "undefined reference to"?