audio quality

136 views
Skip to first unread message

Gabriel Henrique Oliveira

unread,
Dec 27, 2021, 1:06:15 PM12/27/21
to meetecho-janus
How to decrease audio quality by janus?

Gabriel Henrique Oliveira

unread,
Dec 27, 2021, 1:27:24 PM12/27/21
to meetecho-janus

Opus quality or reduced number of packages. Something that makes the audio use less network.

august black

unread,
Dec 27, 2021, 4:51:30 PM12/27/21
to Gabriel Henrique Oliveira, meetecho-janus
Hi Gabriel,

Are you talking about the audiobridge plugin?

If so, I believe there is a new setting (not yet on the official web docs) that allows you to set the bitrate manually for all:


If you were interested in minimizing the overall  network bandwidth usage, that might be something to consider.

saludos -August.





--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/7997bd87-5146-4048-94ea-7b5d8a120fdbn%40googlegroups.com.

Mirko Brankovic

unread,
Dec 27, 2021, 5:03:11 PM12/27/21
to meetecho-janus
There is a quality for opus encoder/decoder on join request.
"quality" : <0-10, Opus-related complexity to use, the higher the value, the better the quality (but more CPU); optional, default is 4>
Not sure it will affect bandwidth or only cpu usage

august black

unread,
Dec 27, 2021, 5:23:04 PM12/27/21
to Mirko Brankovic, meetecho-janus
Hi Mirko,

I can't seem to notice any difference when setting the "quality" on join for audio.

Does it really change anything?

It seems to me like the bitrate is set automatically (likely based on samplerate)  by the opus encoder, and that the quality only adapts encoder settings slightly around that.

I was under the assumption this new default_bitrate would actually allow you to set the bitrate (albeit only for all clients at once).

Does that sound right?  Or is there a better way to understand audio quality settings?

Is there a way to set the bitrate manually on a per client basis?

thanks -August.


Mirko Brankovic

unread,
Dec 27, 2021, 6:18:26 PM12/27/21
to meetecho-janus
I'm not that in depth familiar with libopus,
But i guess it is directly measurable. If you do iftop on interface that sends audio out to your clients ip and with settings 0 and 10 see if ~80kbps would defer .

Maybe meetecho team will share more light after vacation

Mirko Brankovic

unread,
Dec 27, 2021, 6:24:39 PM12/27/21
to meetecho-janus
Definitely it is a per room setting, for all parties. Maybe check if there is bitrate on join request.
There is, so default_bitrate or bitrate on join should help

Lorenzo Miniero

unread,
Dec 28, 2021, 4:11:59 AM12/28/21
to meetecho-janus
Yes, there is a bitrate parameter per join/configure as well.
Anyway, it's more likely the OP referred to VideoRoom like usage: in that case, the only way you can limit or force a higher audio bitrate to my knowledge is munging the SDP to add the bitrate there.

L.

Sarsaparilla Sunset

unread,
Jan 8, 2022, 7:59:18 PM1/8/22
to meetecho-janus
Just to add, I use this to set the OPUS bitrate:

handle.handleRemoteJsep({
    customizeSdp: function(jsep) {
        jsep.sdp = jsep.sdp.replace('useinbandfec=1', 'useinbandfec=1;maxaveragebitrate=96000')
    }
})

We want to mung the answer SDP received from Janus, not the offer SDP, since maxaveragebitrate is used by the receiver to telll the sender what bitrate it prefers to receive.

There is also a stereo parameter that can be used to indicate receiver's preference for stereo audio.

I also, as recommended elsewhere for higher audio quality, set:

audio: {
autoGainControl: false,
    echoCancellation: false,
    noiseSuppression: false
}
Reply all
Reply to author
Forward
0 new messages