gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 23:16:20 25 4
gpt4 key购买 nike

我试图在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com