mediasoup icon indicating copy to clipboard operation
mediasoup copied to clipboard

Implement RED

Open jmillan opened this issue 3 years ago • 7 comments

https://tools.ietf.org/html/rfc2198

https://webrtchacks.com/implementing-redundant-audio-on-an-sfu/ https://webrtchacks.com/red-improving-audio-quality-with-redundancy/

Since this patch in libwebrtc the SFU can be able to identify the redundant packets.

jmillan avatar Nov 20 '20 10:11 jmillan

Update: There's actually no plan for enabling RED (currently under flag) by default in libwebrtc. Thanks @fippo for the update.

jmillan avatar Nov 23 '20 12:11 jmillan

At least that is what was said at KrankyGeek. I disagree with that and @emcho probably does too :-)

fippo avatar Nov 23 '20 14:11 fippo

run with --force-fieldtrials=WebRTC-Audio-Red-For-Opus/Enabled/ , the web sdp offer support red. use mediasoup-demo, How do I set up config to support red in sdp answer.

oppolixiang avatar Apr 14 '21 03:04 oppolixiang

run with --force-fieldtrials=WebRTC-Audio-Red-For-Opus/Enabled/ , the web sdp offer support red.

use mediasoup-demo, How do I set up config to support red in sdp answer.

mediasoup does not support RED. You cannot just add it to Router media codecs. That's why this task exists.

ibc avatar Apr 14 '21 06:04 ibc

Opus RED support enabled in Chrome M96, so this becomes more relevant

nazar-pc avatar Nov 15 '21 11:11 nazar-pc

Are there any plans for adding RED implementation? If not, can you point me to some places in the code of mediasoup which would need adjustments? Imho, RED is currently the best way to improve transport reliability of audio frames through mediasoup especially for long-distance communication, where random bursts of packet loss do happen occasionally.

basisbit avatar Jun 29 '22 09:06 basisbit

There is no plan to implement it. Pointing some places in the code to do it would require that we get involved into it. We'll do in the future if this feature gains attraction.

ibc avatar Jun 29 '22 11:06 ibc