• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

LinuxCentOS安装ZLMediaKit流媒体服务

linux 搞代码 3年前 (2022-03-03) 15次浏览 已收录 0个评论

一、centos linux下装置ffmpeg

1、下载解压

wget http://www.ffmpeg.org/releases/ffmpeg-3.1.tar.gz
tar -zxvf ffmpeg-3.1.tar.gz

2、 进入解压后目录,输出如下命令/usr/local/ffmpeg为本人指定的装置目录

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

3、配置变量
vi /etc/profile
在最初PATH增加环境变量:
export PATH=$PATH:/usr/local/ffmpeg/bin
保留退出
查看是否失效
source /ect/profile 或者 . /etc/profile 设置失效
4、查看版本
ffmpeg -version 查看版本

留神:

若装置过程中呈现以下谬误:

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 irc.freenode.net.
Include the log file “config.log” produced by configure as this will help
solve the problem.

须要装置 yasm

wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make && make install
sudo yum -y install gcc
sudo yum -y install gcc-c++
gcc -v
sudo apt-get install cmake
cmake -version
或者
wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
tar -zxvf cmake-3.7.2.tar.gz
cd cmake-3.7.2/
./bootstrap       //此步可能遇到问题,见下文
gmake             //此步须要很长时间
gmake install
yum install openssl-devel
yum install SDL-devel
#国内用户举荐从同步镜像网站gitee下载 
git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit
cd ZLMediaKit
#千万不要遗记执行这句命令
git submodule update --init
cd ZLMediaKit
mkdir build
cd build
#macOS下可能须要这样指定openss门路:cmake .. -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2j/
cmake ..
make -j4

参考:
https://www.cnblogs.com/zt199…


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:LinuxCentOS安装ZLMediaKit流媒体服务

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址