File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
# 环境
6
6
ubuntu 12.04LTS x86_64<br >
7
7
android-ndk64-r10-linux-x86_64<br >
8
- ffmpeg 2.6.2
8
+ ffmpeg 2.6.2<br >
9
+ 我是在ubuntu下进行移植的,windows下应该也可以,没有尝试过。
9
10
10
11
# 获取代码
11
12
```
14
15
15
16
# 使用
16
17
##Step 1
18
+ 安装android linux NDK以及SDK,并配置环境变量;<br >
19
+ 从[ ffmpeg官网] ( http://ffmpeg.org/ ) 下载ffmpeg源码包;<br >
20
+ ##Step 2
17
21
修改build_android.sh中的 TMPDIR、NDK、SYSROOT、TOOLCHAIN、PREFIX变量为自己的具体情况,具体如下:<br >
18
22
#####1 .指定零时目录
19
23
```
@@ -80,13 +84,13 @@ PREFIX=/root/workspace/ffmpeg_shared_compile/dxjia_ffmpeg_install
80
84
ADDI_CFLAGS = " -marm"
81
85
build_one
82
86
```
83
- ##Step 2
87
+ ##Step 3
84
88
```
85
89
cd source/ffmpeg
86
90
./build_andrioid.sh
87
91
```
88
92
89
- ##Step 3
93
+ ##Step 4
90
94
等待一段时间后,会在 $PREFIX 目录下生成 include和lib两个文件夹,将lib文件夹中的 pkgconfig 目录和so的链接文件删除,只保留so文件,然后将include 和lib两个目录一起copy到你的apk jni下去编译,具体请参考我的另外一个项目[ ffmpeg-jni-sample] ( https://github.com/dxjia/ffmpeg-jni-sample )
91
95
92
96
# Reference & Thanks
You can’t perform that action at this time.
0 commit comments