準(zhǔn)備條件
腳本文件:https://github.com/kewlbear/FFmpeg-iOS-build-script
文件:https://github.com/libav/gas-preprocessor
終端操作
復(fù)制gas-preprocessor.pl到/usr/local/bin下官份,
終端修改文件權(quán)限:chmod 777 /usr/local/bin/gas-preprocessor.pl
進入腳本文件夾終端輸入 sh build-ffmpeg.sh
運行時提示錯誤Homebrew和Yasm沒有下載,直接根據(jù)他的提示繼續(xù)就行了,然后就是等待編譯結(jié)束
完成&下載
編譯完成.png
6月7日編譯的最新版:http://pan.baidu.com/s/1boRfocv
注意
報錯的話可能是路徑問題

FFmpeg在xcode中運行
http://www.reibang.com/p/41461a8bf0bb