1.下载编译ffmpeg
1.打开终端输入以下命令行(查询brew信息):
brew
2.若未安装需要安装homebrew,需要终端输入命令:
ruby -e “$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install](https://raw.githubusercontent.com/Homebrew/install/master/install))”
3.安装好brew后利用它暗转ffmpeg
brew install ffmpeg
4.上面的命令可能会出现权限问题
Error: Cannot write to /usr/local/Cellar 或者
Error: Permission denied - /Library/Caches/Homebrew/Formula/ffmpeg.brewing
可以运行命令:
sudo chown -R $USER /usr/local 然后运行
sudo chown -R $USER /Library/Caches/Homebrew/
5.安装成功后再执行安装ffmpeg