参考x265 wiki:
https://bitbucket.org/multicoreware/x265/wiki/Home
Building x265
To compile x265 you must first install Mercurial (or TortoiseHg on Windows) and CMake 2.8.8 or later. To ensure your build of x265 is capable of full performance, install YASM 1.2.0 or greater to compile assembly primitives. Then follow these easy steps:
yasm已经在本机安装过了。
编译安装cmake
首先方向cmake官网,下载最新版本。
tar -xzf cmake-3.7.0-rc1.tar.gz
make && make install
编译和安装x265
下载链接:
http://ftp.videolan.org/pub/videolan/x265/
选择最新版本x265_2.1.tar.gz
tar -xzf x265_2.1.tar.gz
$ cd x265/build/linux
$ ./make-Makefiles.bash
$ make && make install
使ffmpeg在configure时包括libx265
./configure --enable-gpl --enable-nonfree --disable-shared --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-libx264 --enable-libx265 --enable-libmp3lame --enable-libfaac --enable-libfdk-aac --enable-pthreads --extra-ldflags=-static --disable-ffserver --enable-ffplay --enable-asm --enable-yasm --enable-optimizations --pkg-config-flags=--static --extra-cflags=--static --extra-version=static --enable-libspeex --enable-librtmp