Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lossless or wideband audio codec #9015

Closed
trs80 opened this issue Apr 8, 2020 · 2 comments
Closed

Use lossless or wideband audio codec #9015

trs80 opened this issue Apr 8, 2020 · 2 comments

Comments

@trs80
Copy link

trs80 commented Apr 8, 2020

Describe the bug
We have music tutors trying to teach over BBB, and they've noticed some compression and other audio glitches. I see that BBB is using Opus, is there any way to make it use a wideband codec like G.722 or a higher bitrate.

To Reproduce
Steps to reproduce the behavior:

  1. Conduct a music lesson over BBB

Expected behavior
Audio is clear 100% of the time

Actual behavior
Audio is compressed and artifacted occasionally

Additional context
Obviously there's device audio quality issues that we're looking at, but it'd be nice to eliminate the codec as a possible problem. I tried editing freeswitch vars.xml putting PCMA at the start global_code_prefs and outbound_codec_prefs but it still negotiated Opus.

@Arthus
Copy link

Arthus commented Apr 8, 2020

Hi,
just a random guy passing by. I currently don't run BBB myself, but maybe I can help you.

Please have a look at https://github.com/bigbluebutton/bbb-webrtc-sfu/blob/6a6425a057684ba749809ba85298a5c94325fcfa/config/default.example.yml
In line 188 the Opus Bitrate is set to 30kBit. Naturally that won't be enough for music. Maybe you can increase that to 64kBit vor even 96kBit and test your quality again.

G.722 won't hell at all. Those Codecs are not meant to be used for music and use a max sampling rate of 16kHz and have a frequency range of only 50 to 7000Hz. G.722 will propably only make things worse. Because of that you also have to check:
Afaik Chrome doesn't support Opus for WebRTC so your lecturer nicht want to usw Firefox, so Opus (your only real choice for music) can even be used.

You can also check issue #7007 as that one was also about audio quality

@trs80
Copy link
Author

trs80 commented Apr 8, 2020

I don't think that file is relevant since the audio goes to FreeSwitch, not the SFU. Looking at the SDP, I see a=rtpmap:111 opus/48000/2. I found /opt/freeswitch/conf/autoload_configs/conference.conf.xml which has a plausible <profile name="video-mcu-stereo"> but increasing the rate there didn't change the SDP.

OK #7007 has plenty of stuff to go on, thanks for that tip.

@basisbit basisbit closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants