文档库

最新最全的文档下载
当前位置:文档库 > ffmpeg 编译安装系列问题终级手札

ffmpeg 编译安装系列问题终级手札

环境信息:

[root@centos1 ~]# cat /etc/redhat-release

CentOS release 6.10 (Final)

[root@centos1 ~]# uname -a

Linux centos1 2.6.32-754.3.5.el6.x86_64 #1 SMP Tue Aug 14 20:46:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

下载源码:

wget https://http://www.wendangku.net/doc/f08f9ba5370cba1aa8114431b90d6c85ed3a883e.html/releases/ffmpeg-4.0.2.tar.bz2

编译:

./configure --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth

问题解决:

提示信息:

ERROR: gnutls not found using pkg-config

确认存在:/usr/local/lib64/pkgconfig

确认存在:/usr/lib64/pkgconfig

确认存在:/usr/lib/pkgconfig

PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig

GnuTLS 3.5.18

下载:https://http://www.wendangku.net/doc/f08f9ba5370cba1aa8114431b90d6c85ed3a883e.html/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.19.tar.xz

创建或解压tar.xz文件的方法

xz -d gnutls-3.5.19.tar.xz

tar xf gnutls-3.5.19.tar

cd gnutls-3.5.19

./configure --with-included-libtasn1 --with-included-unistring --without-p11-kit

make && make install

export

PKG_CONFIG_PATH=/usr/local/freetype/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/lib64/pk gconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/root/anaconda3/lib/pkgconfig

提示信息:

ERROR: aom >= 0.1.0 not found using pkg-config