quiniouben / vban

VBAN protocol open-source implementation
GNU General Public License v3.0
450 stars 63 forks source link

How do I select the device to emit? #26

Closed Krutonium closed 5 years ago

Krutonium commented 5 years ago

I am struggling to find what it wants, for -d, so far as I can tell, it wants an alsa device, but I am unsure of what to give it.

Right now it auto selects the mic on my webcam, but I need instead to select one of the HDMI outputs on my videocard. Help?

quiniouben commented 5 years ago

Hi @Krutonium , Thank you for getting interest into the project.

I am struggling to find what it wants, for -d, so far as I can tell, it wants an alsa device, but I am unsure of what to give it.

vban_receptor expects device names as given by aplay -L, eg. "hdmi:CARD=PCH,DEV=0" vban_emitter expects device names as given by arecord -L, eg. "front:CARD=PCH,DEV=0"

Right now it auto selects the mic on my webcam, but I need instead to select one of the HDMI outputs on my videocard. Help?

Then, I am not too sure to understand if you are using emitter or receptor, as you mention microphone of webcam (which is an input, and can be used by emitter) and HDMI output of videocard (which can be used by receptor). I would guess for the receptor, as I don't know about any computer with input on HDMI connection. Therefore, give a try at aplay -L to know what are the available devices.

Krutonium commented 5 years ago

Well what I am trying to do is forward the desktop audio of my Linux machine to Windows, right? I assumed that emitter was the correct way to do that, since... emit. But I guess based on what you said, the correct way to do it is receptor?

quiniouben commented 5 years ago

Hi

Well what I am trying to do is forward the desktop audio of my Linux machine to Windows, right? I assumed that emitter was the correct way to do that, since... emit. But I guess based on what you said, the correct way to do it is receptor?

No, you are right, if you want to emit, use an emitter :). My explanations above stand for Alsa backend and you cannot simply achieve what you want with alsa. If you want to forward all your audio (including software sources), you should be successful with using pulseaudio backend + ensuring PulseAudio settings are correct.

Explanation

Illustration vban_emitter -i 192.168.1.1 -p6789 -sStream -bpulseaudio -r48000

pavucontrol_vban

Krutonium commented 5 years ago

Thanks!

webdev778 commented 3 years ago

awesome, Appreciate you a lot @quiniouben , it works as charm