如何编写简单的自适应视频流服务器?

发布于 2025-02-06 13:57:54 字数 161 浏览 1 评论 0 原文

我需要编写一个非常简单的自适应视频流服务器。但是我不知道从哪里开始。我找不到一个体面的教程。我需要的简单是当我的互联网速度下降时更改视频质量。

因此,基本上,我将在服务器目录中具有不同版本的视频,并根据用户连接在它们之间进行切换。我只想看到它在变化以及它的工作原理,仅此而已。你会为我建议什么?

I need to write a very simple adaptive video stream server. But I don't know where to start. I couldn't find a decent tutorial for this. Simply what I need is changing the video quality when my internet speed drops.

So basically I will have different versions of my video in my server directory, and switch between them based on user connection. I just want to see it changing and how it works, that's it. What would you suggest for me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欢烬 2025-02-13 13:57:54

您可以看到开源网络和Android播放器,并通过其ABR算法为您提供一些想法,甚至可以重复使用他们和您的许可是否允许。

本文将为您提供一个很好的起点,并指dash.js播放器: https://www.linkedin.com/pulse/pulse/tldr-abr-rr-algorithms-mpeg-dash-vijaya-vijaya-sagar-vinnakota/

添加规则:

There are open source web and android players you can look and and go through their ABR algorithms to give you some idea, or to even reuse if their and your licensing allows.

This article will give you a good starting point and refers to DASH.JS player: https://www.linkedin.com/pulse/tldr-abr-algorithms-mpeg-dash-vijaya-sagar-vinnakota/

You can see a demo here with sample code to add rules: https://reference.dashif.org/dash.js/latest/samples/abr/abr.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文