Short answer
- One video: add a Media Source, pick the file and tick Loop. Loop is off by default.
- Several videos: add a VLC Video Source, add the files to its playlist and keep Loop Playlist on. It needs VLC installed. Or join the files into one with ffmpeg and loop that.
- For 24/7: raise Maximum Retries under Settings, Advanced, Automatically Reconnect. With the defaults OBS gives up after 25 tries, roughly three hours by our arithmetic.
- The weak point is the PC: sleep, updates, reboots and power cuts stop the stream, and OBS does not restart itself after a crash.
- No full replay: YouTube says streams over 12 hours "may not be captured at all".
From the OBS knowledge base, the OBS source code and YouTube Help, checked on October 28, 2026. We did not run OBS for this guide.
1. Loop one video with a Media Source
The Media Source is OBS's built-in video player. Per the OBS knowledge base, checked on October 28, 2026, it plays .mp4, .ts, .mov, .flv, .mkv, .avi, .gif and .webm video on Windows, macOS and Linux. The steps:
- In the main window, find the Sources dock at the bottom. The quick start guide says: "Click on the + symbol to add a source of your choice."
- Choose Media Source, give it a name and click OK.
- In the properties window, leave Local File ticked and browse to your video.
- Tick Loop. This is the setting that makes the video repeat.
- Check the other boxes against the table below, then click OK.
| Setting | What OBS says it does | Default | For a 24/7 loop |
|---|---|---|---|
| Loop | "Specifies whether the file play again once playback has completed" | Off | On |
| Restart playback when source becomes active | "Sets the file to restart once the source is in the current scene and visible" | On | On is fine with one scene. Off if you switch scenes and want the video to carry on where it was |
| Use hardware decoding when available | "Sets the GPU to perform hardware decoding on certain file types if your GPU has the appropriate hardware decoder built-in" | Off | Worth trying on to lower CPU load; turn it off again if the picture stutters or shows glitches |
| Show nothing when playback ends | "Useful for video files so they do not show the last frame indefinitely." | On | Does not apply while Loop is on, because playback never ends |
| Close file when inactive | Frees memory when the source is hidden, with a short gap when it shows again | Off | Off |
A loop is only as smooth as the file. If the last frame and the first frame do not match, viewers see a jump every time the video restarts. Cut the video so it ends where it begins, or fade to black at both ends, and make sure the audio does not end with a click. Our guide to making ambient videos covers seamless loops.
2. Loop several videos
A Media Source plays one file. For a playlist there are two ways.
VLC Video Source
The OBS knowledge base describes it as similar to a Media Source, but "you can create a playlist of items". There is a catch first: "It requires that VLC be installed on your system to show up as an available source in OBS Studio." The KB also notes: "If you are using 64-bit OBS, you must install 64-bit VLC." Once VLC is installed:
- Click + in the Sources dock and choose VLC Video Source.
- Add your files to the playlist in the properties window, in the order you want.
- Keep Loop Playlist on. OBS says it "Specifies whether the source should restart when it has run out of media files", and it is on by default.
- Turn on Shuffle Playlist if you want a random order (off by default).
- Leave Visibility Behaviour on its default, "Stop when not visible, restart when visible", unless you switch scenes.
Or join the files into one
If the clips share the same format (same codec, resolution and frame rate, as when they come from the same export preset), ffmpeg can join them into one file without re-encoding. Then loop that one file with a Media Source. List the files in a text file called list.txt:
file 'clip1.mp4'
file 'clip2.mp4'
Then run:
ffmpeg -f concat -safe 0 -i list.txt -c copy playlist.mp4
We tested this on our server on October 28, 2026 with ffmpeg 7.0.2: two 4-second 720p H.264 clips with AAC audio became one 8-second file with both streams copied. If your clips come from different sources, the copy will not join them cleanly; re-export them with the same settings first.
3. Set up the scene and start the stream
A 24/7 loop needs very little in OBS:
- One scene with the Media Source or VLC Video Source, resized to fill the canvas. Right-click the source and use Transform to fit it to the screen if it does not.
- Overlays, if you want them, on top: a text source with the channel name, an image with a logo. Each extra source is more work for the computer every second it is live.
- Audio: check in the audio mixer that the video's sound is there and not muted, and mute the microphone and desktop audio so nothing from the room or the PC leaks into the stream.
- Stream settings: the service, the stream key and the output settings. We do not repeat them here; Loopcast has guides to finding your YouTube stream key and YouTube encoder settings for a 24/7 loop.
Before you leave it, watch the stream on YouTube through at least one full pass of the loop, including the moment it restarts. If you wonder whether a looped video is allowed as a live stream at all, Loopcast answers whether looping a pre-recorded video is allowed on YouTube.
4. Turn up automatic reconnect
When the connection to YouTube drops, OBS can try again on its own. The setting is in Settings, Advanced, under Automatically Reconnect, with two values: Retry Delay and Maximum Retries. The OBS wiki lists "Configure Automatic Reconnect" among the few Advanced settings useful to new streamers, and warns about the rest: "Do not touch anything else in Advanced unless you absolutely know what you're doing."
The knowledge base does not list the defaults, so we read them in the OBS source code on GitHub on October 28, 2026:
| Setting | Default | Range in the settings window |
|---|---|---|
| Automatically Reconnect | On | On or off |
| Retry Delay | 2 seconds | 1 to 30 seconds |
| Maximum Retries | 25 | 1 to 10,000 |
The delay is only the first wait. In the source, each failed attempt multiplies the wait by about 1.5, up to a cap of 15 minutes between attempts. With the defaults, that adds up to roughly three hours of trying before OBS stops for good. An internet outage that lasts the night ends the stream, and it stays off until you press Start Streaming again. For a 24/7 loop, set Maximum Retries to the top of its range; at 15 minutes a try, 10,000 tries is far longer than any outage.
Reconnect only covers the connection. If OBS itself crashes or closes, nothing in OBS brings it back.
5. What breaks on a 24/7 run from a home PC
OBS can loop a video forever. The things around it are what stop the stream:
- Sleep. A PC that goes to sleep stops streaming. Set the power plan so the computer never sleeps; turning the screen off is fine.
- Updates and reboots. Windows restarts to install updates, and after a restart OBS is not running. Set your active hours and check for pending restarts, and plan a weekly look at the PC.
- Starting again after a reboot or power cut. OBS has a launch parameter for this. The OBS knowledge base lists
--startstreaming, "Automatically start streaming.", and--scene "name", "Start with given scene." Add them to an OBS shortcut, put the shortcut in your startup folder, and set the PC to log in on its own; then the loop comes back after a restart. Set the BIOS to power on after a power loss as well. - Long internet outages. Past the reconnect limit above, the stream ends. A cable to the router is steadier than Wi-Fi.
- Your upload, all day. The stream uses your upload around the clock, so video calls and backups at home compete with it. Check your internet plan for a data cap.
- Power, heat and noise. As an example of the arithmetic: a computer that draws 100 W uses 2.4 kWh a day, which at $0.20 per kWh is $0.48 a day, or about $14.40 over 30 days. A gaming desktop under load can draw several times that; a plug-in power meter tells you your real figure.
- The PC is busy. Gaming or editing on the same machine while it streams can drop frames from the stream.
And one YouTube rule applies however you stream: "If your stream exceeds 12 hours, it may not be captured at all." YouTube's advice is "We recommend recording a local archive as a backup." A 24/7 stream will not leave a full recording on the channel. Our guide to live stream time limits explains the rule.
6. OBS on your PC or a hosted loop
OBS is free, works with any platform that takes a stream key, and lets you build any scene you like, with overlays, a webcam or a live chat box. A hosted loop service does one thing: it streams a video file you upload, on repeat, from a datacenter. Here is how they compare for a looped video that should run for weeks.
| Compared | OBS Studio on your PC | Hosted loop (Loopcast) |
|---|---|---|
| Software cost | Free | $0.72 per 24 hours, prepaid minute packs from $5 that never expire, first week free |
| Running cost | Your electricity (see the example above) and your upload | Included in the price |
| What has to stay on | Your PC, OBS and your internet connection | Nothing on your side |
| After a dropped connection | Retries up to Maximum Retries, then stops | Relaunched automatically |
| After a crash, update or power cut | Off until OBS starts again, by you or a startup shortcut | Not affected by your PC |
| What it can show | Anything: scenes, overlays, webcam, several sources | One video file per schedule block, no live sources |
| Platforms | Any service with a stream key | YouTube, Kick and Steam only, not Twitch |
| Files | Any file OBS or VLC plays | A video file up to 4 GB; audio-only files are not accepted |
Our view: if your PC is on all day anyway and you want overlays or live parts, OBS is the right tool and costs nothing. If the stream is a plain video loop and the PC would stay on only for the stream, a hosted loop removes every item in section 5 except the YouTube archive rule.
Before you leave it running
- The source has Loop (Media Source) or Loop Playlist (VLC Video Source) on.
- The video loops cleanly: watch the restart on the live stream at least once.
- Microphone and desktop audio are muted; only the video's sound goes out.
- Maximum Retries under Automatically Reconnect is raised well above 25.
- The PC never sleeps, and OBS starts streaming on its own after a restart.
- You know your upload speed, data cap and roughly what the PC costs to run each day.
- You keep the video file and any highlights yourself, because a 24/7 stream has no full replay.
FAQ
How do I loop a video in OBS?
Add a Media Source from the + button in the Sources dock, choose your file and tick Loop. Loop is off by default, so without the tick the video plays once and stops.
How do I loop several videos in OBS?
Use a VLC Video Source, add the files to its playlist and keep Loop Playlist on. VLC has to be installed, and 64-bit OBS needs 64-bit VLC. Or join the clips into one file with ffmpeg and loop that with a Media Source.
Why does my looped video stop or show a black screen?
Check that Loop is ticked; with it off, "Show nothing when playback ends" hides the source when the file finishes. If the stream itself stopped, OBS may have used up its Maximum Retries after a connection drop, or the PC slept or restarted.
Can OBS stream 24/7?
Yes, as long as the computer, OBS and the connection stay up. Raise Maximum Retries, stop the PC from sleeping and use the --startstreaming launch parameter so it comes back after a restart. OBS does not restart itself after a crash.
Does a 24/7 OBS stream leave a recording on YouTube?
Not in full. YouTube says streams over 12 hours "may not be captured at all", so keep your own copies.
Sources
- OBS knowledge base: Media Source and VLC Video Source, quick start guide, launch parameters. Checked on October 28, 2026.
- OBS wiki: OBS Studio overview. Checked on October 28, 2026.
- OBS Studio source code on GitHub: settings window (reconnect ranges), defaults and reconnect timing. Checked on October 28, 2026.
- YouTube Help: archive live streams. Checked on October 28, 2026.
- ffmpeg concat command tested on our server (ffmpeg 7.0.2) on October 28, 2026 with two generated test clips. OBS and VLC were not run for this guide.
- Loopcast: YouTube page and pricing. Checked on October 28, 2026.