原文出自这里http://www.likecode.com/2014/12/29/187/
但是里面有几个细节说得不太清楚,这里记录一下具体的配置方式
- 下载ffmpeg源码 https://github.com/FFmpeg/FFmpeg
8月18日更新 编译ffmpeg 依赖 yasm组件
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
brew install yasm
- 编译ffmpeg
cd FFmpeg
./configure -–enable-debug
./configure --disable-optimizations
--disable-asm
make -j8
- 创建Xcode新项目

这里选择Command Line Tool

4 . 引用FFmpeg


博主的破air 等了5mins左右
5 .添加linked 信息
首先添加Header Search Paths

接着添加Library Search Paths

6 .添加target

添加文件夹路径

配置ffmpeg_make运行信息

配置executable

最后结果是这样的

7 .大功告成
现在到ffmpeg.c main函数打个断点试试

网友评论