Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install some modules of FreeSwitch

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to install some modules of FreeSwitch. Many people may not know much about it. In order to let everyone know more, Xiaobian summarized the following contents for everyone. I hope everyone can gain something according to this article.

FreeSwitch video support, requires special installation some dependencies and installation order issues

Here is a list of the code to install libyuv libvpx opus mod_av and other modules for everyone to use

Environment:

CentOS 6.x 64

FreeSwitch 1.6.20

URL=file.qzlink.com

#bugfix: step1 libyuv

cd /usr/local/src/freeswitch/libs

rm -rf libyuv

wget http://$URL/freeswitch/libyuv.zip

unzip libyuv.zip

cd libyuv

make -f linux.mk CXXFLAGS="-fPIC -O2 -fomit-frame-pointer -Iinclude/"

make install

yes|cp /usr/lib/pkgconfig/libyuv.pc /usr/lib64/pkgconfig/

yes|cp /usr/lib/libyuv.so /usr/lib64/

#bugfix :step2 libvpx

cd /usr/local/src/freeswitch/libs

rm -rf libvpx

wget http://$URL/freeswitch/libvpx.zip

unzip libvpx.zip

cd libvpx

./ configure --enable-pic --disable-static --enable-shared

make

make install

yes|cp /usr/local/lib/pkgconfig/vpx.pc /usr/lib64/pkgconfig/

#bugfix :step3 opus

cd /usr/local/src/freeswitch/libs

rm -rf opus

wget http://$URL/freeswitch/opus.zip

unzip opus.zip

cd opus

./ autogen.sh

./ configure

make

make install

yes|cp /usr/local/lib/pkgconfig/opus.pc /usr/lib64/pkgconfig

#bugfix step4 libpng

cd /usr/local/src/freeswitch/libs

rm -rf libpng

wget http://$URL/freeswitch/libpng.zip

unzip libpng.zip

cd libpng

./ configure

make

make install

yes|cp /usr/local/lib/pkgconfig/libpng* /usr/lib64/pkgconfig/

#bugfix step5 mod_sndfile

cd /usr/local/src/freeswitch/libs

rm -rf libsndfile

wget http://$URL/freeswitch/libsndfile-1.0.27.tar.gz

tar zxvf libsndfile-1.0.27.tar.gz

cd libsndfile-1.0.27

./ configure

make

make install

yes|cp /usr/local/lib/pkgconfig/sndfile.pc /usr/lib64/pkgconfig

cd ..

#step 6 install x264 (mod_av needed)

rm -rf zxvf libav-11.8.tar.gz

wget http://$URL/highswitch_v2/x264-snapshot-20170226-2245-stable.tar.bz2

tar -jxvf x264-snapshot-20170226-2245-stable.tar.bz2

rm -rf x264-snapshot-20170226-2245-stable.tar.bz2

cd x264-snapshot-20170226-2245-stable

./ configure --enable-shared --enable-static --disable-opencl

make

make install

yes|cp /usr/local/lib/pkgconfig/x2* /usr/lib64/pkgconfig

cd ..

#Otherwise when compiling mod_av prompt x264 not found

#Then put the generated.a. So file to get the system/usr/lib64 directory

yes|p /usr/local/lib/libx* /usr/lib64/

#step 7 mod_av

cd ..

rm -rf zxvf libav-11.8.tar.gz

wget http://$URL/highswitch_v2/libav-11.8.tar.gz

tar zxvf libav-11.8.tar.gz

rm -rf libav-11.8.tar.gz

cd libav-11.8

./ configure --enable-shared --enable-libx264 --enable-gpl --extra-cflags=-fPIC

#If there is no parameter--extra-cflags=-fPIC, you can modify config.mak to add the-fPIC parameter to CPPFLAGS

make

make install

yes|cp /usr/local/lib/pkgconfig/*.pc /usr/lib64/pkgconfig/

yes|cp -f /usr/local/lib/* /usr/lib64/

cd ..

# live 555

rm -rf live.2017.01.26.tar.gz

wget http://$URL/highswitch_v2/live.2017.01.26.tar.gz

tar zxvf live.2017.01.26.tar.gz

rm -rf live.2017.01.26.tar.gz

cd live

./ genMakefiles linux-64bit

make

make install

# vlc

cd ..

rm -rf vlc-2.2.4.tar.xz

wget http://$URL/highswitch_v2/vlc-2.2.4.tar.xz

tar xvf vlc-2.2.4.tar.xz

rm -rf vlc-2.2.4.tar.xz

cd vlc-2.2.4

sed -i 's#LIVE555_PREFIX-"/usr"#LIVE555_PREFIX-"/usr/local"#g' configure

./ configure --enable-run-as-root --enable-realrtsp --disable-mad --disable-a52 --disable-jpeg --enable-live555

make

make install

yes|cp /usr/local/lib/pkgconfig/libvlc.pc /usr/lib64/pkgconfig/

# mod_shout playmp3

cd ..

rm -rf libshout-2.2.2.tar.gz

wget http://$URL/highswitch_v2/libshout-2.2.2.tar.gz

tar zxvf libshout-2.2.2.tar.gz

rm -rf libshout-2.2.2.tar.gz

cd libshout-2.2.2

./ configure

make

make install

# mpg123

cd ..

rm -rf mpg123-1.23.8.tar.bz2

wget http://$URL/highswitch_v2/mpg123-1.23.8.tar.bz2

tar jxvf mpg123-1.23.8.tar.bz2

rm -rf mpg123-1.23.8.tar.bz2

cd mpg123-1.23.8

./ configure

make

make install

#lame

cd ..

rm -rf lame-3.98.4.tar.gz

wget http://$URL/highswitch_v2/lame-3.98.4.tar.gz

tar zxvf lame-3.98.4.tar.gz

rm -rf lame-3.98.4.tar.gz

cd lame-3.98.4

./ configure

make linux

make install

After reading the above, do you have any further understanding of how to install some modules of FreeSwitch? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report