- Step 1:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Step 2:
brew install x264
- Step 3:
brew link x264
然后编译ffmpeg的时候 就可以加入以下语句了:
--enable-gpl --enable-libx264
References:
https://trac.ffmpeg.org/wiki/CompilationGuide/macOS
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
网友评论