FFmpeg Centos 源码安装

FFmpeg 提供了静态编译的版本,下载解压就可使用,简单方便,下载网址:https://www.johnvansickle.com/ffmpeg/ 。在服务器下载后使用后,提示内核版本过低,无奈只能使用源码安装的方式了。

主要是使用官网提供的安装指导:https://trac.ffmpeg.org/wiki/CompilationGuide/Centos 进行安装。

期间执行autoreconf -fiv时报了两个错误:

  1. Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac'
    在configure.ac最后加一行AM_PROG_CC_C_O即可。

  2. Libtool library used but `LIBTOOL' is undefined
    The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
    在configure.ac最后加一行AC_PROG_LIBTOOL即可。