Play audio with Virtual Camera

jcubic

New Member
I'm searching for a way to use audio with Virtual Camera when doing Online meetings.
I need to play video during my presentation that will need to do soon.

I've found that you can use Jack but I'm not sure how to use it. There are no documentation of any kind.
I'm using Fedora that use Pipewire. I also found PipeWire Audio Capture but there are also no documentation.

Does anyone know how to connect audio like from Google Chrome YouTube video during Google Meet (or Zoom) presentation
using OBS?
 

AaronD

Active Member
There have been several requests for OBS to do exactly that, but it hasn't happened yet.

Until then, you'll need to use OBS's Monitor to get audio out of it, as that's the only audio out that isn't tied up in a stream or recording. Then you'll need to send that Monitor to an audio loopback of some kind. This can be as simple as an unused physical device, while the meeting picks up the OS's monitor of that device - that's a loopback - or you can look up how to create a formal loopback in PipeWire, or you can go so far as to pipe it into a DAW like Ardour, do all of your audio processing in there, and then pipe it from there into the meeting.

PipeWire is new enough that the LTS release of Ubuntu hasn't picked it up yet, so I'm afraid I can't help you with that.

What I can do though, is attach a pair of scripts to this post (and a PDF flowchart of the main one) that I use to set up a meeting with two copies of OBS, Ardour for ALL of the audio (OBS doesn't have *any* except for the absolute necessity for things like video soundtracks and recording), and an open-source browser-based meeting:
You can look through that script and see how it works with the older PulseAudio and JACK, on Ubuntu Studio 22.04 LTS.

Here's what Ardour looks like, doing ALL of the audio processing for the entire rig:
1682611393323.png

Some of that is to generate a 20kHz sine for OBS to pick up and modify, using the Advanced Scene Switcher plugin, and then return to Ardour as a control signal. (OSC is in the works for Adv. SS, but not released yet; once it is, I'll change it to direct control instead of audio control)
The OBS Master Ctrl and OBS Master Play channel strips (green color-code, for "playback") are connected to the same source, and their steep high/low-pass filters at 18kHz do a pretty good job of separating a video soundtrack from the control tone. Then a set of side-chained compressors and gates scattered around, use the presence or absence of that tone as a mute/unmute function.
 

Attachments

  • 0_Setup.sh.txt
    12.3 KB · Views: 11
  • Setup-Script.pdf
    28.1 KB · Views: 13
  • Audio-Routing.pdf
    80.7 KB · Views: 12
  • Harvestmen.sh.txt
    188 bytes · Views: 8
Top