 Hey guys, welcome back to my YouTube channel. This is Daniel Rosal here for today's video. I'm going to be showing you guys how to do something very basic, but also really, really useful in OBS Studio on Ubuntu Linux. And that is how to mix your microphone audio feed with background music. So, but what I'm going to be showing specifically is streaming background music. So I'm going to be using something from the YouTube audio library. But if you're streaming or using OBS to record live, you can of course use any music you have broadcast and are other appropriate rights to. Now, this of course is only one of multiple ways to layer in some music on your videos. You could of course do this all in post production. But if you were trying to get that background audio for your stream doing it in post wouldn't be much used to you of course. So without further ado, let me show you guys how I'm going to set this up. And no virtual audio cables required because I know that's a thing that comes up a lot when people are looking to do stuff like this in OBS. So I'm in the YouTube audio library and I'm going to just find some music that can go with this for this demo. Let's say I want to get some classical music. So I was going to have a long runtime classical music selected not quite yes. I'm trying to do everything too quickly classical music apply. And I'm going to filter on duration from long to short. So we have here Beethoven's Ninth Symphony finale which has a 23 minute runtime. So what I'm going to do now is start playing this music. Okay so we have Beethoven playing somewhere I actually can't hear it because I'm not using the speakers they don't have headphones in. So we just trust that it's running. So now we're going to go over to OBS studio and I'm just going to turn off my window to show you guys how this is going to be done. Now by default the meter you're seeing here is my microphone mic AUX and my audio mixer. You can see where it's peaking about. And here is what I'm going to do. Now firstly because this video was specifically for Ubuntu I'm going to firstly open up my PAVU control and have a look at what's going on. So I can see that there is some audio from Google Chrome that is playing out via my built-in analog stereo. Now I guess it's a pretty quiet track because it's not making a lot of waves from here. But if I crank up the gain a bit you can see that bouncing around. So that's our Beethoven. I'm going to bring it back there to zero dB. And in terms of input devices this is my audio interfaces my Behringer and the level. So that all looks good. Now if your Chrome audio for example I also have HDMI on this on my monitor so by usually I'm listening to my desktop audio through this output device. So if it's set to sometimes if you accidentally have an input set to a fallback you'll see that PAVU control will try to write your desktop audio through an audio interface and input which obviously makes zero sense. So just make sure that that's going into built-in analog stereo. So that's where our Beethoven is going. So far so good. Okay next thing I'm going to do is go into my preferences here settings and in the audio tab I have desktop audio is a global audio device by default but I have disabled that. So I want to go ahead and undo that move and I'm going to select my desktop audio to be built in analog stereo. Now something quite cool I could I could do is that let me bring back over my volume control thing. Let's say I wanted to listen to my music through the HDMI speakers and I'm going to do that for a second and indeed I can hear Beethoven playing. So I could actually do that this wouldn't be the normal thing to do but it would work and I would just choose my desktop audio device to be the HDMI output okay. So that output can actually serve for from OBS's standpoint as desktop audio but we're going to do things simple conventional for this demo. So I'm going to select my desktop audio to be built in audio analog stereo then all I need to do is click on apply and now you should be hearing some Beethoven. Now I'm going to mute that so it's not distracting and I'm going to go ahead and put myself back over here for just for a second but that's basically how you do it and now all you have to do to kind of get the right level and you can of course be doing this as you are streaming would be I'm going to unmute it now and now I can just kind of look at my level and see my voice is peaking into the yellow and my background classical music here is coming up a little bit more gentle and I can actually choose to because we picked a quiet track it's not making much of an impression if I pull the gain down here I can completely mute it or I can just reduce it to a very minimal point or I can bring it back up to 100% and likewise I can change I can pull down my voice versus the music all the way down here and I can mute either channel so I'm going to mute my voice for a few seconds and you can hear just the background music bring myself back up and do the opposite and mute the background music and I can of course do all the other cool things you can do in OBS Studio such as apply audio filters on either one of the channel a compressor expander gain etc etc if I'm not getting enough gain from the audio here I can actually sort of go beyond that and I can also set advanced audio properties so I can choose to monitor both channels if I want as they are being recorded so that's pretty much it in terms of how and I still have the classical so I'm going to just turn off bass over there so that is how you can mix a microphone feed and a and your desktop audio which can be anything you're streaming you can also direct something like you know you can have Spotify or YouTube or basically any audio that you have the rights to you can mix it against a microphone feed in OBS on Ubuntu just like that hope this video is useful if you are looking to do this in Ubuntu and OBS no additional software required it works out of the box you just need to know what to do thank you guys for watching if you want to get more videos from me about streaming OBS Linux and other topics do feel free to subscribe to this YouTube channel