How to Add Music to OBS for Streaming
In this article
Yes, you can add and play music tracks in OBS (Open Broadcaster Software) while streaming by using an audio input source like a media player, browser tab, or dedicated music application. This allows you to stream background music without interrupting your main audio feed, such as your microphone or game sound. The key is routing the music audio correctly so it mixes cleanly with your other sources and doesn’t cause echo or clipping.
What You'll Need
- OBS Studio installed (free from the official website)
- A music source (Spotify, YouTube, local audio files, etc.)
- Computer with working audio output and microphone (if streaming voice)
- Optional: Audio interface or virtual audio cable software for advanced routing
Step-by-Step
- Open OBS Studio and ensure your scene and audio sources (like microphone and desktop audio) are already set up.
- Decide where your music will come from: a local audio file, a web browser playing YouTube or Spotify, or a desktop music player like VLC or Windows Media Player.
- If using a local audio file, go to the Sources box in OBS and click the + button.
- Select Media Source from the menu, then click OK.
- Name the source (e.g., "Background Music") and click OK again.
- In the Media Source settings, check Use file and click Browse to select your music file (MP3, WAV, etc.).
- Check Loop if you want the track to repeat continuously.
- Click OK to save. The audio will now play through OBS when you start streaming or previewing.
- If using a streaming service like Spotify or YouTube in a browser, instead add an Audio Input Capture source. Click the + in Sources, choose Audio Input Capture, and name it (e.g., "Spotify Audio").
- Select the correct audio device—this is usually your system audio or a virtual cable if you’re using one to isolate music.
- Adjust the volume fader for the music source in the Mixer panel to prevent it from overpowering your microphone or game audio.
- Test playback by playing music and monitoring the audio meters in OBS to ensure levels are balanced.
- Use Advanced Audio Properties (right-click the audio meter) to assign the music source to specific tracks if you want to control it separately (e.g., mute music during alerts).
- Ensure music is not copyrighted if you’re streaming publicly. Use royalty-free music or platforms like Spotify (which may block audio in some regions) with caution.
Common Mistakes
- Using desktop audio for music without filtering: If music plays through your system audio and you’re capturing desktop audio, it can create feedback or double audio if not routed properly.
- Overlapping audio sources: Adding both a media source and browser audio without muting one can cause duplicate sounds.
- Ignoring audio levels: Music too loud will drown out your voice; too low and it won’t be heard. Always monitor the dB meter in the mixer.
- Forgetting to loop tracks: Without looping, silence occurs between songs, which can be jarring during a stream.
- Streaming copyrighted music: This can trigger takedowns or mute your stream. Stick to royalty-free libraries or services that allow streaming.
Tips
- Use a virtual audio cable (like VB-Cable on Windows) to send music to a separate audio track in OBS, allowing you to mute it without affecting system sounds.
- Create a dedicated scene for music control—add a blank scene with only your music sources to manage playback without affecting your main stream layout.
- Lower music volume by -10dB to -15dB under your voice level so it remains in the background.
- Use the Sync Offset setting in Media Source if audio lags behind video (rare but possible with slow systems).
- Organize playlists in advance to avoid fumbling during live streams.
Troubleshooting
If music doesn’t play in OBS:
- Check source visibility: Ensure the audio source is not muted in the mixer panel. Click the speaker icon to unmute.
- Verify file path: For media sources, if the file was moved or deleted, OBS won’t play it. Re-browse to the correct location.
- Test audio devices: If using Audio Input Capture, confirm the correct device is selected. Try changing it to another option and back.
- Restart OBS: Sometimes audio devices aren’t recognized until OBS is reopened.
- Update audio drivers: Outdated drivers can cause capture issues, especially with virtual cables.
- Check for software conflicts: Other apps using exclusive audio control (like some games) may block OBS from capturing sound. Disable exclusive mode in Windows Sound settings.
Frequently Asked Questions
Can I use Spotify as a music source in OBS?
Yes, but not directly through the Spotify app due to audio routing restrictions. Play Spotify in a browser tab and use Audio Input Capture to pick up the browser’s audio, or use a virtual audio cable to route the app’s sound to OBS.
Why is my music not showing up in the audio mixer?
The source may be muted, disabled, or not properly added. Right-click in the Sources box to verify it exists and check its settings. Also ensure it’s not hidden under a group or scene collection.
How do I stop music from being picked up by my microphone?
Use headphones. Playing music through speakers can cause echo if your mic picks up the sound. Always monitor audio through headphones during setup.
Can I play music on a separate audio track?
Yes. In OBS, go to Mixer, click the gear icon next to a source, and assign it to a specific audio track. Then control its muting or recording independently.
Does OBS support playlists?
Not natively in a single media source. You’ll need to use a third-party player or loop a folder of files using tools like VLC as a source, or manually queue tracks.
Is it safe to stream copyrighted music on Twitch or YouTube?
No. Most copyrighted music can trigger automated takedowns or muting. Use royalty-free music from sources like Epidemic Sound, StreamBeats, or YouTube Audio Library to avoid issues.