Automatic Audio Ducking/Muting from specific source?

stormyjw

New Member
i am using OBS to stream high school sports to facebook. I run video commercials during the games and have the files as sources above my video capture device. They play just fine over the capture source, but the audio from the video capture remains live when I am playing commercials. Of course, it can be manually muted, but I am relying on HS students to run many of the games, and frequently the volume remains on during commercials or is not turned back on when we return to the game.

Is there a feature I am missing that would automatically kill the audio from the capture source, or is there a different way to layout the commercials in order to accomplish this?

Here is a sample video

Thank you!
JW
 

FerretBomb

Active Member
You could create a second scene for commercial breaks, without the video capture device present. OBS should fade out the VCD audio when swapping to a scene without it, then fade it back in when switching back.

If you want to still have the VCD visible around the commercial overlay, an advanced way to do it would be to disable the audio on the VCD source, and add an Audio Input Capture source pointed at the capture device (if it offers a discrete audio device). In the main scene have both the VCD and AIC sources. In the commercial scene just have the VCD and your commercial overlay. When you swap to the second scene, it'd fade out the AIC since it wasn't present, then switching back after the commercial would fade it back in.

To nip a potential issue in the bud: you can't do this by just having two VCD sources (one without sound, one with) because most capture devices do not allow concurrent access by multiple programs (each VCD source counts as one).
 

stormyjw

New Member
Sorry I haven't replied, but FerretBomb's solution is working perfectly. I am just changing scenes to play the commercials and changing back to the video capture scene for the game. I did keep the video capture (without sound) in the playlist with the ads so I don't end up with black screen ever. Occasionally I forget to switch back to the video capture scene with audio, but it's better to have no audio on the game, than audio over the commercials. Thanks!
 
Top