[Freeswitch-users] FS6947 - Tuning Opus bandwidth

Dragos Oancea droancea at yahoo.com
Tue Jun 2 16:12:13 MSD 2015


Hi Emrah,
Currently in the mod_opus module there are only instances at 48 khz and 8 khz.
Actually Freeswitch should respect what the remote client is telling it in the fmtp.I am working on a patch that makes use of the the remote fmtp sprop-maxcapturerate (and this would happen per call).

If you don't want to resample inside FS (consumes CPU) , set your clients to send at the proper sample rate (eg: 8000 to sample narrowband audio) , and use "opus at 8000h" as codec string in the dialplan if you do transcoding to a 8000 hz codec. Regards,Dragos

      From: Emrah <lists at kavun.ch>
 To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org> 
 Sent: Tuesday, June 2, 2015 6:23 AM
 Subject: Re: [Freeswitch-users] FS6947 - Tuning Opus bandwidth
   
Hi there, at Mike: yes, but in a commonsensical approach the Opus library on the client's side would resample and therefore optimize the codec and the bandwidth accordingly up to FS. at Julien, I saw the setting for Opus globally, but it defeats the purpose. I don't want to limit the bandwidth of Opus for all instances. I'd like to optimize Opus on a per call basis.
Thanks for the replies

On May 31, 2015, at 2:13 PM, Michael Jerris <mike at jerris.com> wrote:
Side note, opening at the different rate I believe just makes the opus library do the re sampling instead of FreeSWITCH.

On Sunday, May 31, 2015, Julien Chavanton <jchavanton at gmail.com> wrote:

Hi Emrah,

The settings exist but they are not available from the dialplan, right now they can only be set globally .
https://freeswitch.org/confluence/display/FREESWITCH/mod_opus

You can control the bandwidth using maxplaybackrate and maxplaybackrate this will control the local encoder and also adds the corresponding FMTP parameters to the SDP to be used by the remote encoder (if it does implement the following draft, the draft is evolving but I think it as not changed)

https://tools.ietf.org/html/draft-ietf-payload-rtp-opus-11

Maybe something like :

maxaveragebitrate 24000
maxplaybackrate 8000

The discussion was getting slightly more complicated when we where discussing about unnecessary resampling this was not a problem but it was just adding extra load on the server.

On Sun, May 31, 2015 at 6:09 AM, Emrah <lists at kavun.ch> wrote:

Hi list,

I re-read FS6947 and don't understand how this problematic was addressed and the issue fixed.
The scope is simple. There should be a setting in the dialplan that allows downsampling of Opus for applications that do not require the 48khz / 2 channels framework. I.e.: terminating to the PSTN with Opus to take advantage of low bandwidth and great PLC.
There seems to be a lot of confusion around bandwidth in general there. It doesn't matter if the internal clock of the device is always sampling at 48khz / 2ch. There are settings that can facilitate a lower bandwidth consumption for particular use cases, and it seems the reason it is not being implemented in FS is just a matter of being confused about the intent of the 48khz 2ch base.
Please revisit this issue. FS should allow tuning of Opus audio / network bandwidth in the dialplan. It would optimize greatly lots of use cases.
If I'm calling the PSTN, I'd rather have my client downsample and stream at a lower bandwidth, even if my audio capture would still be at 48khz / 2ch as per the RFC, and save on bandwidth, than transcode the full 48khz spectrum into PCM on my FS and minimize processing power on the client's side.

Jira here: https://freeswitch.org/jira/browse/FS-6947

Emrah
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150602/40b2a0eb/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list