安装 FFmpeg 能够经过源码安装的方式进行安装。为了方便,这里使用 brew 的方式进行安装。
brew install ffmpeg
这里建立的是 Command Line Tool 项目。在下一步中的开发语言我选择了 C++
以下图所示,找到 Header Search Path 和 Library Search Path
若是你是用 brew
安装的话,能够经过 brew info ffmpeg
命令,能够查看FFmpeg的安装位置。html
brew info ffmpeg # 输出的路径是:/usr/local/Cellar/ffmpeg/4.1.3_1
输入:/usr/local/Cellar/ffmpeg/4.1.3_1/include
输入:/usr/local/Cellar/ffmpeg/4.1.3_1/lib
Command + Shift + G
赶快胜利,接下来,就是两我的的时间了...