最近在centos7下面编译了gstreamer 16.2版本的源码支持x264、x265的编解码,废话不多说直接来编译:
yum -y install openssl-devel libffi-devel libmount-devel libXext-devel libjpeg-turbo-devel pixman-devel zlib-devel bzip2-devel lz4-devel cmake cmake-gui git-hg
如果cmake版本低就下载源码自己编译一下
cmake编译:
./configure && make -j8 && make install
yasm源码编译
./configure --prefix=/usr/local/gstreamer/depend
make -j8
make install
export PATH=/usr/local/gstreamer/depend/bin:$PATH
x264源码编译
./configure --prefix=/usr/local/gstreamer/depend --disable-asm --enable-shared
make -j8
make install
export PKG_CONFIG_PATH=/usr/local/gstreamer/depend/lib/pkgconfig:$PKG_CON