1. 下载代码:git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
2. cd ffmpeg,然后 ./configure,报错:
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.
3. 错误原因为汇编工具没有安装,安装yasm即可:
brew install yasm
4. 然后sudo make ; sudo make install