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