站在巨人的肩膀上--傻瓜式编译ffmpeg for android
2014-01-18 09:10
507 查看
编译环境:
Ubuntu 12.04;
Android-ndk-r9;
ffmpeg 在运行shell脚本的时候自动下载最新版本;
首先,编译前需要安装ccache:
ccache is a software development tool that caches the output of C/C++compilation so
that the next time, the same compilation can be avoided and the results can be taken from the cache. This can greatly speed up recompiling time. ------From Wikipedia
源码下载:http://ccache.samba.org/download.html
安装ccache:
[plain] view
plaincopy
tar -xvf ccache-3.1.9.tar.bz2
cd ccache-3.1.9
./configure
make
make install //Mac系统安装需要加上sudo,即sudo make install
第二步: 从GitHub下载开源项目代码:FFmpeg-Android
[html] view
plaincopy
git clone https://github.com/yixia/FFmpeg-Android
没有安装git的要先安装git:
[html] view
plaincopy
sudo apt-get install git
第三步:编译这个项目
进入此项目目录
[html] view
plaincopy
$ export ANDROID_NDK=/path/to/your/android-ndk #导出你的NDK目录
$ ./FFmpeg-Android.sh #运行这个shell文件
闭目养生5分钟,就会出现令你兴奋的结果
libffmpeg.so will be built to build/ffmpeg/{neon,armv7,vfp,armv6}
至此你就会发现这个编译过程是多么简单便捷,不许要在ffmpeg源码中添加任何make文件,不需要编写任何shell脚本,甚至不用自己去下载ffmpeg源码。
Ubuntu 12.04;
Android-ndk-r9;
ffmpeg 在运行shell脚本的时候自动下载最新版本;
首先,编译前需要安装ccache:
ccache is a software development tool that caches the output of C/C++compilation so
that the next time, the same compilation can be avoided and the results can be taken from the cache. This can greatly speed up recompiling time. ------From Wikipedia
源码下载:http://ccache.samba.org/download.html
安装ccache:
[plain] view
plaincopy
tar -xvf ccache-3.1.9.tar.bz2
cd ccache-3.1.9
./configure
make
make install //Mac系统安装需要加上sudo,即sudo make install
第二步: 从GitHub下载开源项目代码:FFmpeg-Android
[html] view
plaincopy
git clone https://github.com/yixia/FFmpeg-Android
没有安装git的要先安装git:
[html] view
plaincopy
sudo apt-get install git
第三步:编译这个项目
进入此项目目录
[html] view
plaincopy
$ export ANDROID_NDK=/path/to/your/android-ndk #导出你的NDK目录
$ ./FFmpeg-Android.sh #运行这个shell文件
闭目养生5分钟,就会出现令你兴奋的结果
libffmpeg.so will be built to build/ffmpeg/{neon,armv7,vfp,armv6}
至此你就会发现这个编译过程是多么简单便捷,不许要在ffmpeg源码中添加任何make文件,不需要编写任何shell脚本,甚至不用自己去下载ffmpeg源码。
相关文章推荐
- 站在巨人的肩膀上--傻瓜式编译ffmpeg for android
- 站在巨人的肩膀上--傻瓜式编译ffmpeg for android
- windows10下编译ffmpeg for android----编译成功
- FFmpeg3.2最新版编译Mediacodec For Android脚本
- 在CentOS中编译FFmpeg for Android静态库(含fdk aac,x264)
- FFmpeg 1.2 for Android 编译动态库
- ffmpeg 编译好的库文件和可执行程序----for android
- ffmpeg的编译大全(包括 ffmpeg for android)
- 在CentOS中编译FFmpeg for Android静态库(含fdk aac,x264)
- qt for android从编译ffmpeg x264 aac 到在qtcreator上使用
- NDK移植havlenapetr/FFMpeg |Android平台实现 【Mark一下,目前仅仅测试了一下可行性(可行,但有问题)|接下来就好好研究研究(站下巨人的肩膀么- -)】
- Compile FFmpeg for Android(编译用于android的FFmpeg库)
- windows10下编译ffmpeg for android
- Linux 下编译 FFmpeg for Android
- Ubuntu环境编译FFmpeg3.2.2-for-android
- ffmpeg for android 独立ndk以及android项目下编译 --ubuntu
- ffmpeg for Android编译出现的常见问题
- FFmpeg 1.2 for Android 编译动态库
- ffmpeg for android 独立ndk以及android项目下编译 --ubuntu
- ffmpeg for android stagefirght 硬件加速的编译方法