VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
david.villasmil.work a... Guest
|
Posted: Fri Dec 17, 2021 8:46 pm Post subject: [Freeswitch-users] FEC and bitrates |
|
|
Hello all,
i've been testing FEC and how low we can go with maxavgbiterate
<param name="use-vbr" value="1"/>
<param name="use-dtx" value="1"/>
<param name="complexity" value="10"/>
<param name="packet-loss-percent" value="15"/>
<param name="asymmetric-sample-rates" value="1"/>
<param name="bitrate-negotiation" value="1"/>
<param name="keep-fec-enabled" value="1"/>
<param name="use-jb-lookahead" value="true"/>
<param name="maxaveragebitrate" value="14400"/>
<param name="maxplaybackrate" value="8000"/>
<param name="sprop-maxcapturerate" value="0"/>
<param name="adjust-bitrate" value="1"/>
we only see FEC if we set maxavgbiterate to 18000, we see no FEC with 14400
anyone knows what i'm missing?
Regards,
David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337 |
|
Back to top |
|
|
dragos at freeswitch.org Guest
|
Posted: Sat Dec 18, 2021 5:18 am Post subject: [Freeswitch-users] FEC and bitrates |
|
|
David,
Most likely your mod_opus is configured to respect the remote's fmtp and not the maxaveragebitrate and maxplaybackrate that you configure. You have bitrate-negotiation set to true.
It looks it's going in WB mode if you are sure it starts sending FEC at over 16 kbit/s .
Value 14400 was chosen as config default only because is one step above 14000 which is one of the LBRR thresholds (Opus's bitrate works in steps of 400 bits/s) and it also provides a good compromis loss/audio quality for NB.
https://github.com/xiph/opus/blob/master/silk/define.h#L52
/* LBRR thresholds */#define LBRR_NB_MIN_RATE_BPS 12000#define LBRR_MB_MIN_RATE_BPS 14000#define LBRR_WB_MIN_RATE_BPS 16000
FEC threshold in FS is this:
#define SWITCH_OPUS_MIN_FEC_BITRATE 12400 - one step above codec's LBRR threshold for NB. LBRR means Low Bit Rate Redundancy which means FEC.
Regards,
Dragos
On Sat, Dec 18, 2021 at 3:06 AM David Villasmil <david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)> wrote:
|
|
Back to top |
|
|
david.villasmil.work a... Guest
|
Posted: Sat Dec 18, 2021 5:43 pm Post subject: [Freeswitch-users] FEC and bitrates |
|
|
Hey Dragos,
Thanks for that, yeah i think the issue is on the client side somehow, i had already tried not negotiating...
Regards,
David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337
On Sat, Dec 18, 2021 at 4:41 AM Dragos Oancea <dragos@freeswitch.org (dragos@freeswitch.org)> wrote:
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|