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

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

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/

Ĵ

上一篇:虚拟机数据损坏无法正常启动修复问题


下一篇:【USRP】解决WARNING UDP