Pipewire-pulse audio recording broken

inxi -Faz
System:    Kernel: 5.15.2-217-tkg-pds x86_64 bits: 64 compiler: gcc v: 11.1.0
           parameters: intel_pstate=passive BOOT_IMAGE=/@/boot/vmlinuz-linux-tkg-pds-generic_v3
           root=UUID=ef15347e-a4da-4628-afc3-2bff20cbb710 rw rootflags=subvol=@ quiet nvidia-drm.modeset=1 splash
           rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1
           resume=UUID=e7745511-30a0-4b3d-93c1-4bc3daa8b2b8 loglevel=3 sysrq_always_enabled=1 nowatchdog
           Desktop: KDE Plasma 5.23.3 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux
           base: Arch Linux
Machine:   Type: Desktop Mobo: ASRock model: X470 Taichi serial: <filter> UEFI: American Megatrends v: P4.20
           date: 07/22/2020
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3 serial: <filter>
           charge: 100% (should be ignored) rechargeable: yes status: Discharging
           Device-2: ps-controller-battery-a0:ab:51:90:7e:70 model: N/A serial: N/A charge: N/A status: Charging
CPU:       Info: 6-Core model: AMD Ryzen 5 2600X bits: 64 type: MT MCP arch: Zen+ family: 17 (23) model-id: 8 stepping: 2
           microcode: 800820D cache: L2: 3 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86488
           Speed: 4077 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 4077 2: 4091 3: 4019 4: 4099 5: 4093
           6: 4090 7: 4092 8: 4068 9: 3611 10: 4121 11: 4072 12: 3715
           Vulnerabilities: Type: itlb_multihit status: Not affected
           Type: l1tf status: Not affected
           Type: mds status: Not affected
           Type: meltdown status: Not affected
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
           Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: NVIDIA GP104 [GeForce GTX 1080] vendor: Gigabyte driver: nvidia v: 495.44
           alternate: nouveau,nvidia_drm bus-ID: 0e:00.0 chip-ID: 10de:1b80 class-ID: 0300
           Display: x11 server: X.Org compositor: kwin_x11 driver: loaded: nvidia display-ID: :0 screens: 1
           Screen-1: 0 s-res: 6400x2160 s-dpi: 102 s-size: 1594x543mm (62.8x21.4") s-diag: 1684mm (66.3")
           Monitor-1: HDMI-0 res: 3840x2160 hz: 60 dpi: 52 size: 1872x1053mm (73.7x41.5") diag: 2148mm (84.6")
           Monitor-2: DP-0 res: 2560x1080 dpi: 81 size: 798x334mm (31.4x13.1") diag: 865mm (34.1")
           OpenGL: renderer: NVIDIA GeForce GTX 1080/PCIe/SSE2 v: 4.6.0 NVIDIA 495.44 direct render: Yes
Audio:     Device-1: NVIDIA GP104 High Definition Audio vendor: Gigabyte driver: snd_hda_intel v: kernel bus-ID: 0e:00.1
           chip-ID: 10de:10f0 class-ID: 0403
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASRock driver: snd_hda_intel v: kernel
           bus-ID: 10:00.3 chip-ID: 1022:1457 class-ID: 0403
           Device-3: Sony Wireless Controller type: USB driver: playstation,snd-usb-audio,usbhid bus-ID: 1-1.3:6
           chip-ID: 054c:0ce6 class-ID: 0300
           Sound Server-1: ALSA v: k5.15.2-217-tkg-pds running: yes
           Sound Server-2: sndio v: N/A running: no
           Sound Server-3: JACK v: 1.9.19 running: no
           Sound Server-4: PulseAudio v: 15.0 running: no
           Sound Server-5: PipeWire v: 0.3.40 running: yes
