3 ms·
Hey, are you using Opus for audio? I remember the whole reason Opus was so cool, is that it was the first codec that combined low latency with high quality. Mos
by andai 5y ago
Hey, are you using Opus for audio? I remember the whole reason Opus was so cool, is that it was the first codec that combined low latency with high quality. Most voice chat software uses Opus nowadays so I'm surprised to hear existing solutions are so bad.
- weepy 5y agoYes Opus - the other benefit is that it can handle a degree of missing packets which is very handy.
- fenesiistvan 5y agoAnd that feature adds ~20 msec more latency
- weepy 5y agoYou must have set it up wrong. It doesn't add any latency, but you do need a higher bitrate to get similar quality.
- ad8e 5y agoI googled "opus packet loss" and found https://www.asterisk.org/asterisk-opus-packet-loss-fec/ https://www.asterisk.org/asterisk-opus-packet-loss-fec/, which says "an Opus encoder can embed redundant data about the preceding packet in-band in the current packet". That method would cause 1 packet of delay. Are you using something different, or avoiding the delay through another method like tiny packets?
- ad8e 5y agoHere's probably the answer: https://opus-codec.org/docs/opus_api-1.2/group__opus__decoder.html https://opus-codec.org/docs/opus_api-1.2/group__opus__decode... "Lost packets can be replaced with loss concealment by calling the decoder with a null pointer and zero length for the missing packet."