Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Opus packet loss


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
infinite3219 at gmail.com
Guest





PostPosted: Fri Mar 12, 2021 1:49 pm    Post subject: [Freeswitch-users] Opus packet loss Reply with quote

Hi,

We use FreeSwitch 1.10.5 with Opus audio for clients. We target voice quality to be wideband. The config settings are below. We also set a jitter buffer in the dialplan.


Is there a downside to increasing the packet loss percent to 40-50% other than using more bandwidth? Is there a voice quality impact if you set it too high (what would be considered too high)?


Thanks.


<param name="use-vbr" value="1"/>
<param name="use-dtx" value="1"/>
<param name="complexity" value="10"/>
<param name="packet-loss-percent" value="30"/>
<param name="keep-fec-enabled" value="1"/>
<param name="use-jb-lookahead" value="1"/>
<param name="maxaveragebitrate" value="40000"/>
<param name="maxplaybackrate" value="16000"/>
<param name="sprop-maxcapturerate" value="16000"/>
<param name="adjust-bitrate" value="1"/>
</settings>
Back to top
brian at freeswitch.com
Guest





PostPosted: Fri Mar 12, 2021 2:14 pm    Post subject: [Freeswitch-users] Opus packet loss Reply with quote

CPU and bandwidth.

/b




On Fri, Mar 12, 2021 at 12:40 PM Terry C <infinite3219@gmail.com (infinite3219@gmail.com)> wrote:

Quote:
Hi,

We use FreeSwitch 1.10.5 with Opus audio for clients. We target voice quality to be wideband. The config settings are below. We also set a jitter buffer in the dialplan.


Is there a downside to increasing the packet loss percent to 40-50% other than using more bandwidth? Is there a voice quality impact if you set it too high (what would be considered too high)?


Thanks.


<param name="use-vbr" value="1"/>
<param name="use-dtx" value="1"/>
<param name="complexity" value="10"/>
<param name="packet-loss-percent" value="30"/>
<param name="keep-fec-enabled" value="1"/>
<param name="use-jb-lookahead" value="1"/>
<param name="maxaveragebitrate" value="40000"/>
<param name="maxplaybackrate" value="16000"/>
<param name="sprop-maxcapturerate" value="16000"/>
<param name="adjust-bitrate" value="1"/>
</settings>


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--



Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
dragos at freeswitch.org
Guest





PostPosted: Sat Mar 13, 2021 7:51 am    Post subject: [Freeswitch-users] Opus packet loss Reply with quote

When trying to understand how it works make sure you are not mixing decoding side settings with the encoding side settings.packet-loss-percent is encoding side and is the initial value for loss if you use adjust-bitrate (callback with SCC_AUDIO_PACKET_LOSS from the core) . 
The callback comes only if there is incoming RTCP - which for audio is typically at 5 seconds interval.So the adjust-bitrate feature will update the loss too, not only the bitrate. 
 
Otherwise, without adjust-birate, it's the default value for OPUS_SET_PACKET_LOSS_PERC() which will stay like this along the call and depending on the preset bitrate it will generate a certain amount of FEC on top of the payload of some of the packets (encoder decisions) .  So no, you should not set that very high, since you can't know the real network conditions before the call is made. 15 or 20 are good values.





On Fri, Mar 12, 2021 at 9:05 PM Brian West <brian@freeswitch.com (brian@freeswitch.com)> wrote:

Quote:
CPU and bandwidth.

/b




On Fri, Mar 12, 2021 at 12:40 PM Terry C <infinite3219@gmail.com (infinite3219@gmail.com)> wrote:

Quote:
Hi,

We use FreeSwitch 1.10.5 with Opus audio for clients. We target voice quality to be wideband. The config settings are below. We also set a jitter buffer in the dialplan.


Is there a downside to increasing the packet loss percent to 40-50% other than using more bandwidth? Is there a voice quality impact if you set it too high (what would be considered too high)?


Thanks.


<param name="use-vbr" value="1"/>
<param name="use-dtx" value="1"/>
<param name="complexity" value="10"/>
<param name="packet-loss-percent" value="30"/>
<param name="keep-fec-enabled" value="1"/>
<param name="use-jb-lookahead" value="1"/>
<param name="maxaveragebitrate" value="40000"/>
<param name="maxplaybackrate" value="16000"/>
<param name="sprop-maxcapturerate" value="16000"/>
<param name="adjust-bitrate" value="1"/>
</settings>


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--



Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]













_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
mario_fs at mgtech.com
Guest





PostPosted: Mon Mar 15, 2021 12:45 pm    Post subject: [Freeswitch-users] Opus packet loss Reply with quote

Could it be related to this which is outstanding?, I can duplicate it every time:https://github.com/signalwire/freeswitch/issues/963
Opus warbly, drops sections or unintelligible audio due to gaps in RTP timestamps
Quote:
On Mar 13, 2021, at 4:26 AM, Dragos Oancea <dragos@freeswitch.org (dragos@freeswitch.org)> wrote:
When trying to understand how it works make sure you are not mixing decoding side settings with the encoding side settings.packet-loss-percent is encoding side and is the initial value for loss if you use adjust-bitrate (callback with SCC_AUDIO_PACKET_LOSS from the core) .
The callback comes only if there is incoming RTCP - which for audio is typically at 5 seconds interval.So the adjust-bitrate feature will update the loss too, not only the bitrate.

Otherwise, without adjust-birate, it's the default value for OPUS_SET_PACKET_LOSS_PERC() which will stay like this along the call and depending on the preset bitrate it will generate a certain amount of FEC on top of the payload of some of the packets (encoder decisions) . So no, you should not set that very high, since you can't know the real network conditions before the call is made. 15 or 20 are good values.


On Fri, Mar 12, 2021 at 9:05 PM Brian West <brian@freeswitch.com (brian@freeswitch.com)> wrote:
Quote:
CPU and bandwidth.
/b


On Fri, Mar 12, 2021 at 12:40 PM Terry C <infinite3219@gmail.com (infinite3219@gmail.com)> wrote:
Quote:
Hi,
We use FreeSwitch 1.10.5 with Opus audio for clients. We target voice quality to be wideband. The config settings are below. We also set a jitter buffer in the dialplan.

Is there a downside to increasing the packet loss percent to 40-50% other than using more bandwidth? Is there a voice quality impact if you set it too high (what would be considered too high)?

Thanks.

<param name="use-vbr" value="1"/>
<param name="use-dtx" value="1"/>
<param name="complexity" value="10"/>
<param name="packet-loss-percent" value="30"/>
<param name="keep-fec-enabled" value="1"/>
<param name="use-jb-lookahead" value="1"/>
<param name="maxaveragebitrate" value="40000"/>
<param name="maxplaybackrate" value="16000"/>
<param name="sprop-maxcapturerate" value="16000"/>
<param name="adjust-bitrate" value="1"/>
</settings>


_________________________________________________________________________ The FreeSWITCH project is sponsored by SignalWire sales@freeswitch.com (sales@freeswitch.com) FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com


--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]













_________________________________________________________________________ The FreeSWITCH project is sponsored by SignalWire sales@freeswitch.com (sales@freeswitch.com) FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com

_________________________________________________________________________The FreeSWITCH project is sponsored by SignalWire sales@freeswitch.com (sales@freeswitch.com)https://freeswitch.comOfficial FreeSWITCH Siteshttps://freeswitch.com/osshttps://freeswitch.org/confluencehttps://cluecon.comFreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services