High latency sound with Icecast and Darkice

I successfully installed icecast and darkice on my ubuntu machine and was able to broadcast live on my computer. but to my disappointment, it has a delay of 15 seconds to 20 seconds. This is a very low performance. I donโ€™t think this is due to my LAN connection, because even when I tried to listen on the same ubuntu machine, there was still a delay!

I tried setting icecast to no packet size, which means that there will be no buffering, it helped me reduce the delay to 6 seconds to 8 seconds. Therefore, please, if you have any suggestions or very good configuration values, this will be very useful for me.

PS format that I drown mp3. someone suggested I use an opus codec, but I don't think icecast or darkice supports it.

+6
source share
2 answers

This is not a bad performance ... it is intentional, so clients do not experience re-buffering after the start of playback. Internet radio servers are not designed for low latency.

There are many sources of delay:

  • Capture Buffer (<500ms)
  • Encoding buffer (~ 250 ms-1 depending on the codec)
  • Transmission and transmission buffer from Encoder-to-Server (<10ms)
  • Server buffer (the one you disabled, often set to 1 MB, which can be long depending on the transfer rate)
  • Network transmission and buffer between clients and server (usually 10 ms-1, longer for mobile devices)
  • Client buffer (widely modifiable, but 2s typical)
  • Client Playback Buffer (<500ms)

The largest of them, as you can see, is the server buffer. You have eliminated this, and thatโ€™s all you can do. If you want something with a lower latency, you need a different technology.

+6
source

Try using Icecast-kh https://karlheyes.imtqy.com/

In my experience, it gives less latency, I'm not sure why, I would be glad if someone explains this, maybe it has a smaller server buffer.

+1
source

Source: https://habr.com/ru/post/947403/


All Articles