ijkplayer工程编译FFMPEG+x264+H265解码器支持(iOS环境下)

参考文章:ijkplayer 的编译、打包 framework 和 https 支持 -

1. 如何干净的卸载xcode :如何干净的卸载Xcode?和缓存? -

sudo rm -rf /Applications/Xcode.app

sudo rm -rf/Library/Preferences/com.apple.dt.Xcode.plist

rm -rf~/Library/Preferences/com.apple.dt.Xcode.plist

rm -rf ~/Library/Caches/com.apple.dt.Xcode

rm -rf ~/Library/Application\ Support/Xcode

rm -rf ~/Library/Developer/Xcode

rm -rf ~/Library/Developer/CoreSimulator

rm -rf ~/Library/Developer/XCPGDevices

xcode缓存目录:~/Library/Developer/Xcode/DerivedData

2.重新将xcode9.2安装到应用程序中(为了编译armv7 asm.c, Xcode9.3以上已经弱化了对32 位的支持)

3.把/Users/laixh/githubCode/ijkplayer/ijkplayer-ios/config/module.sh文件中的下面一句注释打开

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=hevc"

4. cd /Users/laixh/githubCode/ijkplayer/ijkplayer-ios/ios

执行 compile-ffmpeg.sh clean

5.把编译好的x264-arm64/x264-armv7/ x264-i386/x264-x86_64拷贝到  ./build

执行 compile-ffmpeg.sh all 

ps:FFMPEG+x264支持参考:ijkplayer (iOS)集成x264编码器 -

ps: 如果用xcode9.3以上,那么如果提示错误:

./libavutil/arm/asm.S:50:9: error: unknown directive .arch armv7-a^make: *** [libavcodec/arm/aacpsdsp_neon.o] Error 1

最新的 Xcode 已经弱化了对32 位的支持,解决方法:

在compile-ffmpeg.sh中删除armv7, 修改如:

FF_ALL_ARCHS_IOS8_SDK="arm64

i386 x86_64"再重新执行出现错误的命令:./compile-ffmpeg.sh

all

6.查看/Users/laixh/githubCode/ijkplayer/ijkplayer-ios/ios/build/ffmpeg-arm64/output/config.h生成的配置文件是否开启x265解码器

#define CONFIG_HEVC_DECODER 1

7. 将编译生成的ffmpeg-arm64/ffmpeg-armv7/ ffmpeg-i386/ffmpeg-x86_64打包

执行 compile-ffmpeg.sh lipo

ps:/Users/laixh/githubCode/ijkplayer/ijkplayer-ios/config/module.sh

FFMPEG配置脚本如下:

#! /usr/bin/env bash

#--------------------

# Standard options:

export COMMON_FF_CFG_FLAGS=

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --prefix=PREFIX"


# Licensing options:

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-gpl"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-version3"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-nonfree"


# Configuration options:

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-static"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-shared"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-small"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-runtime-cpudetect"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-gray"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-swscale-alpha"


# Program options:

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-programs"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-ffmpeg"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-ffplay"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-ffprobe"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-ffserver"


# Documentation options:

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-doc"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-htmlpages"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-manpages"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-podpages"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-txtpages"


# Component options:

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-avdevice"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avcodec"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avformat"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avutil"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-swresample"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-swscale"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-postproc"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avfilter"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-avresample"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-pthreads"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-w32threads"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-os2threads"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-network"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-dct"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-dwt"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-lsp"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-lzo"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-mdct"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-rdft"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-fft"


# Hardware accelerators:

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-d3d11va"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-dxva2"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-vaapi"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-vda"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-vdpau"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-videotoolbox"


# Individual component options:

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-everything"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-encoders"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-encoder=png"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-encoder=mjpeg"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-encoder=libx264"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-encoder=aac"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-encoder=flv"


# ./configure --list-decoders

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-decoders"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-decoder=aac"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=aac_latm"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=flv"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=h264"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=mp3*"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=vp6f"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=flac"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-decoder=hevc"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=vp8"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=vp9"


exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-hwaccels"


# ./configure --list-muxers

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-muxers"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-muxer=mp4"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-muxer=mjpeg"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-muxer=flv"


