[英]How to stream on demand video with load balancing
I am triyng to figure out how to load balance my video server. 我很想知道如何对我的视频服务器进行负载均衡。 The real world scenario is;
现实世界的情景是;
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).
我有一个存储服务器,存储我的所有视频文件,一个服务器负载平衡我的http请求(就像一个CDN服务)。 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.
客户端请求视频文件 - >最近负载均衡服务器应答请求(比方说LBS)LBS - >存储(找到视频并开始向客户端发送N kbyte,所以它开始播放) - > LBS缓存其余的文件存储在自己的存储上,并在下一个请求中直接从其缓存中提供,而不是从存储中提供。
The problem with this setup is, i want to serve videos through RTMP, but on the balancing machine(its nginx web server), i couldnt serve the virtual files(like rtmp stream). 这个设置的问题是,我想通过RTMP提供视频,但在平衡机(它的nginx web服务器)上,我无法提供虚拟文件(如rtmp流)。
For the short; 简而言之; i am looking for an rtmp server implementation that acts like an nginx web server.
我正在寻找一个像nginx Web服务器一样的rtmp服务器实现。 Any ideas, advices will be great.
任何想法,建议都会很棒。
Note: currently i am trying to implement crtmpserver 注意:目前我正在尝试实现crtmpserver
You can use nginx_rtmp module ... It's support stream flv files as rtmp streams (and transcoding rtmp streams, and repackage rtmp to hls too) 你可以使用nginx_rtmp模块...它支持流flv文件作为rtmp流(并转码rtmp流,并重新打包rtmp到hls)
See doc about: https://github.com/arut/nginx-rtmp-module/ 请参阅以下文档: https : //github.com/arut/nginx-rtmp-module/
j Ĵ
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.