dimtpap / obs-pipewire-audio-capture

🔊 Audio device and application capture for OBS Studio using PipeWire
https://obsproject.com/forum/resources/pipewire-audio-capture.1458/
GNU General Public License v2.0
298 stars 9 forks source link

Workaround for Window Titles Missing #11

Open AlbinoGeek opened 2 years ago

AlbinoGeek commented 2 years ago

Hello!

Since Fedora 36 updated to a WirePlumber combination that hides window titles (for security, supposedly) -- this leads to a lot of usability dysfunction for audio applications which only use the Window Title.

Could you consider adding either the process ID or sink/source ID to the dropdown?

This would then make them uniquely selectable, and fix the lacking window title issue.

For example:

List with Process IDs

10390: firefox
10513: firefox
10543: firefox
10618: firefox
11552: firefox
11577: firefox
21722: firefox
23761: firefox
23984: firefox
54638: firefox
54978: firefox
59980: firefox
140376: firefox
197235: firefox
287802: firefox
315014: firefox
315089: firefox
315117: firefox
315199: firefox
505970: firefox
509860: firefox
510132: firefox
519859: firefox
520027: firefox
520110: firefox

List with Source IDs

This solution is less useful to end-users, who are often not aware of source IDs in Wireplumber, but this would still allow the selection of unique processes. I prefer the Process ID solution above, but maybe only SourceIDs are available within the API context... which would still be an acceptable workaround.

04: firefox
07: firefox
09: firefox
10: firefox
12: firefox
13: firefox
17: firefox
18: firefox
19: firefox
22: firefox
25: firefox
36: firefox
38: firefox
43: firefox
52: firefox
61: firefox
77: firefox
78: firefox
80: firefox
82: firefox
84: firefox
89: firefox
90: firefox
dimtpap commented 1 year ago

The problem with using IDs of any kind is that they aren't persistent so I'm unsure as to what should be done when sources are re-created and/or IDs have changed

lesu1 commented 1 year ago

Is there any workaround for this? I wanted to capture Diablo 4 separate Audio lines, but it doesn't have the Window Title name, unfortunately. Thanks, lesu1

lesu1 commented 1 year ago

I think I found a solution, cannot verify it tho. Install - qpwgraph to see the Pipewire connections, open the app you need (in my case it's Diablo IV) find the link from the app into your sound output and take the app name\title from the box. Input it into the OBS (Application Audio Capture (Pipewire))

Voila.

dimtpap commented 1 year ago

@lesu1 If it's running through Proton/WINE you can try changing the match priority option (added in 1.1.0)