最近成功完成。为了方便需要的朋友,在此详细记录。
- 安装nv-codec-headers
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers
sudo make
sudo make install
- 安装NVIDIA驱动和CUDA
https://quantum6.blog.csdn.net/article/details/106931358
注意最后的更新环境变量。
- 安装NVIDIA CODEC
https://blog.csdn.net/quantum7/article/details/106932663
- 编译x264
nasm-2.14.02
https://blog.csdn.net/quantum7/article/details/104086464
x264-snapshot-20180101-2245-stable
https://blog.csdn.net/quantum7/article/details/104087603
- 编译ffmpeg
使用libav是否可以?应该也可以。
https://blog.csdn.net/quantum7/article/details/106968971
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
- 安装依赖库
libtiff-devel
libjpeg-devel
libpng-devel
openssl-devel
libcurl-devel
sqlite-devel
speex-devel
ldns-devel
freetype-devel
libuuid-devel
lua-devel
readline-devel
postgresql-devel
libsndfile-devel
libvpx-devel
- 禁用两个功能
不影响功能,简化编译过程。
modules.conf
codecs/mod_opus
applications/mod_signalwire
- 复制文件
这一步不是必须。
ffmpeg-4.2.3/libavcodec/nv* 复制到 freeswitch-1.10.3/src/mod/applications/mod_av
- 编译freeswitch
# ./bootstrap.sh
sudo ldconfig
make clean
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:${PKG_CONFIG_PATH}
./configure \
--disable-werror \
--disable-core-libedit-support \
--disable-signalwire
make
sudo make all install cd-sounds-install cd-moh-install