Science Livestream With Continuous Music: Step-by-Step
In this article
This guide walks you through setting up a science livestream that runs a continuous music playlist in the background, so you can focus on experiments and commentary without touching the audio. You'll learn how to route audio from a music app into your streaming software, keep the stream stable, and avoid common pitfalls like copyright strikes or audio dropouts.
What You'll Need
- A computer (Windows, macOS, or Linux) with a decent CPU and at least 8GB RAM
- Streaming software: OBS Studio (free) or Streamlabs Desktop
- A music source: Spotify, YouTube Music, or a local music folder
- An audio interface or a simple USB microphone for your voice
- A webcam or camera for showing experiments (optional but recommended)
- A stable internet connection with at least 5 Mbps upload speed for 1080p streaming
- Broadcast platform account (Twitch, YouTube, or Facebook Live)
Step-by-Step
- Install and configure OBS Studio. Download from obsproject.com and install. Open it – you'll see a blank canvas. Go to Settings > Stream, select your platform (e.g., Twitch), and paste your stream key from your platform's dashboard. Do not share this key with anyone.
- Set up your video sources. In the Sources panel, click the + button. Add a 'Video Capture Device' for your webcam, and a 'Display Capture' or 'Window Capture' for your experiment area. Position and resize them on the canvas. For a science show, you might want the webcam as a small inset and the main screen showing a live camera feed of the experiment or a slide.
- Add a microphone for your voice. In Sources, add 'Audio Input Capture' and select your microphone. Test it by speaking – the audio meter in OBS should move. Adjust the volume slider to around -12 dB to avoid clipping.
- Create a music source. Open your music app (Spotify, etc.) and start playing a playlist. In OBS, add an 'Audio Output Capture' source (Windows) or 'Audio Input Capture' with your system audio (macOS). This captures all system sounds, including music. If you want to capture only the music app, use a virtual audio cable (like VB-Cable) – but for simplicity, capturing system audio works.
- Route audio properly. In OBS, go to the Audio Mixer panel. You'll see your mic and the music source. Click the gear icon next to the music source and select 'Advanced Audio Properties'. Set the music source to 'Monitor and Output' so you hear it and the stream hears it. Set your mic to 'Monitor and Output' too. Make sure the music volume is lower than your voice – a good starting point is 20% music, 80% voice.
- Set up a continuous playlist. In your music app, create a long playlist (at least 2 hours) or enable 'Autoplay' or 'Radio' mode to keep music playing indefinitely. Disable any sleep timers. If using local files, add a folder to the playlist and enable repeat-all.
- Test your audio levels. Play a song and speak. Watch the audio meters – they should not hit red (clipping). Use a compressor filter on your mic: right-click your mic in Audio Mixer > Filters > Add > Compressor. Set threshold to -20 dB, ratio 4:1.
- Add overlays and alerts. For a professional look, add a 'Text' source for your stream title, and a 'Browser Source' for live chat or donation alerts (from Streamlabs or similar). Keep these non-intrusive.
- Check copyright considerations. Playing copyrighted music on a livestream can get your VOD muted or your stream flagged. Use royalty-free music from platforms like YouTube Audio Library, or use a service like Pretzel Rocks designed for streamers. If you must use Spotify, be aware that Twitch and YouTube may mute VODs – it's safer to use royalty-free tracks.
- Go live. Once everything is set, click 'Start Streaming' in OBS. Monitor the stream on your phone or second device to ensure audio and video are working. Keep an eye on the OBS status bar – if it shows 'Dropped Frames', your internet is struggling.
Common Mistakes
- Music too loud. The most common issue – viewers can't hear you. Keep music at 10-20% volume.
- Capturing the wrong audio device. If you use 'Audio Output Capture' and select the wrong device, you get no sound. Double-check the device name.
- Not testing before going live. Always do a 5-minute test stream (set to 'private' or 'unlisted') to check audio and video.
- Playlist ends. If you don't set repeat or autoplay, music stops mid-stream. Set it before going live.
- Ignoring copyright. Using mainstream music can get your stream muted or taken down. Use royalty-free sources.
Tips
- Use a 'Start Stream' script. Create a checklist in OBS (via a plugin or just a text file) to ensure all sources are active.
- Add a 'Be Right Back' scene. If you need to adjust the experiment, switch to a scene with a 'BRB' screen and lower music volume.
- Use a noise gate on your mic. This cuts out background hum when you're not speaking. Add a Noise Suppression filter first, then a Gate.
- Stream at 720p30 if your upload speed is under 10 Mbps – it's more stable and still looks fine for science demos.
- Have a backup playlist. Keep a local folder of royalty-free music as a fallback if your streaming service crashes.
Troubleshooting
- No music sound on stream. Check that the music source is not muted in the Audio Mixer and that 'Monitor and Output' is selected. In OBS, also check Settings > Audio > Global Audio Devices – your desktop audio device should be set to 'Default'.
- Music sounds choppy or stutters. This is often a CPU issue. Close unnecessary apps, lower OBS video settings (e.g., from 1080p to 720p), or use a faster x264 preset (in Settings > Output > Streaming).
- Stream drops frames. Reduce bitrate (Settings > Output > Video Bitrate) from 6000 to 4500 kbps. Also, use a wired Ethernet connection instead of Wi-Fi.
- Voice echo. If viewers hear themselves, you're playing system audio through speakers. Use headphones. Also, in OBS Advanced Audio Properties, set your mic to 'Monitor and Output' but do NOT enable 'Desktop Audio' monitoring.
- Music stops after a few songs. Your music app might have a 'crossfade' or 'gapless' setting that causes issues. Disable those. Also check if the app has a 'pause after song' setting.
Frequently Asked Questions
Can I use Spotify on my stream?
Technically yes, but Spotify's terms prohibit streaming copyrighted music. Twitch and YouTube will likely mute your VOD. For safety, use royalty-free music from YouTube Audio Library or Pretzel Rocks.
Do I need a virtual audio cable?
No, but it helps if you want to control music volume separately from game or system sounds. For a science stream, capturing system audio is usually enough.
How do I keep the playlist going for hours?
Create a playlist with at least 100 songs, or use a service's 'radio' mode. On Spotify, enable 'Autoplay' in settings. For local files, set the player to repeat all.
What's the best bitrate for streaming science content?
For 1080p60, use 6000 kbps. For 720p30, 3500 kbps is fine. If your upload speed is less than 5 Mbps, drop to 720p30.
Can I use a phone as a music source?
Yes, but you'll need to route audio to your PC via Bluetooth or a cable. Bluetooth can add delay, so a wired connection is better. Use a 3.5mm to USB adapter.
How do I prevent music from being too loud?
Set the music volume in OBS to around 10-20% of your mic. Also, add a limiter filter to the music source (Filters > Limiter) with a threshold of -6 dB.