X265编译和安装过程

参考x265 wiki:html

https://bitbucket.org/multicoreware/x265/wiki/Homelinux

 

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:bash

yasm已经在本机安装过了。ide

 

编译安装cmake

首先方向cmake官网,下载最新版本。post

https://cmake.org/download/ui

 

tar -xzf  cmake-3.7.0-rc1.tar.gzspa

make && make install.net

 

编译和安装x265

下载连接:orm

http://ftp.videolan.org/pub/videolan/x265/server

选择最新版本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

相关文章
相关标签/搜索