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默認(rèn)是安裝有ffmpeg的, 可以用brew info ffmpeg
指令進(jìn)行查看.
運(yùn)行以上指令后可看到ffmpeg的參數(shù)列表:
可以看到默認(rèn)是沒有安裝rtmpdump的(后邊有個小紅叉).
注意到有個參數(shù):
--with-rtmpdump
Enable RTMP protocol
如果要打算安裝支持rtmp協(xié)議的ffmpeg, 可運(yùn)行如下指令:
sudo brew reinstall ffmpeg --with-rtmpdump