<div dir="ltr"><div><div><div><div>Better check with &quot;opus_debug on&quot;  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">&lt;<a href="mailto:colton.conor@gmail.com" target="_blank">colton.conor@gmail.com</a>&gt;</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&#39;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 &quot;<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&quot; according to </span><span style="font-size:12.8px;white-space:nowrap">Kristian Kielhofner&quot;, 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&#39;s sounded better than OPUS to my suprise. I assume this is because G.722 is at 16 kHZ, and Polycom&#39;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">&lt;<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>&gt;</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&#39;s not clear to me how well PLC+FEC works in the<br>
hybrid and CELT modes used at higher sample rates. I haven&#39;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 &quot;pure&quot; 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 &lt;<a href="mailto:colin.morelli@gmail.com" target="_blank">colin.morelli@gmail.com</a>&gt; wrote:<br>
&gt; Transcoding != resampling. Often times you will have to do both to convert<br>
&gt; audio streams, where transcoding is the act of converting between the two<br>
&gt; audio codecs&#39; data format, and resampling is changing the sampling rate of<br>
&gt; the audio (8khz in your case).  Opus is a completely different audio codec<br>
&gt; than G.711. Even if they&#39;re both at 8 khz, you&#39;ll have to transcode between<br>
&gt; the two, though you may be able to avoid the cost of resampling the audio to<br>
&gt; a different rate.<br>
&gt;<br>
&gt; Opus can handle sampling rates from 8khz-48khz. Sampling rates make a huge<br>
&gt; difference to audio quality (they&#39;ll effectively define the range of audio<br>
&gt; frequencies you can capture). If you&#39;re running opus at a constant 8khz, the<br>
&gt; reason G.722 sounds better is almost certainly because it&#39;s using a 16khz<br>
&gt; sampling rate. Most likely if you run opus at 16khz, it&#39;ll sound similar to<br>
&gt; G.722. If you have the capacity (and the devices support it), pushing opus<br>
&gt; to super-wideband or full band (24khz/48khz sampling rates, respectively)<br>
&gt; will yield much better audio quality.<br>
&gt;<br>
&gt; My guess (admittedly it&#39;s just an educated assumption), is that most WebRTC<br>
&gt; companies are using fullband opus in VBR mode simply because this is the<br>
&gt; default in WebRTC. Without mangling the SDP, this is what you&#39;re going to<br>
&gt; get.<br>
&gt;<br>
&gt; Best,<br>
&gt; Colin<br>
&gt;<br>
&gt; On Sat, May 6, 2017 at 10:41 AM, Colton Conor &lt;<a href="mailto:colton.conor@gmail.com" target="_blank">colton.conor@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; So what does today support FEC/PLC today?<br>
&gt;&gt;<br>
&gt;&gt; We tested two Polycom VVX phones with the opus codec, and overall thought<br>
&gt;&gt; that G.722 sounded much better than OPUS for some reason.<br>
&gt;&gt;<br>
&gt;&gt; So using Opus at 8 KHz, does that mean that there will be less or no<br>
&gt;&gt; transcoding to G.711 since its also in 8 KHz?<br>
&gt;&gt;<br>
&gt;&gt; What are most of the web only WebRTC companies using as far as OPUS goes?<br>
&gt;&gt; What bitrate and KHz?<br>
&gt;&gt;<br>
&gt;&gt; On Fri, May 5, 2017 at 8:33 AM, Brian West &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; None of the hardware phones do FEC/PLC last I tested, Sonus has OPUS<br>
&gt;&gt;&gt; support, but again no FEC/PLC support.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; /b<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, May 3, 2017 at 2:16 AM, EL &lt;<a href="mailto:fs.user@fordior.net" target="_blank">fs.user@fordior.net</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Yealink is supporting OPUS on several other models since firmware<br>
&gt;&gt;&gt;&gt; V81:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Quote:<br>
&gt;&gt;&gt;&gt; &quot;We will support opus on the standard V81 of<br>
&gt;&gt;&gt;&gt; SIP-T40P/T23P/T23G/T2 1(P) E2/T19(P) E2.&quot;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Source:<br>
&gt;&gt;&gt;&gt; <a href="http://forum.yealink.com/forum/showthread.php?tid=29650&amp;pid=51262&amp;mode=threaded" rel="noreferrer" target="_blank">http://forum.yealink.com/forum<wbr>/showthread.php?tid=29650&amp;pid=<wbr>51262&amp;mode=threaded</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I can confirm OPUS implementation on the &#39;T21P E2&#39; model.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; EL<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt;&gt;&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt;&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt;&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
&gt;&gt;&gt;&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
&gt;&gt;&gt;&gt; <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>
&gt;&gt;&gt;&gt; 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>
&gt;&gt;&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Brian West<br>
&gt;&gt;&gt; <a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Twitter: @FreeSWITCH , @briankwest<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="http://www.freeswitchbook.com" rel="noreferrer" target="_blank">http://www.freeswitchbook.com</a><br>
&gt;&gt;&gt; <a href="http://www.freeswitchcookbook.com" rel="noreferrer" target="_blank">http://www.freeswitchcookbook.<wbr>com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Book a phone call (CST)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Allison prompts for FreeSWITCH:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <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>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Got Bugs? Report them here! | Reddit: /r/freeswitch<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 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>
&gt;&gt;&gt; Skype:briankwest<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt;&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
&gt;&gt;&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
&gt;&gt;&gt; <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>
&gt;&gt;&gt; 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>
&gt;&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
&gt;&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
&gt;&gt; <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>
&gt;&gt; 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>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
&gt; <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>
&gt; 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>
&gt; <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>