0.tools/do-compile-ffmpeg.sh: 317: tools/do-compile-ffmpeg.sh: make: not found
新系统默认不安装make,命令行安装sudo apt-get install make
1.Invalid NDK_TOOLCHAIN_VERSION value: 4.9. GCC is no longer supported.
注释NDK_TOOLCHAIN_VERSION
2.Unknown option “–disable-ffserver”
Unknown option “–disable-vda”
FFmpeg 4.0 须去掉(注释)再编译
3.libavcodec/eac3_core_bsf.c:39: error: undefined reference to ‘ff_ac3_parse_header’
libavcodec/eac3_core_bsf.c:55: error: undefined reference to ‘ff_ac3_parse_header’
FFmpeg4.0 不再支持,须要–disable-bsf=eac3_core
4.libavformat/utils.c:6003: error: undefined reference to ‘ff_hevc_decode_extradata’
libavformat/utils.c:6066: error: undefined reference to ‘ff_hevc_ps_uninit’
libavformat/utils.c:6069: error: undefined reference to ‘ff_hevc_ps_uninit’
增加hevc(H265)支持
5.编译生成aar时报错:
* What went wrong:
A problem occurred configuring project ':ijkplayer-example'.
> All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html
fixed:
defaultConfig {
applicationId "tv.danmaku.ijk.media.example"
minSdkVersion 9
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
flavorDimensions "versionCode" #add this codes
}