-
Notifications
You must be signed in to change notification settings - Fork 624
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
Mumble bridge locks audio down to CELT #1750
Comments
Sorry, wrong version. We were using 1.19.0 and it appears to be fixed with 1.22.3. |
@s3lph do you have an idea? |
Hm it appears that the only currently available option to enable Opus support is to actually enable the Opus codec in gumble, which pulls in an entirely new dependency (github.com/layeh/gopus, a Go wrapper around the Opus C implementation). Enabling Opus support is as simple as adding a single import: diff --git a/bridge/mumble/mumble.go b/bridge/mumble/mumble.go
index 2281d1c2..7c48c991 100644
--- a/bridge/mumble/mumble.go
+++ b/bridge/mumble/mumble.go
@@ -12,6 +12,7 @@ import (
"layeh.com/gumble/gumble"
"layeh.com/gumble/gumbleutil"
+ _ "layeh.com/gumble/opus"
"github.com/42wim/matterbridge/bridge"
"github.com/42wim/matterbridge/bridge/config"
I'm not quite sure whether I'm doing something wrong, but building the Opus library seems to not work properly with vendoring (the opus-1.1.2 source is checked into the gopus repo):
I see 3 potential ways going forward. Personally, I'm not a huge fan of introducting this actually completely unnecessary dependency (since we're not processing any audio). :
@42wim any thoughts? |
@s3lph thanks for looking into this, as gopus is requiring CGO, this is something I rather not do, want to keep matterbridge I think option 3 is the cleanest if you're willing to do this, but I'm also fine with option 2 if that's less work :) |
I hope this gets merged soon. If not we could still resort to option 2. |
* Mumble: Implement a workaround to signal Opus support without pulling in the CGO gopus dependency. * mumble: lowercase error messages * mumble: Add link to #1750 in bridge/mumble/codec.go
Fixed by #1764 |
Describe the bug
The mumble bridge connects without advertising Opus support, which downgrades the audio codec to CELT for everyone.
To Reproduce
Configure matterbridge to bridge a mumble room, notice how when the bridge is connected the server codec under
Server
->Information
switches toCELT 0.7.0
, while if it isn't connected it usesOpus
.Expected behavior
Matterbridge should advertise Opus support when connecting.
Screenshots/debug logs
Use logs from running
matterbridge -debug
if possible.Deferring to @kmein
Environment (please complete the following information):
If self compiled: output ofgit rev-parse HEAD
Additional context
Please add your configuration file (be sure to exclude or anonymize private data (tokens/passwords))
Deferering to @kmein
The text was updated successfully, but these errors were encountered: