Mac下安装支持rtmp协议的ffmpeg

1. ffmpeg

http://www.ffmpeg.org/

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的参数列表:

Mac下安装支持rtmp协议的ffmpeg_第1张图片
brew info ffmpeg运行结果

可以看到默认是没有安装rtmpdump的(后边有个小红叉).
注意到有个参数:

--with-rtmpdump
Enable RTMP protocol

如果要打算安装支持rtmp协议的ffmpeg, 可运行如下指令:
sudo brew reinstall ffmpeg --with-rtmpdump

你可能感兴趣的:(Mac下安装支持rtmp协议的ffmpeg)