我需要编写一个非常简单的自适应视频流服务器。但是我不知道从哪里开始。我找不到一个体面的教程。我需要的简单是当我的互联网速度下降时更改视频质量。
因此,基本上,我将在服务器目录中具有不同版本的视频,并根据用户连接在它们之间进行切换。我只想看到它在变化以及它的工作原理,仅此而已。你会为我建议什么?
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?
发布评论
评论(1)
您可以看到开源网络和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