How to Loop a Playlist on OBS for a 24/7 Stream
In this article
Running a 24/7 lecture stream means your playlist needs to repeat endlessly without manual intervention. This guide shows you how to set up OBS Studio so your playlist loops continuously, keeping your stream alive around the clock. You'll need OBS Studio installed and your lecture videos or audio files already organized in a folder.
What You'll Need
- OBS Studio (free, available for Windows, macOS, and Linux)
- A folder containing all your lecture videos or audio files (in a format OBS can read, like MP4, MKV, MP3, or WAV)
- Basic familiarity with OBS scenes and sources
Step-by-Step
- Open OBS Studio and create a new scene (or use an existing one) by clicking the “+” under the Scenes panel. Name it something like “Lecture Loop.”
- Add a Media Source: Click the “+” under the Sources panel, select “Media Source,” and name it (e.g., “Playlist”). Click OK.
- Configure the Media Source: In the properties window, check “Local File,” then click “Browse” to select your first video file. Leave “Loop” unchecked for now—we'll handle looping separately.
- Enable Playlist Mode: Check the box labeled “Use Media Playlist.” This turns the media source into a playlist manager.
- Add All Files: Click the “+” under the playlist list to add each file individually. You can also select multiple files by holding Ctrl (or Cmd on Mac) while clicking, then click “Open.” Repeat until all your lecture files are in the list.
- Set Playback Behavior: In the same properties, ensure “Loop Playlist” is checked. This is the critical setting that makes the playlist repeat continuously.
- Adjust Other Settings: Set “Restart playback when source becomes active” if you want the playlist to start over when the scene becomes active. For a 24/7 stream, you might want “Playback starts when source becomes active” enabled.
- Click OK to save the media source settings.
- Test the Playback: Click the “Preview Stream” button (or just watch the preview) to confirm the playlist starts playing. Let it run through a few files to ensure it loops correctly.
- Start Streaming: When you're ready, click “Start Streaming.” The playlist will now repeat indefinitely until you stop it.
Common Mistakes
- Forgetting to check “Loop Playlist”: This is the most common oversight. Without it, the playlist plays once and stops.
- Not using playlist mode: Some users add multiple media sources instead of one playlist. This causes gaps and requires manual switching.
- File format issues: OBS may not support certain codecs. If a file fails to play, convert it to a common format like MP4 (H.264) or MP3.
- Leaving “Loop” unchecked on individual files: If you check “Loop” on a single file, it will repeat that file only, not the whole playlist.
Tips
- Use a dedicated scene: Keep your looping playlist in its own scene so you can switch away and back without disrupting playback.
- Add a “Now Playing” overlay: Use a text source with a script to display the current file name—this helps viewers know what's playing.
- Pre-encode files: For smooth playback, ensure your videos are encoded with H.264 and AAC audio, which OBS handles well.
- Monitor resource usage: Long streams can heat up your CPU. Check OBS's stats (View → Stats) to ensure you're not dropping frames.
- Set a fallback scene: If a file fails, OBS may show a black screen. Create a “Be Right Back” scene and use a hotkey to switch if needed.
Troubleshooting
Playlist stops after one file: Check that “Loop Playlist” is enabled in the media source properties. Also, verify that no individual file has “Loop” checked, as that overrides the playlist loop.
Files don't play at all: Test each file in a regular media player. If a file is corrupted or unsupported, OBS will skip it. Convert the file to a standard format and add it again.
Audio/video out of sync: This often happens with variable frame rate videos. Re-encode the file with constant frame rate (CFR) using a tool like HandBrake.
Stream drops after a few hours: Check your internet connection and OBS's bitrate settings. Lower the bitrate if you're experiencing drops. Also, ensure your PC doesn't go to sleep—disable power saving in your OS.
Playlist won't advance: If the playlist seems stuck, click “Refresh” in the media source properties, or restart the media source by toggling the eye icon next to it.
Frequently Asked Questions
Can I use a playlist of audio files only? Yes, just add audio files (MP3, WAV, etc.) to the playlist. OBS will play them as audio-only, so you may want to add a static image or a slideshow as a visual.
Will the playlist loop with gaps between files? By default, there might be a brief pause between files. To minimize gaps, ensure all files are in the same format and consider using a media source with “Loop Playlist” enabled; OBS typically transitions smoothly.
Can I change the playlist while streaming? Yes, you can edit the playlist in the media source properties while streaming. Changes take effect immediately, but it's safer to make changes during a scene switch to avoid glitches.
Does OBS remember the playlist after restart? Yes, OBS saves the media source settings, including the playlist, in your scene collection. When you reopen OBS, the playlist will still be there.
What if I want to shuffle the playlist? OBS doesn't have a native shuffle option for playlists. You can manually randomize the order of files in the playlist, or use a script (like a Lua script) to achieve random playback.
Can I run a 24/7 stream without a powerful PC? Yes, if you're just streaming pre-recorded content, the CPU load is low. However, ensure your PC has enough RAM and a stable internet connection. You can also use a dedicated streaming PC or a VPS for reliability.