gpt4 book ai didi

stream - 如何使用负载平衡流式传输点播视频

转载 作者:行者123 更新时间:2023-12-01 12:57:33 24 4
gpt4 key购买 nike

我正在尝试找出如何平衡我的视频服务器的负载。现实世界的场景是;

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 网络服务器)上,我无法提供虚拟文件(如 rtmp 流)。

简而言之;我正在寻找一个类似于 nginx 网络服务器的 rtmp 服务器实现。任何想法、建议都会很棒。

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

最佳答案

您可以使用 nginx_rtmp 模块...它支持流式 flv 文件作为 rtmp 流(以及转码 rtmp 流,并将 rtmp 重新打包为 hls)

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

j

关于stream - 如何使用负载平衡流式传输点播视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8897525/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com