datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.78k stars 438 forks source link

Possible bug in SRT implementation #536

Open Taiwan22 opened 1 year ago

Taiwan22 commented 1 year ago

Describe the bug Hello, First of all, thank you for your great streaming server. I think I found a bug in your SRT implementation. I was simulating packet drop on different protocols to find out how they behave, because we had some problems with stability over the RTMP protocol, so I decided to try SRT. And it's really better. But, here is the problem - when I go over 10% packet drop, the stream freezes (which is expected), but the source never gets disconnected. You are unable to reconnect to the source stream unless you manually restart broadcasting. Even when I disable packet drop simulation, the stream will never recover. So basically, the broadcaster thinks "everything is fine", and the receiver (OBS or restreamer itself) cannot connect to the stream.

There is nothing useful in logs. I've tried to enable SRT logging, but with no luck. Maybe you can show me how to enable debug logging on the SRT server. But in normal logs, there is nothing except for the receiver trying to reconnect.

To Reproduce

  1. Get clumsy 0.2
  2. Start streaming from OBS - I recommend using a separate computer.
  3. Monitor the stream in another OBS
  4. Start the packet drop feature in Clumsy.

Expected behavior When the stream freezes, it should disconnect the source.

Screenshots obrazek

screenshot2

Additional context

ioppermann commented 1 year ago

Thanks for your detailed report. We try to reproduce it and might move the issue to datarhei/gosrt.

amakeee commented 1 year ago

Just updated to new Release: restreamer-v2.5.0 This problem still exist. Whenever connection quality decreases SRT stream freezes and never recover until i restart broadcasting manually. So it makes SRT absolutely useless for IRL streaming which is pretty sad.