<div dir="ltr"><div><div><div><div>Better check with "opus_debug on" on the FS CLI. Eg:<br>2017-05-10 16:28:05.724001 [DEBUG] mod_opus.c:453 decode: opus_frames [1] samples [960] audio bandwidth [WIDEBAND] bytes [75] FEC[yes] channels[1]<br></div>Look at the audio bandwidth of the decoded packets . If the audio bandwitdh is WIDEBAND, then the sample rate is 16 khz. <br></div>You cannot find this out by looking at the pcap , the RTP timestamp is incremented as described by the SDP profile , so always at 48 khz (which is 960 for 20 ms ptime ) .<br><br></div>Cheers,<br></div>Dragos<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 10, 2017 at 2:38 PM, Colton Conor <span dir="ltr"><<a href="mailto:colton.conor@gmail.com" target="_blank">colton.conor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Anyone know on Polycom VVX's using OPUS, what is the sample rate? 8Khz or 48Khz or somewhere inbetween?<div><br></div><div>I looked a at call through VoIP Monitor, and it said OPUS48 as the codec. Buy since "<span style="font-size:12.8px">the </span><span class="m_338510357893511030gmail-il" style="background-color:rgb(255,255,255);font-size:12.8px">OPUS</span></div><span style="font-size:12.8px">specification says that the SDP must always specify 48 kHz and 2 </span><span style="font-size:12.8px">channels" according to </span><span style="font-size:12.8px;white-space:nowrap">Kristian Kielhofner", I assume it just sadys OPUS 48 because of this.</span><div><span style="font-size:12.8px;white-space:nowrap"><br></span></div><div><span style="font-size:12.8px;white-space:nowrap">Like I mentioned, I though that G.722 between two Polycom's sounded better than OPUS to my suprise. I assume this is because G.722 is at 16 kHZ, and Polycom's opus is potentially at 8kHZ.</span></div><div><span style="font-size:12.8px;white-space:nowrap">The softswitch we are using (Netsapiens) does not do any trasconding to my knowledge, so the payload has to be whatever Polycom encodes/decodes at.</span></div><div><span style="font-size:12.8px;white-space:nowrap"><br></span></div><div><span style="font-size:12.8px;white-space:nowrap">Is there a way to tell what kHz the Opus codec is running at on a Polcom VVX, or by looked at a packet capture? </span></div><div><span style="font-size:12.8px;font-weight:bold;white-space:nowrap"><br></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 6, 2017 at 1:26 PM, Kristian Kielhofner <span dir="ltr"><<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">FreeSWITCH can limit Opus to a configured sample rate but the OPUS<br>
specification says that the SDP must always specify 48 kHz and 2<br>
channels.<br>
<br>
OPUS is a combination of SILK and CELT, with the original PLC+FEC<br>
coming from SILK. There are effectively three modes in OPUS - SILK,<br>
CELT, and hybrid. It's not clear to me how well PLC+FEC works in the<br>
hybrid and CELT modes used at higher sample rates. I haven't looked at<br>
it specifically (or tested it) but my suspicion is that PLC+FEC works<br>
much better the closer you get to "pure" SILK mode, which is<br>
essentially what limiting the sample rate to 8 kHz does.<br>
<div class="m_338510357893511030HOEnZb"><div class="m_338510357893511030h5"><br>
On Sat, May 6, 2017 at 10:21 AM, Colin Morelli <<a href="mailto:colin.morelli@gmail.com" target="_blank">colin.morelli@gmail.com</a>> wrote:<br>
> Transcoding != resampling. Often times you will have to do both to convert<br>
> audio streams, where transcoding is the act of converting between the two<br>
> audio codecs' data format, and resampling is changing the sampling rate of<br>
> the audio (8khz in your case). Opus is a completely different audio codec<br>
> than G.711. Even if they're both at 8 khz, you'll have to transcode between<br>
> the two, though you may be able to avoid the cost of resampling the audio to<br>
> a different rate.<br>
><br>
> Opus can handle sampling rates from 8khz-48khz. Sampling rates make a huge<br>
> difference to audio quality (they'll effectively define the range of audio<br>
> frequencies you can capture). If you're running opus at a constant 8khz, the<br>
> reason G.722 sounds better is almost certainly because it's using a 16khz<br>
> sampling rate. Most likely if you run opus at 16khz, it'll sound similar to<br>
> G.722. If you have the capacity (and the devices support it), pushing opus<br>
> to super-wideband or full band (24khz/48khz sampling rates, respectively)<br>
> will yield much better audio quality.<br>
><br>
> My guess (admittedly it's just an educated assumption), is that most WebRTC<br>
> companies are using fullband opus in VBR mode simply because this is the<br>
> default in WebRTC. Without mangling the SDP, this is what you're going to<br>
> get.<br>
><br>
> Best,<br>
> Colin<br>
><br>
> On Sat, May 6, 2017 at 10:41 AM, Colton Conor <<a href="mailto:colton.conor@gmail.com" target="_blank">colton.conor@gmail.com</a>><br>
> wrote:<br>
>><br>
>> So what does today support FEC/PLC today?<br>
>><br>
>> We tested two Polycom VVX phones with the opus codec, and overall thought<br>
>> that G.722 sounded much better than OPUS for some reason.<br>
>><br>
>> So using Opus at 8 KHz, does that mean that there will be less or no<br>
>> transcoding to G.711 since its also in 8 KHz?<br>
>><br>
>> What are most of the web only WebRTC companies using as far as OPUS goes?<br>
>> What bitrate and KHz?<br>
>><br>
>> On Fri, May 5, 2017 at 8:33 AM, Brian West <<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>> wrote:<br>
>>><br>
>>> None of the hardware phones do FEC/PLC last I tested, Sonus has OPUS<br>
>>> support, but again no FEC/PLC support.<br>
>>><br>
>>> /b<br>
>>><br>
>>><br>
>>> On Wed, May 3, 2017 at 2:16 AM, EL <<a href="mailto:fs.user@fordior.net" target="_blank">fs.user@fordior.net</a>> wrote:<br>
>>>><br>
>>>><br>
>>>> Yealink is supporting OPUS on several other models since firmware<br>
>>>> V81:<br>
>>>><br>
>>>> Quote:<br>
>>>> "We will support opus on the standard V81 of<br>
>>>> SIP-T40P/T23P/T23G/T2 1(P) E2/T19(P) E2."<br>
>>>><br>
>>>> Source:<br>
>>>> <a href="http://forum.yealink.com/forum/showthread.php?tid=29650&pid=51262&mode=threaded" rel="noreferrer" target="_blank">http://forum.yealink.com/forum<wbr>/showthread.php?tid=29650&pid=<wbr>51262&mode=threaded</a><br>
>>>><br>
>>>> I can confirm OPUS implementation on the 'T21P E2' model.<br>
>>>><br>
>>>> --<br>
>>>> EL<br>
>>>><br>
>>>><br>
>>>> ______________________________<wbr>______________________________<wbr>_____________<br>
>>>> Professional FreeSWITCH Consulting Services:<br>
>>>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>><br>
>>> Brian West<br>
>>> <a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><br>
>>><br>
>>> Twitter: @FreeSWITCH , @briankwest<br>
>>><br>
>>> <a href="http://www.freeswitchbook.com" rel="noreferrer" target="_blank">http://www.freeswitchbook.com</a><br>
>>> <a href="http://www.freeswitchcookbook.com" rel="noreferrer" target="_blank">http://www.freeswitchcookbook.<wbr>com</a><br>
>>><br>
>>> Book a phone call (CST)<br>
>>><br>
>>> Allison prompts for FreeSWITCH:<br>
>>><br>
>>> <a href="https://www.gofundme.com/allison-prompts-for-freeswitch" rel="noreferrer" target="_blank">https://www.gofundme.com/allis<wbr>on-prompts-for-freeswitch</a><br>
>>><br>
>>> Got Bugs? Report them here! | Reddit: /r/freeswitch<br>
>>><br>
>>> T:<a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | F:<a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | M:+1918424WEST (9378)<br>
>>> Skype:briankwest<br>
>>><br>
>>><br>
>>> ______________________________<wbr>______________________________<wbr>_____________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
>><br>
>> ______________________________<wbr>______________________________<wbr>_____________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
><br>
> ______________________________<wbr>______________________________<wbr>_____________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
--<br>
</div></div><span class="m_338510357893511030HOEnZb"><font color="#888888">Kristian Kielhofner<br>
</font></span><div class="m_338510357893511030HOEnZb"><div class="m_338510357893511030h5"><br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>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></div>
</div></div><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></blockquote></div><br></div>