E
E
Eugene Obrezkov2014-11-08 19:32:06
Server equipment
Eugene Obrezkov, 2014-11-08 19:32:06

How to develop a stream server?

Hi all.
The question arose of creating our own stream server for audio/video broadcasting.
What technologies are best used for this? It is the development of one's own that is of interest, and not the use of ready-made services, which ultimately lead to a vendor lock.
PS NodeJS is the best fit for this role. it has stream support at the system level. The server provides requests and responses as Readable Stream and Writable Stream respectively. Who can advise on this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-11-08
Protko @Fesor

because it has stream support at the system level

what flows are you talking about? I/O streams? The situation is the same in PHP/Ruby/Python/Go/C#/Java. But node.js is single-threaded and there can be problems with debugging such wonderful things as memory leaks, etc.
There are not enough details to answer your question. To whom and what are you going to stream? Realtime? One thread per user or several, and so on. All sorts of fancy protocols like RTP?

V
Vasily, 2014-11-09
@Applez

In general, for video streaming, there have been special protocols for 10-15 years, and you are asking some nonsense from the wrong opera.
In your case, take standard protocols and implement what you know best, although in high-level languages, it will be hard to work with bits. You can also try to reinvent your wheel based on existing protocols, but I think you should not bother with this.
Plus, the standard is the standard, you can support many other devices and programs with your server.
Here are links for reference: TRP , Streaming Media
Yes, by the way, there are ready-made libs with protocol implementations, google it! :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question