bozbez / win-capture-audio

An OBS plugin that allows capture of independant application audio streams on Windows, in a similar fashion to OBS's game capture and Discord's application streaming.
GNU General Public License v2.0
3.78k stars 205 forks source link

How about adding a capture function for each browser window? #141

Closed kdh8219 closed 2 years ago

DwarfFighterCleric commented 2 years ago

Unfortunately the only way of making that possible for now is having a separate browser that you have to load up for things that you specifically want to be recorded.
Also it's the only practical way of achieving this on Linux (because either if you use different Sinks on pulseaudio, every new tab you open or everytime you Refresh a page, that page will be loaded into that sink as well, resulting in things you didn't want to be recorded being recorded... lots of manual labor... easier to setup a different browser just for that task)

bozbez commented 2 years ago

Chrome has an in-browser API for per-tab capture but AFAIK there is no way to use this from the outside. There is no other feasible way to do this as (chrome-based and firefox at least) browsers internally mix all of their audio to a single output stream.

Pre-2.2.2 you could probably manage this by launching separate actual browser instances (not just windows), but reliably re-matching these windows based on title information proved to be too fragile.