I want to create my own RTMP/HLS server

saharcohen27

New Member
Hello! ( I'm new here :) )
I am working on a project and I want to create RTMP server myself (I know I can use nginx).
The thing is I succeeded to give OBS the correct address and port to connect and it's actually sending something. (I think RTMP packet because it starts with 0x03 and looks similar to the RTMP packet by the protocol).
So my questions are: OBS really does sends RTMP packets? Is my idea of creating RTMP server myself even possible?
And the most important question - What to do next? I think obs wants me to create a kind of handshake, so what should I send back to establish the connection and actually receiving the stream packets?
If you can send me some guide, even about the HLS protocol and the process of creating a live stream on the web, it will help me a lot!
(Examples will be great!)
Thanks.
 

saharcohen27

New Member
I strongly recommend you use an existing server with nginx-rtmp, implementing librtmp or similar. Building your own RTMP server is not a trivial task as the protocol is outdated and messy by today's standards. Wikipedia has a good general overview if you're still interested: https://en.wikipedia.org/wiki/Real-Time_Messaging_Protocol#Protocol
Thank you!
I actually succeeded to start building the RTMP server with python. I made the handshake with OBS and now I'm following this blog. Trying to make all the "RTMP STREAMING MESSAGES FLOW", is that a good tutorial?
Thanks.
 
Top