A
A
aramtop2020-05-13 23:33:30
linux
aramtop, 2020-05-13 23:33:30

How to distribute video?

Good afternoon. I would like to find answers to my questions.
The fact is that I wanted to distribute video files, the total volume of which is about 120GB.

No more than 50 concurrent viewers are planned. The first question is that usually 1 user spends 7Mbps, therefore, 50 concurrent viewers are supposed to spend (7*50) 350Mbps, i.e. if the bandwidth of the server is 350mbit.s, then 60 users will no longer be able to withstand it? according to linear logic, this is true, but I immediately remembered that the player, for the same YouTube, loads the video "on the front", so I thought about the fact that despite the speed of 350 Mbps and the average cost of 7 Mbps by one user, simultaneous there can be more than 50 viewers. Ps, this is not a live broadcast, but a video distribution. I hope the text above was clear, so here's the question,

And another question, in a typical distribution of statistical video content, are such parameters as CPU, RAM important? Imagine that the server has a good disk (storage of the videos themselves) and 1 core, but at the same time it gives video content to 50 users (as in the example above), will everything work stably? Or even when streaming video resources are important? If yes, how approximately can you measure the required number of them? Thank you.
In addition, the second question .. not a question, but just .. ahem, in general, I won’t mind if you leave cheap VPS servers with good bandwidth and low price on familiar ones :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Drno, 2020-05-13
@Drno

Servers - take a look hatzner
On distribution - if it is not necessary to recode the video to give it to the client, then res costs only for processing the site's static content, and the load on the network.
In theory, 2 cores should be enough. In terms of operative - it seems to me that 1GB is enough in total. Again, depending on what you will distribute.
And whether the video is cached by the user or not, depends on your settings) what and how you will give

A
Andrey Barbolin, 2020-05-14
@dronmaxman

If you first convert the video to mp4, then there will be no encoding costs and 1 nuclear server with 1GB of RAM can handle it. Run on the WEB server page c on which there will be a js player that will play the file from the server without recoding. The load will be similar if you just start downloading 50 streams at 7Mbit/s.
Accordingly, take a VPS for a test, put iperf3 on it, and launch it.
On the client, you are trying to download 50 streams
iperf3 -c {SERVER_IP} -P50 -b 7m -R We
monitor the server and understand how it copes.

F
fitonio, 2020-10-31
@fitonio

CDN will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question