mod_av 一键编译
前言
2023-08-14 官方发布了freeswitch 1.10.10。mod_av支持已经支持ffmpeg5.1.3版本,以下编译步骤,供大家交流学习。
一、编译X264
# 安装nasm
wget -N -t 0 https://www.nasm.us/pub/nasm/releasebuilds/2.16/nasm-2.16.tar.gz
tar -xzvf nasm-2.16.tar.gz
cd nasm-2.16
./configure
make && make install
cd ..
wget -N -t 0 https://codeload.github.com/mirror/x264/zip/refs/heads/master -O x264-master.zip
unzip x264-master.zip
cd x264-master
./configure --enable-shared --enable-static --disable-opencl --prefix=/home/switch/freeswitch
make && make install
二、安装FFmpeg
wget -N -t 0 https://codeload.github.com/FFmpeg/FFmpeg/zip/refs/heads/release/5.1 -O FFmpeg-release-5.1.zip
unzip FFmpeg-release-5.1.zip
cd FFmpeg-release-5.1
export PKG_CONFIG_PATH=/home/switch/freeswitch/lib/pkgconfig
ldconfig
./configure --prefix=/home/switch/freeswitch --enable-pic --extra-libs="-ldl" --extra-cflags=-fPIC --extra-cxxflags=-fPIC --enable-shared --disable-static --enable-gpl --enable-nonfree --enable-libx264
make && make install
三、编译mod_av
cd freeswitch-1.10.10
./bootstrap.sh
rm -rf config.cache
export PKG_CONFIG_PATH=/home/switch/freeswitch/lib/pkgconfig
ldconfig
./configure -C --with-lib-subdir=/home/switch/freeswitch/lib --prefix=/home/switch/freeswitch --disable-fhs --enable-portable-binary --enable-sctp --with-gnu-ld --with-openssl --enable-zrtp --enable-core-odbc-support CFLAGS="-Wno-error"
cd src/mod/applications/mod_av
make && make install
总结
希望此文可以帮助到大家!遇到啥问题,可评论留言。
freeswitch1.10.10:mod_av编译指南(X264&FFmpeg),
834

被折叠的 条评论
为什么被折叠?



