Hi there.
I use Iriun Webcam to make short videos to support my classes.
Until a few months ago I used PulseAudio as default sound server. So, to get audio input I used to run:
pacmd load-module module-alsa-source source_properties=device.description=Iriun device=hw:Loopback,0,0
Nevertheless, Manjaro switched for Pipewire.
I trying to get the Loopback interface to capture sound from my Phone as I did before.
After some research, I found a way to identify the capture device with aplay:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: SB [HDA ATI SB], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [LEN S24e-03]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [2369M]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
And after that I used arecord to identify the correct ID.
I’ve confirmed it is in the “hw:0,0”.
So I’ve looked up into a way to get the sound of the Mic and found the pipewire.conf file.
I put these lines in pipewire.conf in my user config folder:
context.objects = [
{ factory = adapter
args = {
factory.name = api.alsa.pcm.source
node.name = "iriun-mic"
node.description = "Iriun"
media.class = "Audio/Source/Virtual"
api.alsa.path = "hw:Loopback,0,0"
audio.format = "S32LE"
audio.rate = 48000
audio.channels = 2
audio.position = "FL,FR"
}
}
]
Then
systemctl restart --user pipewire
But no sound was captured ever.
I’ve also tried some changes in these lines (mono/stereo, bitrate, format etc.) but none of these changes produced any effect.
Mic has no sound.
Am I missing something?
Thanks in advance.