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

相關文章
相關標籤/搜索