首先下载tar.gz包 ,最新版本地址是:http://www.ffmpeg.org/download.html
然后按照下面步骤安装ffmpeg4.0.2
安装 yasm 和 libx264
$ apt-get install yasm$ apt-get install libx264-dev
$ apt-get install libfaac-dev
$ apt-get install libmp3lame-dev
$ apt-get install libtheora-dev
$ apt-get install libvorbis-dev
$ apt-get install libxvidcore-dev
$ apt-get install libxext-dev
$ apt-get install libxfixes-dev
$ cd ffmpeg-4.0.2
$ sudo -s
$ source configure
$ make
$ make install