Download FFmpeghttps://ffmpeg.org/download.html#get-sources
上面下载ffmpeg-snapshot.tar.bz2,解压放在要放的地方
然后安装brew
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
安装brew成功后,再装下面的5个
brew install x264
brew install x265
brew install speex
brew install pkg-config
brew install sdl2
然后
./configure --prefix=/Users/mohuiming/ffmpeg --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable-libx26