您现在的位置是:网站首页>博客详情博客详情
原使用nginx实现在线直播功能
凡繁烦2020-08-21 10:57【其他】3185人已围观
简介基于nginx+rtmp实现直播推流
安装nginx+rtmp实现直播推流
1.yum安装openssl
yum -y install openssl openssl-devel
2.yum安装gcc环境
yum -y install gcc glibc glibc-devel make nasm pkgconfig lib-devel openssl-devel expat-devel gettext-devel libtool mhash.x86_64 perl-Digest-SHA1.x86_64
3.下载nginx-rtmp-module
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
unzip -o master.zip
4.下载安装nginx
cd /usr/local
wget http://nginx.org/download/nginx-1.10.3.tar.gz
tar -zxvf nginx-1.10.3.tar.gz
cd nginx-1.10.3
./configure --prefix=/usr/local/nginx --add-module=../nginx-rtmp-module-master --with-http_ssl_module
make && make install
5.启动nginx
/usr/local/nginx/sbin/nginx
6.配置rtmp
rtmp {
server {
listen 1935;
application rtmplive {
live on;
record off;
}
}
}
7.测试直播推流和拉流
使用objs工具测试推流
使用CVL工具拉流
很赞哦! (0)
相关文章
文章评论(共1条)
{{item.fromUserName}} :
{{item.createTime}}
{{item.commentArea}} |({{item.commentIp}})
删除
回复
|
赞 ({{item.thumbsCount||0}})
{{it.fromUserName}} : 回复@{{it.toUserName}} : {{it.content}}
{{it.createTime}}{{it.commentArea}} | ({{it.commentIp}})
删除
回复
|
赞 ({{it.thumbsCount||0}})
上一页
1
...
{{num}}
...
下一页
{{totalPage}}
跳转到:
GO
点击排行
本栏推荐
标签云
站点信息
- 建站时间:2020-03-28
- 开发语言:JAVA
- 文章统计:13篇
- 文章评论:6条
- 统计数据:百度统计
- 微博:扫描二维码,关注

打赏本站
- 如果你觉得本站很棒,可以通过扫码支付打赏哦!
- 微信扫码:你说多少就多少~
- 支付宝:非常感谢您的慷慨支持~