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

Delay on Streaming #22

Closed kasirajansfm closed 2 months ago

kasirajansfm commented 2 months ago

am facing 15sec delay when running from IIS, is there any way to reduce the delay?

josephnhtam commented 2 months ago

Are you using HLS? If you are using OBS Studio to publish the stream, it would be better if you set the keyframe interval to 1s. Also, the player-side buffer significantly affects the delay. For your information, I have been able to achieve around a 4-second delay with OBS Studio and HLS.js, where the stream was served via Azure Blob Storage.

kasirajansfm commented 2 months ago

@josephnhtam yes am using HLS, grabbing desktop screen using ffmpeg and viewing on VLC. After made changes on ffmpeg command now its working with minimal delay. Thanks.