<div dir="ltr">We do have 12khz and 24khz I added the specifically when we added SILK, we can resample to and from both rates. :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 14, 2016 at 7:27 AM, Dragos Oancea <span dir="ltr"><<a href="mailto:dragos.oancea@athonet.com" target="_blank">dragos.oancea@athonet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
Why would you say opus@8000@20i does not sound very good ? What do you<br>
mean exactly ? Your call quality is bad or you mean you don't like the<br>
fact that the sampling rate is low ?<br>
<br>
You can play with the sampling rates by setting maxplaybackrate and<br>
sprop_maxcapurerate and enabling asymmetric_samplerates (which is an<br>
experimental feature so far) in your opus.conf.xml .<br>
<br>
FS does not have 12 khz or 24 khz because they are not much used for<br>
Voip. As for opus @ 16 khz perhaps it will be added.<br>
<br>
But if you use opus @ 48 khz and you just change maxaveragebitrate and<br>
maxplaybackrate accordingly you should get only WIDEBAND from the<br>
encoder anyway .<br>
The decoder should decode at any sample rate.<br>
We're working on a document (sort of manual) for the Opus module and<br>
hopefully it will be released soon.<br>
<br>
As for the issue why codec settings cannot be set from FS's dialplan , I<br>
think its a missing feature that affects other audio codecs too and I<br>
think it would be very useful.<br>
<br>
We needed opus@8000hz for transcoding and I tried to explain some things<br>
here (see my comment at the bottom of the page ):<br>
<a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_opus" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>mod_opus</a><br>
<br>
<br>
Basically if you do heavy transcoding to PCMA / PCMU which is 8000 hz<br>
you'll want to avoid resampling 48 khz <-> 8 khz - we did tests and by<br>
avoiding resampling we were saving 20-30 % CPU .<br>
<br>
Regards,<br>
Dragos<br>
<span class=""><br>
<br>
<br>
On 14/10/2016 14:02, Emrah wrote:<br>
> Hi there,<br>
> Revisiting this issue. I see that I can set my Opus codec with<br>
> Opus@8000@20i, but 8khz seems to be the only alternative profile I can<br>
> use. I see only 2 extreme options when the module is loaded or unloaded<br>
> that it's either 48khz, mono or stereo and packet size, or 8khz, mono or<br>
> stereo and packet size. Can someone clarify why there is nothing in<br>
> between? And what exactly this setting does? Opus@8000h@20i definitely<br>
> doesn't sound very good. I'd rather have a compromise for tough network<br>
> conditions.<br>
> Since these are parameters I can dynamically set on my dialplan, the<br>
> question then becomes why can't I fully manipulate my Opus stack from<br>
> the dialplan?<br>
><br>
> Thanks!<br>
>> On Jun 2, 2015, at 6:23 AM, Emrah <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a><br>
</span><span class="">>> <mailto:<a href="mailto:lists@kavun.ch">lists@kavun.ch</a>>> wrote:<br>
>><br>
>> Hi there,<br>
>> @Mike: yes, but in a commonsensical approach the Opus library on the<br>
>> client's side would resample and therefore optimize the codec and the<br>
>> bandwidth accordingly up to FS.<br>
>> @Julien, I saw the setting for Opus globally, but it defeats the<br>
>> purpose. I don't want to limit the bandwidth of Opus for all<br>
>> instances. I'd like to optimize Opus on a per call basis.<br>
>><br>
>> Thanks for the replies<br>
>>> On May 31, 2015, at 2:13 PM, Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a><br>
</span><span class="">>>> <mailto:<a href="mailto:mike@jerris.com">mike@jerris.com</a>>> wrote:<br>
>>><br>
>>> Side note, opening at the different rate I believe just makes the<br>
>>> opus library do the re sampling instead of FreeSWITCH.<br>
>>><br>
>>> On Sunday, May 31, 2015, Julien Chavanton <<a href="mailto:jchavanton@gmail.com">jchavanton@gmail.com</a><br>
</span><span class="">>>> <mailto:<a href="mailto:jchavanton@gmail.com">jchavanton@gmail.com</a>>> wrote:<br>
>>><br>
>>> Hi Emrah,<br>
>>><br>
>>> The settings exist but they are not available from the dialplan,<br>
>>> right now they can only be set globally .<br>
>>> <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_opus" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>mod_opus</a><br>
>>><br>
>>> You can control the bandwidth using maxplaybackrate and<br>
>>> maxplaybackrate this will control the local encoder and also adds<br>
>>> the corresponding FMTP parameters to the SDP to be used by the<br>
>>> remote encoder (if it does implement the following draft, the<br>
>>> draft is evolving but I think it as not changed)<br>
>>><br>
>>> <a href="https://tools" rel="noreferrer" target="_blank">https://tools</a><br>
</span>>>> <<a href="https://tools/" rel="noreferrer" target="_blank">https://tools/</a>>.<a href="http://ietf.org/html/draft-ietf-payload-rtp-opus-11" rel="noreferrer" target="_blank">ietf.org/<wbr>html/draft-ietf-payload-rtp-<wbr>opus-11</a><br>
<span class="">>>><br>
>>> Maybe something like :<br>
>>><br>
>>> maxaveragebitrate 24000<br>
>>> maxplaybackrate 8000<br>
>>><br>
>>> The discussion was getting slightly more complicated when we<br>
>>> where discussing about unnecessary resampling this was not a<br>
>>> problem but it was just adding extra load on the server.<br>
>>><br>
>>> On Sun, May 31, 2015 at 6:09 AM, Emrah <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a><br>
</span><div><div class="h5">>>> <javascript:_e(%7B%7D,'cvml','<a href="mailto:lists@kavun.ch"><wbr>lists@kavun.ch</a>');>> wrote:<br>
>>><br>
>>> Hi list,<br>
>>><br>
>>> I re-read FS6947 and don't understand how this problematic<br>
>>> was addressed and the issue fixed.<br>
>>> The scope is simple. There should be a setting in the<br>
>>> dialplan that allows downsampling of Opus for applications<br>
>>> that do not require the 48khz / 2 channels framework. I.e.:<br>
>>> terminating to the PSTN with Opus to take advantage of low<br>
>>> bandwidth and great PLC.<br>
>>> There seems to be a lot of confusion around bandwidth in<br>
>>> general there. It doesn't matter if the internal clock of the<br>
>>> device is always sampling at 48khz / 2ch. There are settings<br>
>>> that can facilitate a lower bandwidth consumption for<br>
>>> particular use cases, and it seems the reason it is not being<br>
>>> implemented in FS is just a matter of being confused about<br>
>>> the intent of the 48khz 2ch base.<br>
>>> Please revisit this issue. FS should allow tuning of Opus<br>
>>> audio / network bandwidth in the dialplan. It would optimize<br>
>>> greatly lots of use cases.<br>
>>> If I'm calling the PSTN, I'd rather have my client downsample<br>
>>> and stream at a lower bandwidth, even if my audio capture<br>
>>> would still be at 48khz / 2ch as per the RFC, and save on<br>
>>> bandwidth, than transcode the full 48khz spectrum into PCM on<br>
>>> my FS and minimize processing power on the client's side.<br>
>>><br>
>>> Jira here: <a href="https://freeswitch.org/jira/browse/FS-6947" rel="noreferrer" target="_blank">https://freeswitch.org/jira/<wbr>browse/FS-6947</a><br>
>>><br>
>>> Emrah<br>
>>> ______________________________<wbr>______________________________<wbr>_____________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
</div></div>>>> <javascript:_e(%7B%7D,'cvml','<a href="mailto:consulting@freeswitch.org"><wbr>consulting@freeswitch.org</a>');><br>
>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>>> <<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com/</a>><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a> <<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org/</a>><br>
>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>>> <<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org/</a>><br>
>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a> <<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com/</a>><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
>>> <javascript:_e(%7B%7D,'cvml','<a href="mailto:FreeSWITCH-users@lists.freeswitch.org"><wbr>FreeSWITCH-users@lists.<wbr>freeswitch.org</a>');><br>
<span class="">>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
</span>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a> <<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org/</a>><br>
<span class="">>>><br>
>>><br>
>>> ______________________________<wbr>______________________________<wbr>_____________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
</span>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.<wbr>org</a>><br>
<div class="HOEnZb"><div class="h5">>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
><br>
> ______________________________<wbr>______________________________<wbr>_____________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a> (50% Discount using code FreeSwitch50)<br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a> </font><span style="font-family:monospace,monospace;font-size:small">(50% Discount using code FreeSwitch50)</span><font size="2" face="monospace, monospace"><br></font><a href="https://www.gofundme.com/freeswitch_ubuntu" style="font-size:12.8px" target="_blank"><font face="monospace, monospace">https://www.gofundme.com/freeswitch_ubuntu</font></a></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>