News for hackers. Stuff that matters.
Re:Show HN: Low-latency jamming over the internet by andai on Saturday October 23, 2021 @10:28AM (#28968848)
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.
Re:Show HN: Low-latency jamming over the internet by weepy on Saturday October 23, 2021 @10:39AM (#28968954)
Yes Opus - the other benefit is that it can handle a degree of missing packets which is very handy.
Re:Show HN: Low-latency jamming over the internet by fenesiistvan on Saturday October 23, 2021 @11:32AM (#28969440)
And that feature adds ~20 msec more latency
Re:Show HN: Low-latency jamming over the internet by weepy on Saturday October 23, 2021 @03:53PM (#28971669)
You must have set it up wrong. It doesn't add any latency, but you do need a higher bitrate to get similar quality.
Re:Show HN: Low-latency jamming over the internet by ad8e on Sunday October 24, 2021 @12:23AM (#28974948)
I googled "opus packet loss" and found 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?
Re:Show HN: Low-latency jamming over the internet by ad8e on Sunday October 24, 2021 @08:59PM (#28983457)
Here's probably the answer: 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."