Adding royalty free background music to a stream

kitenski

New Member
Afternoon,

I've spent ages searching and googling for a way to this. Everything I come across seems more complicated, eg using Spotify and displaying track titles etc etc.

I'm using OBS via restream to stream onto Facebook and YouTube.

I occasionally stream an online cycling game called Zwift, it's not the most thrilling thing to watch so I simply wanted to add some royalty free background music that automatically starts when I start streaming (via a hotkey) and stops when I stop streaming.

I tried having a local radio station playing which worked fine, but then the tracks get flagged as copyright on YouTube.

Is there an easy way to do this please?

Thanks,
Greg
 

AaronD

Active Member
I do that in one of my rigs, but the rig itself is somewhat complicated. It's broadcasting a live event, and tapping off of the live audio console for everything. Even what only goes to the stream, goes through that console first.

One of those things is a jukebox, using MPD on a Raspberry Pi, which is present anyway for some other jobs:
That feeds into one of the inputs on the live console, and gets mixed with everything else before finally getting to a dedicated output for OBS.

But for a simpler rig, nothing says it can't be on the same machine and feed a loopback:

MPD has no user interface at all. It's controlled entirely over a network. There are lots of graphical UI's and command-line UI's (clients) to choose from, all of which send and receive network messages and don't actually play audio themselves. The MPD server plays the files, which the client machine might not even have access to.

Anyway, I have a graphical client to set it up with, and a command-line client that goes in the Run action of the Advanced Scene Switcher plugin:
1693411906012.png

Full documentation for mpc:
 

qhobbes

Active Member
Using foobar2000 I created a playlist and then created a Keyboard Shortcut for "Play or pause" (in my case Ctrl+0) with "Global hotkey" enabled. In OBS (with foobar2000 closed), I then set the Hotkeys for Start and Stop Recording to Ctrl+0. I then re-opened foobar2000, added it with Application Audio Capture and was able to start the recording and song at the same time and end the recoding and pause the song at the same time.
 
Top