mod_av 一键编译

freeswitch1.10.10:mod_av编译指南(X264&FFmpeg),


前言

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

总结

希望此文可以帮助到大家!遇到啥问题,可评论留言。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值