HEVC h265 libx265 编译

来自艺搜天下
跳到导航 跳到搜索

http://www.videolan.org/developers/x265.html

https://bitbucket.org/multicoreware/x265

源代码获取地址:

hg clone http://hg.videolan.org/x265  
hg clone https://bitbucket.org/multicoreware/x265

注意编译前需要安装: yasm 1.3 and nasm 2.13 or later

CMake 2.8.8 or later

hg(mercurial)

ffmpeg集成时需要:--enable-gpl --enable-libx265

Linux

先编译出linux版本,熟悉其生成的库和pc文件,还有头文件!

cd x265/build/linux
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source   #或 ./make-Makefiles.bash
make && make install

arm

cd x265/build/arm-linux
./make-Makefiles.bash  # 内容是 cmake -G "Unix Makefiles" ../../source && ccmake ../../source
make

Android

mv source/ jni

放上写好的Android.mk,Application.mk和x265_config.h(可以随便拷贝一份linux的)

ndk-build

参考

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

https://bitbucket.org/multicoreware/x265/src/tip/build/README.txt

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

http://trac.ffmpeg.org/wiki/CompilationGuide/Centos

http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

https://blog.csdn.net/leixiaohua1020/article/details/42069383

http://blog.csdn.net/momo0853/article/details/52802773

https://blog.csdn.net/wanglx_/article/details/50786307