Litao OK Blog

A little blog for my life.

在Mac OS X上用Homebrew安装ffmpeg和相关编解码库

首先保证已经安装了brew

Homebrew

或者直接执行:

1
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

查看ffmpeg安装参数

1
brew info ffmpeg

推荐安装参数

1
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265

升级

1
brew update && brew upgrade ffmpeg