Installing zlmedia kit streaming service on Linux / CentOS


1、 Installing ffmpeg in CentOS Linux

1. Download and unzip

tar -zxvf ffmpeg-3.1.tar.gz

2. Enter the directory after decompression and enter the following command / usr / local / ffmpeg as the installation directory specified by yourself

cd ffmpeg-3.1
./configure --prefix=/usr/local/ffmpeg
make && make install

3. Configuration variables
vi /etc/profile
Add an environment variable to the last path:
export PATH=$PATH:/usr/local/ffmpeg/bin
Save exit
Check if it is effective
source /ect/profileperhaps. /etc/profileSettings take effect
4. View version
ffmpeg -version View version

be careful:

If the following errors occur during installation:

yasm/nasm not found or too old. Use –disable-yasm for a crippled build.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on
Include the log file “config.log” produced by configure as this will help
solve the problem.

Yasm needs to be installed

tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
make && make install
sudo yum -y install gcc
sudo yum -y install gcc-c++
gcc -v
sudo apt-get install cmake
cmake -version
tar -zxvf cmake-3.7.2.tar.gz
cd cmake-3.7.2/
. / bootstrap // you may encounter problems in this step, see below
Gmake // this step takes a long time
gmake install
yum install openssl-devel
yum install SDL-devel
#Domestic users are recommended to download from gitee 
git clone --depth 1
cd ZLMediaKit
#Don't forget to carry out this command
git submodule update --init
cd ZLMediaKit
mkdir build
cd build
#Under Mac OS, you may need to specify the openss path as follows: cmake.. - dopenssl_ ROOT_ DIR=/usr/local/Cellar/openssl/1.0.2j/
cmake ..
make -j4

reference resources:………