Network:   Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi v: kernel bus-ID: 08:00.0
           chip-ID: 8086:24fb class-ID: 0280
           IF: wlp8s0 state: down mac: <filter>
           Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel port: d000 bus-ID: 0a:00.0
           chip-ID: 8086:1539 class-ID: 0200
           IF: enp10s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Device-3: Sony Wireless Controller type: USB driver: playstation,snd-usb-audio,usbhid bus-ID: 1-1.3:6
           chip-ID: 054c:0ce6 class-ID: 0300
           IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth: Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-9:7 chip-ID: 8087:0aa7
           class-ID: e001
           Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: N/A
Drives:    Local Storage: total: 2.27 TiB used: 2.77 TiB (121.6%)
           SMART Message: Unable to run smartctl. Root privileges required.
           ID-1: /dev/nvme0n1 maj-min: 259:1 vendor: Samsung model: SSD 970 EVO 250GB size: 232.89 GiB block-size:
           physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7 temp: 43.9 C
           scheme: GPT
           ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 960 EVO 250GB size: 232.89 GiB block-size:
           physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 3B7QCXE7 temp: 31.9 C
           scheme: GPT
           ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DX002-2DV164 size: 1.82 TiB block-size:
           physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: CC41 scheme: GPT
Partition: ID-1: / raw-size: 215.45 GiB size: 215.45 GiB (100.00%) used: 137.06 GiB (63.6%) fs: btrfs dev: /dev/nvme0n1p2
           maj-min: 259:7
           ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) used: 563 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1
           maj-min: 259:6
           ID-3: /home raw-size: 215.45 GiB size: 215.45 GiB (100.00%) used: 137.06 GiB (63.6%) fs: btrfs
           dev: /dev/nvme0n1p2 maj-min: 259:7
           ID-4: /var/log raw-size: 215.45 GiB size: 215.45 GiB (100.00%) used: 137.06 GiB (63.6%) fs: btrfs
           dev: /dev/nvme0n1p2 maj-min: 259:7
           ID-5: /var/tmp raw-size: 215.45 GiB size: 215.45 GiB (100.00%) used: 137.06 GiB (63.6%) fs: btrfs
           dev: /dev/nvme0n1p2 maj-min: 259:7
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 50 (default 100)
           ID-1: swap-1 type: partition size: 17.18 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:8
           ID-2: swap-2 type: zram size: 15.61 GiB used: 1.07 GiB (6.8%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 52.1 C mobo: 36.0 C gpu: nvidia temp: 49 C
           Fan Speeds (RPM): fan-1: 0 fan-2: 1295 fan-3: 1307 fan-4: 1513 fan-5: 1193 gpu: nvidia fan: 0%
           Power: 12v: N/A 5v: N/A 3.3v: 3.30 vbat: 3.28
Info:      Processes: 466 Uptime: 16m wakeups: 3 Memory: 15.61 GiB used: 9.84 GiB (63.0%) Init: systemd v: 249
           tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 2216 lib: 566 flatpak: 0 Shell: fish
           v: 3.3.1 default: Bash v: 5.1.8 running-in: alacritty inxi: 3.3.08

So I noticed that recently (Im guessing after a pipewire update don't know which) audio recording with pulse via pipewire is broken ( so apps like obs and simple screen recorder no longer are able to caputre audio) anyone else run into this?

for example simple screen recorder crashes with this

==================== SSR started ====================
SimpleScreenRecorder 0.4.3
Compiled with GCC 10.2.0
Qt: header 5.15.2, lib 5.15.2
libavformat: header 58.45.100, lib 58.76.100
libavcodec: header 58.91.100, lib 58.134.100
libavutil: header 56.51.100, lib 56.70.100
libswscale: header 5.7.100, lib 5.9.100
[CPUFeatures::Detect] CPU features: mmx sse sse2 sse3 ssse3 sse4_1 sse4_2 avx avx2 bmi1 bmi2
[ScreenScaling] Detected fractional screen scale factor, scaling was disabled.
Icon theme "gnome" not found.
[ALSAInput::GetSourceList] Generating source list ...
[ALSAInput::GetSourceList] Found plugin: [pipewire] PipeWire Sound Server
[ALSAInput::GetSourceList] Found card: [hw:0] Loopback
[ALSAInput::GetSourceList] Found device: [hw:0,0] Loopback: Loopback PCM
[ALSAInput::GetSourceList] Found device: [hw:0,1] Loopback: Loopback PCM
[ALSAInput::GetSourceList] Found card: [hw:1] HDA NVidia
[ALSAInput::GetSourceList] Found card: [hw:2] HD-Audio Generic
[ALSAInput::GetSourceList] Found device: [hw:2,0] HD-Audio Generic: ALC1220 Analog
[ALSAInput::GetSourceList] Found device: [hw:2,2] HD-Audio Generic: ALC1220 Alt Analog
[ALSAInput::GetSourceList] Found card: [hw:3] Wireless Controller
[ALSAInput::GetSourceList] Found device: [hw:3,0] Wireless Controller: USB Audio
[PulseAudioInput::GetSourceList] Generating source list ...
[SourceNamesCallback] Found source: [alsa_output.pci-0000_0e_00.1.hdmi-stereo.monitor] Monitor of GP104 High Definition Audio Controller Digital Stereo (HDMI)
[PageRecord::StartPage] Starting page ...
[PageRecord::StartPage] Started page.
[PageRecord::StartOutput] Starting output ...
[Muxer::Init] Using format mp4 (MP4 (MPEG-4 Part 14)).
[Muxer::AddStream] Using codec libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10).
[VideoEncoder::PrepareStream] Using pixel format nv12.
[libx264 @ 0x55d6cf700e00] using SAR=1/1
[libx264 @ 0x55d6cf700e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55d6cf700e00] profile High, level 5.1, 4:2:0, 8-bit
[libx264 @ 0x55d6cf700e00] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[Muxer::AddStream] Using codec libvorbis (libvorbis).
[AudioEncoder::PrepareStream] Using sample format f32p.
[BaseEncoder::EncoderThread] Encoder thread started.
[BaseEncoder::EncoderThread] Encoder thread started.
[Muxer::MuxerThread] Muxer thread started.
[PageRecord::StartOutput] Started output.
[Synchronizer::SynchronizerThread] Synchronizer thread started.
[PageRecord::StartInput] Starting input ...
[X11Input::Init] Using X11 shared memory.
[X11Input::InputThread] Input thread started.
[PulseAudioConnectStream] Error: Stream connection attempt failed! Reason: Input/Output error
[PageRecord::StartInput] Error: Something went wrong during initialization.
[X11Input::~X11Input] Stopping input thread ...
[X11Input::InputThread] Input thread stopped.
[PageRecord::StopOutput] Stopping output ...
[PageRecord::StopOutput] Stopped output.
[PageRecord::StopPage] Stopping page ...
[Synchronizer::~Synchronizer] Stopping synchronizer thread ...
[Synchronizer::SynchronizerThread] Synchronizer thread stopped.
[Muxer::~Muxer] Stopping encoders ...
[Muxer::~Muxer] Waiting for muxer thread to stop ...
[BaseEncoder::EncoderThread] Encoder thread stopped.
[BaseEncoder::EncoderThread] Encoder thread stopped.
[Muxer::MuxerThread] Muxer thread stopped.
[BaseEncoder::~BaseEncoder] Stopping encoder thread ...
[BaseEncoder::~BaseEncoder] Stopping encoder thread ...
[PageRecord::StopPage] Stopped page.
==================== SSR stopped ====================

Maybe you can use the forum search, first, please.

I did none of the other post seems to be related

Did you check this, no PulseAudio.
But I am not a sound guru :slight_smile:

well i'm assuming that's because and drangonized pulseaudio is not installed so that is normal and you can't have both as pipe wire provides pipewire-pulse

found this could be related (and is posted by another garuda user) though it dosn't seem to have been merged to master yet and IDK how to just build it Selecting an output device in OBS results in an input device being captured instead. (#1820) · Issues · PipeWire / pipewire · GitLab

Fixed it edited /usr/share/wireplumber/scripts/policy-node.lua according to how the merge request did and now audio capture works

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.