FFmpeg源码:
https://github.com/FFmpeg/FFmpeg
例子:
https://github.com/leixiaohua1020/simplest_ffmpeg_mobile
AS打开上面的例子会有错误
错误1:
Error:(12, 0) Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.
在项目根目录新建文件gradle.properties
,并增加一行代码:
android.useDeprecatedNdk=true
同步项目即可。
错误2:
Error:Execution failed for task ':app:compileDebugNdk'.
> NDK not configured.
Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dir=path/to/ndk in local