ios-ffmepg2.5.2编译

顺利编译最新的ffmpeg2.5.2,并运行了github上提供的ffmpeg-demo,小激动了下,再此记录下。


编译使用环境:

OS X版本10.9.5

Xcode版本Version 6.1.1 (6A2008a)


编译步骤:

准备工作,新建一个目录,命名为ffmpeg,将如下步骤中所需要的文件下载到此目录下,下图:



一、安装yasm

1、下载安装包:http://yasm.tortall.net/Download.html
2、解压后,在终端进入其目录下,参考官网使用说明:
On UNIX-compatible operating systems, Yasm builds using the standard “./configure; make; make install” commands
在终端先执行./configure 配置OK后,再执行make install
3、验证安装是否成功,输入yasm --version 
输出如:

appledeMacBook-Air:universal apple$ yasm --version
yasm 1.3.0
Compiled on Jan  4 2015.
Copyright (c) 2001-2014 Peter Johnson and other Yasm developers.
Run yasm --license for licensing overview and summary.

二、下载gas-preprocessor文件

1、下载gas-preprocessor文件,通过git clone https://github.com/libav/gas-preprocessor直接下载到ffmepg目录
2、在终端进入gas-preprocessor目录下,拷贝sudo cp gas-preprocessor.pl到/usr/bin目录下并修改其权限;
sudo cp gas-preprocessor.pl /usr/bin
cd /usr/bin
sudo chmod a+rwx gas-preprocessor.pl
注意权限问题


三、下载FFmpeg-iOS-build-script文件

前面两步都OK的话,第三步参考https://github.com/kewlbear/FFmpeg-iOS-build-script上面使用说明即可。

1、下载FFmpeg-iOS-build-script,在终端进入ffmpeg目录,执行git clone https://github.com/kewlbear/FFmpeg-iOS-build-script.git
2、进入FFmpeg-iOS-build-script目录下,执行./build-ffmpeg.sh进行自动化下载编译操作
3、经过二十分钟左右时间编译成功,哈哈!

编译成功后,进入FFmpeg-iOS-build-script目录下,将看到如下图:FFmpeg-ios目录下存放的是通用版本的.a静态库及头文件,而thin下存放的是各个平台的静态库和头文件。



参考资料:


https://github.com/kewlbear/FFmpeg-iOS-build-script

http://yasm.tortall.net/releases/Release1.3.0.html

https://github.com/libav/gas-preprocessor

http://witcheryne.iteye.com/blog/1734706


This is a FFmpeg Win64 shared build by Kyle Schwarz. Zeranoe's FFmpeg Builds Home Page: This build was compiled on: Dec 30 2014, at: 17:29:04 FFmpeg version: 2.5.2 libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat 56. 15.102 / 56. 15.102 libavdevice 56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 This FFmpeg build was configured with: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib This build was compiled with the following external libraries: bzip2 1.0.6 Fontconfig 2.11.91 Frei0r 20130909-git-10d8360 GnuTLS 3.2.20 libiconv 1.14 libass 0.12.0 libbluray 0.6.2 libbs2b 3.1.0 libcaca 0.99.beta18 FreeType 2.5.4 Game Music Emu 0.6.0 GSM 1.0.13-4 iLBC 20141214-git-ef04ebe Modplug-XMMS 0.8.8.5 LAME 3.99.5 OpenCORE AMR 0.1.3 OpenJPEG 1.5.2 Opus 1.1 RTMPDump 20140707-git-a1900c3 Schroedinger 1.0.11 libsoxr 0.1.1 Speex 1.2rc2 Theora 1.1.1 TwoLAME 0.3.13 vid.stab 0.98 VisualOn AAC 0.1.3 VisualOn AMR-WB 0.1.2 Vorbis 1.3.4 vpx 1.3.0 WavPack 4.70.0 WebP 0.4.2 x264 20141220-git-40bb568 x265 1.4 XAVS svn-r55 Xvid 1.3.3 XZ Utils 5.2.0 zlib 1.2.8 The source code for this FFmpeg build can be found at: This build was compiled on Debian 8.0 (64-bit): GCC 4.9.2 was used to compile this FFmpeg build: This build was compiled using the MinGW-w64 toolchain: Licenses for each library can be found in the 'licenses' folder.
This is a FFmpeg Win64 shared build by Kyle Schwarz. Zeranoe's FFmpeg Builds Home Page: This build was compiled on: Dec 30 2014, at: 17:29:04 FFmpeg version: 2.5.2 libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat 56. 15.102 / 56. 15.102 libavdevice 56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 This FFmpeg build was configured with: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib This build was compiled with the following external libraries: bzip2 1.0.6 Fontconfig 2.11.91 Frei0r 20130909-git-10d8360 GnuTLS 3.2.20 libiconv 1.14 libass 0.12.0 libbluray 0.6.2 libbs2b 3.1.0 libcaca 0.99.beta18 <http://caca.zoy.org
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值