# ./configure --list-demuxers

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-demuxers"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=aac"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-demuxer=concat"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=data"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=flv"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=hls"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=live_flv"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=mov"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=mp3"

#export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-demuxer=mpegps"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=mpegts"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=mpegvideo"

#export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-demuxer=flac"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=hevc"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-demuxer=webm_dash_manifest"


# ./configure --list-parsers

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-parsers"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-parser=aac"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-parser=aac_latm"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-parser=h264"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-parser=flac"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-parser=hevc"


# ./configure --list-bsf

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-bsfs"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsfs"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-bsf=chomp"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-bsf=dca_core"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-bsf=dump_extradata"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsf=hevc_mp4toannexb"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsf=imx_dump_header"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-bsf=mjpeg2jpeg"

#export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsf=mjpega_dump_header"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-bsf=mov2textsub"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsf=mp3_header_decompress"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsf=mpeg4_unpack_bframes"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-bsf=noise"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsf=remove_extradata"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsf=text2movsub"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-bsf=vp9_superframe"


# ./configure --list-protocols

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocols"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-protocol=async"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=bluray"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=concat"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-protocol=crypto"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-protocol=ffrtmpcrypt"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-protocol=ffrtmphttp"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=ffrtmphttp"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=gopher"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=icecast"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-protocol=librtmp*"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=libssh"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=md5"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=mmsh"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-protocol=mmst"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=rtmp*"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=rtmp"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=rtmp"

#exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=rtmpt"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=rtmpt"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=rtp"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-protocol=sctp"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=srtp"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=subfile"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=unix"


#

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-devices"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-filters"


# External library support:

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-iconv"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-audiotoolbox"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-videotoolbox"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-libx264--enable-gpl"

# ...


# Advanced options (experts only):

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--cross-prefix=${FF_CROSS_PREFIX}-"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-cross-compile"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --sysroot=PATH"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--sysinclude=PATH"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --target-os=TAGET_OS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --target-exec=CMD"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --target-path=DIR"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --toolchain=NAME"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --nm=NM"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --ar=AR"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --as=AS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --yasmexe=EXE"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --cc=CC"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --cxx=CXX"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --dep-cc=DEPCC"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --ld=LD"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --host-cc=HOSTCC"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --host-cflags=HCFLAGS"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--host-cppflags=HCPPFLAGS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --host-ld=HOSTLD"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --host-ldflags=HLDFLAGS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --host-libs=HLIBS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --host-os=OS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --extra-cflags=ECFLAGS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --extra-cxxflags=ECFLAGS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --extra-ldflags=ELDFLAGS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --extra-libs=ELIBS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --extra-version=STRING"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --optflags=OPTFLAGS"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --build-suffix=SUFFIX"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --malloc-prefix=PREFIX"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --progs-suffix=SUFFIX"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--arch=ARCH"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --cpu=CPU"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-pic"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-sram"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--enable-thumb"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-symver"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-hardcoded-tables"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-safe-bitstream-reader"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-memalign-hack"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-lto"


# Optimization options (experts only):

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-asm"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-altivec"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-amd3dnow"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-amd3dnowext"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-mmx"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-mmxext"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-sse"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-sse2"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-sse3"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-ssse3"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-sse4"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-sse42"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-avx"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-fma4"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-armv5te"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-armv6"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-armv6t2"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-vfp"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-neon"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-vis"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-inline-asm"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-yasm"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-mips32r2"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-mipsdspr1"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-mipsdspr2"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-mipsfpu"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-fast-unaligned"


# Developer options (useful when working onFFmpeg itself):

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-coverage"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-debug"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-debug=LEVEL"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-optimizations"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-extra-warnings"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-stripping"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--assert-level=level"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-memory-poisoning"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --valgrind=VALGRIND"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-ftrapv"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --samples=PATH"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-xmm-clobber-test"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-random"

# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS--disable-random"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-random=LIST"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-random=LIST"

# exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --random-seed=VALUE"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf"

exportCOMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-bzlib"

你可能感兴趣的:(ijkplayer工程编译FFMPEG+x264+H265解码器支持(iOS环境下))