加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > Nginx > 正文

如何通过负载平衡流式传输点播视频

发布时间:2020-12-13 20:57:24 所属栏目:Nginx 来源:网络整理
导读:我想弄清楚如何对视频服务器进行负载平衡. 现实世界的场景是; i have a storage server which stores all my video files,an several servers to load balance my http request(works like a CDN service). Client requests a video file - Nearest Load ba

我想弄清楚如何对视频服务器进行负载平衡.
现实世界的场景是;

i have a storage server which stores all my video files,an several
servers to load balance my http request(works like a CDN service).
Client requests a video file -> Nearest Load balancing server
answers request (lets say it LBS) LBS -> Storage (find the video and
start sending first N kbyte to client,so it starts to play) -> LBS caches the rest of the
file on its own storage,and on the next request,serves it directly
from its cache,not from storage.

这种设置的问题是,我想通过RTMP提供视频,但是在平衡机(其nginx Web服务器)上,我无法提供虚拟文件(如rtmp流).

简而言之;我正在寻找一种类似于nginx Web服务器的rtmp服务器实现.任何想法,建议都会很棒.

注意:当前我正在尝试实现crtmpserver

最佳答案
您可以使用nginx_rtmp模块…它支持流flv文件作为rtmp流(以及对rtmp流进行转码,并且也将rtmp重新打包为hls)

参见有关文档:https://github.com/arut/nginx-rtmp-module/

?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读