K
K
kreg1g2019-02-18 00:27:09
Video broadcast
kreg1g, 2019-02-18 00:27:09

How to make your own streaming platform (technically)?

The question is quite multifaceted, and I do not expect to receive a detailed and detailed answer, but any information will be useful. Those. Roughly speaking, how (in what language) should the stream be received, then processed and distributed to the audience. And how powerful resources should the server have in terms of 1000 viewers, for example (in 720p quality is acceptable). I heard about the bittorrent approach ala tribler, but it's somehow quite difficult.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
grinat, 2019-02-18
@grinat

Here is a youtube clone in php (although the amount of shit code in it is incredible) https://github.com/DanielnetoDotCom/YouPHPTube streaming seems to be there too.
In fact, it doesn’t matter what language, in fact, ffmpeg will still deal with streaming directly: https://trac.ffmpeg.org/wiki/StreamingGuide https://trac.ffmpeg.org/wiki/ffserver or some paid solution https ://www.wowza.com/ And from scratch, doing all this is an arial, there is a dohreneleon of subtleties and formats.

Y
Yuri Udovichenko, 2019-02-18
@Aquary

If we are talking about a live stream, then you will need software from among the media servers. You have described an example of building such a system here, but other solutions can be used - the architecture will be similar. It does not describe the creation of a web interface, because. everything depends on your business logic, but the streaming part will be just that.

C
chupasaurus, 2019-02-18
@chupasaurus

  • A layer of media servers that receive streams from streamers and transcode
    Media servers can be any, even nginx with rtmp-module and HLS (extremely convenient for uploading). The load is measured experimentally and the number of such servers should be floating.
    The site is written according to taste and color, there will not be any special loads besides the chat.
    For 1000 viewers in 720p, you will need 3 servers with 1Gb / s interfaces to return.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question