josephnhtam / live-streaming-server-net

A .NET implementation of RTMP live streaming server, supporting HTTP-FLV, WebSocket-FLV, HLS, Kubernetes, cloud storage services integration and more.
https://josephnhtam.github.io/live-streaming-server-net/
MIT License
74 stars 11 forks source link

Streaming from own code #43

Open caveofjulian opened 6 days ago

caveofjulian commented 6 days ago

First of all, this is a really dope project. Thank you for your contribution!

I have a couple of questions, maybe I don't understand well and I think it is still a bit early for proper documentation (which btw is not a jab). Some of the code samples go over my head, perhaps also because I don't know all terminology. I want to have a live streaming server, which this seems to fully offer with a million options - so that is fantastic. My usecase is for streaming drone footage (multiple drones at once) to the server and a frontend where users can see the streams. However, I don't understand how to stream to the server from e.g. another project rather than OBS or something like that. Do you by any chance have a sample for this? Also would my usecase, altho I appreciate the auth and all, be maybe too simplistic and would this add a lot of overhead to the streaming? Or would I even be better off simply using .NET Web API endpoints or simplistic TCP/UDP server splitting the streams up in chunks myself?

josephnhtam commented 6 days ago

Hi @caveofjulian

I am not sure if I understand the question correctly. This library facilitates the creation of a media server with RTMP ingestion capability. While RTMP is a widely-used transmission protocol employed by many social media platforms such as Twitch.tv, Facebook, and YouTube.

My knowledge of drones is quite limited. If your drone can stream the camera feed to the mentioned social media platforms via RTMP, it should also be capable of streaming to the live streaming server created with this library as well. So you may firstly check if your drone directly supports RTMP streaming.

If you are just going to stream a video in a container file (like mp4) to an RTMP server, you can use FFmpeg to do this. You can either start a FFmpeg process via code or use a FFmpeg wrapper to do this programmatically.

caveofjulian commented 5 days ago

Hi, thanks for your reply. I'm making my own drones so this is no problem and RTMP is widely used in drones.

Thanks for your reply, I think it is worth actually delving into the project as it looks very promising. Thank you!