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

Connection failure: Connection terminated When running Mic_Over_Mumble Script #5

Open
gatordevin opened this issue Mar 24, 2020 · 11 comments

Comments

@gatordevin
Copy link

gatordevin commented Mar 24, 2020

Hello,
I moved the mic_over_mumble script into my home directory and tried to run it. It starts up the server immediately and lets me log in with my username however it then gets to Adding a virtual microphone in the terminal and the entire script stops and it says Connection failure Connection terminated. Any Ideas? I am on Ubuntu 18.04
Thank you

Starting Mumble server (murmurd)...
12553
Starting Mumble client...
Fetching PulseAudio configuration...
Changing PulseAudio configuration...
Adding sink...
Fetching current configuration to redirect Mumble...
No sink input found with this index.
Adding a virtual microphone...
Connection failure: Connection terminated

@gatordevin
Copy link
Author

My Audio output on Ubuntu 18.04 has also failed

@pzmarzly
Copy link
Owner

No sink input found with this index.

That shouldn't have happened.

Could you run pavucontrol (you may need to install it first with sudo apt install pavucontrol) and observe what changes when you try adding a device manually via pactl load-module module-null-sink, and if that doesn't work, pacmd load-module module-null-sink?

@gatordevin
Copy link
Author

gatordevin commented Mar 25, 2020

image

image

Here was the result

@hamishmb
Copy link

hamishmb commented Apr 28, 2020

I seem to have this problem as well

EDIT: I'm using Mint 19.3 with Cinnamon in case that's relevant to the issue.

EDIT 2: Adding a null output worked for me as well, with similar results to @gatordevin, except displayed differently because I'm using Cinnamon.

@rdrkr
Copy link

rdrkr commented May 1, 2020

me too :(

@hamishmb
Copy link

Seems to work for me (not fully set up yet), but has a bug with cleanup - references a variable before use

@hamishmb
Copy link

Also is there a Mumble app for Android that's newer than Plumble? Seems to work but probably full of security holes cos it's so old

@pzmarzly
Copy link
Owner

pzmarzly commented Jun 6, 2020

Also is there a Mumble app for Android that's newer than Plumble

Wow, I had no idea that Plumble hasn't been updated since 2014. Sadly, I'm not aware of any other Mumble client.

Back when I got the idea about this script, I initially thought of Skype, but quickly realized that Teamspeak and Mumble server would have lower latency. Mumble seemed to be simpler to setup between those 2. OTOH since March I'm regularly streaming audio between devices via Discord (you need multiple accounts for that), and the delay is reasonable, too.

Anyway...

I think I solved our mystery.

$ pacmd list-sinks | grep -F -e "index: " -e "name: " | awk 'ORS=NR%2?" ":"\n"'
    index: 0    name: <combined>
  * index: 1    name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
    index: 2    name: <null>
    index: 3    name: <Loopback_of_Mumble>

See that asterisk (star) that represents the default (current) device? I think that's what breaks everything (since @edaegonis 's fork fixes the issue by using the third column instead of the second).

Could you try changing your default device to something else than Loopback_of_Mumble? You can use pavucontrol, or just GNOME Settings. Change it while the script is running, and then reset the script (PulseAudio should remember your settings, but I may be wrong about that).

@hamishmb
Copy link

hamishmb commented Jun 8, 2020

I'll have a go and let you know if it works for me.

pzmarzly added a commit that referenced this issue Jun 29, 2020
@pzmarzly
Copy link
Owner

I pushed changes to master that make the script ignore that asterisk.

This should be fixed now, but I'll wait for a while for a confirmation.

@Maxcrazy1
Copy link

I have same mistake. 😥

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

5 participants