What are the downsides ( if any ) of using OPUS ?

750 views
Skip to first unread message

Kushtrim Pacaj

unread,
Oct 22, 2016, 9:48:37 AM10/22/16
to discuss-webrtc
I saw that in the AppRTC android sample by google OPUS is used as audio codec, though I've seen countless samples online that change the SDP to prefer ISAC instead of OPUS?
I'm developing an app that uses WebRTC, and thought of using OPUS since it's both the default one in AppRTC, and also based on what I've read is superior to many other codecs in bad network conditions.

So, is there a downside to using OPUS in comparison to ISAC ? 

Alexandre GOUAILLARD

unread,
Oct 23, 2016, 12:05:41 AM10/23/16
to discuss...@googlegroups.com
bandwidth usage. OPUS is a 2-channels (stereo) codec. In webrtc, if I remember correctly, it is using 48khz sampling (as one can see in the Offer/Answer SDPs). Isac is one channel at 16khz (in webrtc). All other things being equals, opus is then using 6 times more bandwidth.

early on, CPU consumption was also much higher than iSAC, but new version of opus is better in that regard, so I don't know if it's still bottleneck.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/dc71e293-d144-4df7-8998-b2e1aafaee10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

Silvia Pfeiffer

unread,
Oct 23, 2016, 3:23:10 AM10/23/16
to discuss...@googlegroups.com
On Sun, Oct 23, 2016 at 3:05 PM, Alexandre GOUAILLARD
<agoua...@gmail.com> wrote:
> bandwidth usage. OPUS is a 2-channels (stereo) codec. In webrtc, if I
> remember correctly, it is using 48khz sampling (as one can see in the
> Offer/Answer SDPs). Isac is one channel at 16khz (in webrtc). All other
> things being equals, opus is then using 6 times more bandwidth.


That doesn't necessarily follow, because Opus compresses differently to iSAC.

However, it seems that others have found that iSAC works better in
poor quality networks:
https://groups.google.com/forum/#!topic/discuss-webrtc/gyisRe6PZGw .

Kushtrim, you might want to read http://opus-codec.org/comparison/ and
then do your own experiments. :-)

Cheers,
Silvia.

Philipp Hancke

unread,
Oct 23, 2016, 3:35:28 AM10/23/16
to discuss...@googlegroups.com
2016-10-23 9:22 GMT+02:00 Silvia Pfeiffer <silviap...@gmail.com>:
On Sun, Oct 23, 2016 at 3:05 PM, Alexandre GOUAILLARD
<agoua...@gmail.com> wrote:
> bandwidth usage. OPUS is a 2-channels (stereo) codec. In webrtc, if I
> remember correctly, it is using 48khz sampling (as one can see in the
> Offer/Answer SDPs). Isac is one channel at 16khz (in webrtc). All other
> things being equals, opus is then using 6 times more bandwidth.


That doesn't necessarily follow, because Opus compresses differently to iSAC.

Opus uses ~40kbps in Chrome (50kbps in Firefox), ISAC slightly above 30kbps.

Silvia Pfeiffer

unread,
Oct 23, 2016, 3:58:34 AM10/23/16
to discuss...@googlegroups.com
Good data.

Is that with default settings, so Opus providing 48kHz audio and iSAC
16kHz? That would imply a huge difference in audio quality with
minimally more bandwidth use...

You should be able to change the used bandwidth by setting the
bandwidth limit in SDP, right? Then you should be able to get Opus at
the same bandwidth as iSAC?

Alexandre GOUAILLARD

unread,
Oct 23, 2016, 7:40:55 AM10/23/16
to discuss...@googlegroups.com
hence the "all other things being equals".
I did not want to go into compression, quantization, ......

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Alexandre GOUAILLARD

unread,
Oct 23, 2016, 7:42:52 AM10/23/16
to discuss...@googlegroups.com
nice data, thanks.

What about the CPU consumption? I remember the difference to be drastic especially on mobile. Opus would actually saturate the CPU on an iPhone 4 and almost on an iPhone 5 before google upgraded to v1.1. I have not made new benchmark since.

Alex.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages