算了, 下面这种方式不要用了. 最快的方式就是从github上下载源码, make. makeinstall一下, 最多半个小时. 下面这种方法各种代理网络错误, 还是放弃吧
第一步
执行brew install ffmpeg
这个时候可能会一直卡在Updating中, 我们将其替换为中科大源, 步骤如下
参考 https://my.oschina.net/u/4395911/blog/3305576
// 替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
// 替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
// 替换homebrew-cask.git:
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
第二步
在安装过程中, 很可能会遇到下面错误
Error: Failed to download resource "texi2html"
我们这么处理
参考文章
可能是因为版本原因, 上面文章中的链接等都有错误
texi2html.rb文件在我电脑上的路径是