1. ffmpeg
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATEacross Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations.
2. Mac下安裝ffmpeg
Mac默認是安裝有ffmpeg的, 可以用brew info ffmpeg指令進行查看.
運行以上指令后可看到ffmpeg的參數列表:

可以看到默認是沒有安裝rtmpdump的(后邊有個小紅叉).
注意到有個參數:
--with-rtmpdump
Enable RTMP protocol
如果要打算安裝支持rtmp協議的ffmpeg, 可運行如下指令:
sudo brew reinstall ffmpeg --with-rtmpdump