首先在官网上下载最新的FFmpeg压缩包:
http://ffmpeg.org/download.html
压缩包的格式是.tar.bz2,解压压缩文件,以ffmpeg-3.3.4为例,这里需要用到的命令是:
$ tar -jxvf ffmpeg-3.3.4.tar.bz2
然后到解压下的文件夹下查看INSTALL.md
$ cat INSTALL.md
#Installing FFmpeg:
1. Type `./configure` to create the configuration. A list of configure
options is printed by running `configure --help`.
`configure` can be launched from a directory different from the FFmpeg
sources to build the objects out of tree. To do this, use an absolute
path when launching `configure`, e.g. `/ffmpegdir/ffmpeg/configure`.
2. Then type `make` to build FFmpeg. GNU Make 3.81 or later is required.
3. Type `make install` to install all binar