一、安装ffmpeg
分为两种安装方式:
1. 命令行安装
brew install ffmpeg
2. 下载压缩包安装
去 http://evermeet.cx/ffmpeg/ 下载7z压缩包,解压缩后,将ffmpeg文件拷贝到一个地方,然后在bash_profile里面配置好环境变量
二、安装ffplay
分为两种安装方式:
1. 命令行安装
执行下面的命令就可以进行安装操作
brew install ffmpeg --with-ffplay
- 注:目前使用此安装方式安装后,执行ffplay会出现command not found的问题,可能是因为SDL的配置问题导致的。
2. 下载压缩包安装
去 http://evermeet.cx/ffmpeg/ 下载7z压缩包,解压缩后,将ffplay文件拷贝到一个地方,然后在bash_profile里面配置好环境变量
三、附言
在上面我们接触到了命令行安装ffmpeg的方法,除了安装选项 --with-ffplay外还有更多的选项如下:
1–with-fdk-aac (Enable the Fraunhofer FDK AAC library) 2–with-ffplay (Enable FFplay media player) 3–with-freetype (Build with freetype support) 4–with-frei0r (Build with frei0r support) 5–with-libass (Enable ASS/SSA subtitle format) 6–with-libcaca (Build with libcaca support) 7–with-libvo-aacenc (Enable VisualOn AAC encoder) 8–with-libvorbis (Build with libvorbis support) 9–with-libvpx (Build with libvpx support) 10–with-opencore-amr (Build with opencore-amr support) 11–with-openjpeg (Enable JPEG 2000 image format) 12–with-openssl (Enable SSL support) 13–with-opus (Build with opus support) 14–with-rtmpdump (Enable RTMP protocol) 15–with-schroedinger (Enable Dirac video format) 16–with-speex (Build with speex support) 17–with-theora (Build with theora support) 18–with-tools (Enable additional FFmpeg tools) 19–without-faac (Build without faac support) 20–without-lame (Disable MP3 encoder) 21–without-x264 (Disable H.264 encoder) 22–without-xvid (Disable Xvid MPEG-4 video encoder) 23–devel (install development version 2.1.1) 24–HEAD (install HEAD version)