To loop a lecture video in OBS without restarting your YouTube live stream, enable Loop on a Media Source for one file, or Loop Playlist on a VLC Video source for several files. Keep OBS’s encoder output streaming; the playback source repeats while the YouTube live event remains separate and active.
A loop setting controls what OBS plays, not whether the broadcast is sent to YouTube. That distinction matters at the file boundary: let the source reach its end and repeat, but do not stop streaming in OBS or use YouTube’s End Stream control just to replay the lecture. This avoids deliberately ending the event, though it does not guarantee a seamless picture, sound transition or uninterrupted network connection.
Choose one lecture file or a playlist
Start with the number of files and the order you need. For one local lecture that should repeat from the beginning, use OBS’s Media Source. For a set of lectures that should play in sequence and then return to the start, use VLC Video, which provides a playlist and a separate loop setting.
| What you need | OBS source | Setting to use | Practical consideration |
|---|---|---|---|
| Repeat one local lecture | Media Source | Loop | Check what happens when the source is hidden and shown again. |
| Repeat several files in a fixed order | VLC Video | Loop Playlist | VLC must be installed, and shuffle should be off. |
Neither choice is inherently the right one for every channel. A single Media Source is straightforward if your lecture is one file. If your teaching schedule has separate files—say, an introduction, lesson and recap—a playlist gives OBS the sequence in one source. Decide whether the order must be fixed before you configure playback. OBS’s Media Sources documentation describes these source types and their playback properties.
The source is part of an OBS scene, alongside any other elements in the output, such as a title card or camera. If you want to make or revise a multi-file programme, it may help to compare the OBS Playlist Source and VLC Source approaches. Choose the source for the workflow you can prepare and check, not because one is promised to be more reliable.
Add an OBS Media Source and enable Loop
For one file, select the scene that will carry the lecture. In the Sources panel, add a Media Source, give it a useful name, and select the local video file in its properties. Enable Loop, then confirm the source is visible in the scene and that its image and audio are what you expect.
OBS source names and controls can vary slightly by version, but the documented property is labelled Loop. It instructs the Media Source to repeat playback when the file reaches its end. It does not send a command to YouTube to start or end a live event. Keep that distinction in mind when you inspect the OBS preview or Live Control Room later.
Also notice Restart playback when source becomes active. OBS describes this as restarting the file when the source becomes visible in the current scene. It is different from Loop: the latter repeats at the file boundary, while the former can affect playback when you switch scenes or reveal a hidden source. If your lecture should continue from its current position across scene changes, check this property and test the intended behaviour rather than assuming a hidden source keeps playing.
Use a short test before relying on the configuration for a long session. Watch the source near its end, confirm it starts again, and check that audio is still present. Playback can repeat correctly even if a separate scene or source setting causes an unexpected change when the lecture is hidden.
Use VLC Video for multiple files
For multiple local lectures, add a VLC Video source to the scene. In its properties, add the files to the playlist in the order you want them played. Enable Loop Playlist if the complete sequence should repeat, and leave Shuffle Playlist off when the order matters.
Check the list before going live. A playlist can only follow the sequence you gave it; it cannot make a mistaken order correct. If the lesson should always start with an opening explanation and finish with a recap, put those files in that order and test the transition from the last item back to the first. OBS documents the VLC playlist controls in its Media Sources guide.
The source’s Visibility Behaviour can matter when you change scenes. OBS documents a default behaviour that stops playback when the source is not visible and starts it again when it becomes visible. If you need the lecture to continue while another scene is shown, choose a continue-playing behaviour available in your installed version and verify what it does in a test. That is a playback decision, independent of whether OBS is still sending an encoder feed to YouTube.
Prepare the playlist before the live session where possible. The documentation does not establish that editing a playlist during playback preserves its current position across versions and configurations. If you need to add or remove a lecture while live, test that exact edit procedure in advance. For a different kind of recurring content, the workflow for adding podcast episodes to an always-on stream can help you think through how to prepare and update source material without confusing content changes with event controls.
Install matching VLC architecture
If VLC Video is missing from the source menu, first check whether VLC is installed. OBS states that VLC must be installed for the VLC source to be available. It also documents an architecture match: 64-bit OBS requires 64-bit VLC. Installing a version with a mismatched architecture can leave you without the source you expect.
Check which OBS build you use, then install the corresponding VLC architecture from the vendor’s own distribution. Restart OBS after installation and look for VLC Video in the source list. If it is still unavailable, recheck the architecture and installation before rebuilding the scene around a different source.
This dependency applies to the playlist workflow, not to a single-file Media Source. If the only job is to repeat one lecture, you can use Media Source without setting up a VLC playlist. If you need a sequence and do not want to install VLC, compare the available source choices and their requirements before settling on a workflow; do not assume that a source absent from your current menu is a YouTube problem.
Connect OBS to YouTube Live
Use the stream URL and stream key associated with the YouTube event you intend to broadcast. In OBS, configure the service and connection details in the streaming settings, then start the OBS stream when the scene and source are ready. YouTube describes the encoder connection and stream key process in its guide to creating a live stream with an encoder.
A stream key tells the encoder where to send its video feed so YouTube can accept it. Treat it as a credential: use the key for the intended event and do not include it in screenshots or share it publicly. If you are setting up a scheduled stream, verify that the OBS connection corresponds to the event shown in Live Control Room before you begin.
YouTube has event controls of its own, separate from OBS’s media properties. A scheduled event may have controls in Live Control Room, while OBS has controls for its encoder output. The details of the workflow can depend on the event type and settings, so check YouTube’s current official instructions for the stream you are running. Do not mistake the start of a new lecture file for a reason to create a new event.
Before a real session, check that OBS shows the intended scene and that YouTube’s preview receives the feed. YouTube recommends checking the preview and monitoring audio and video quality; its live streaming tips are a useful reference. A successful source loop alone does not confirm that the encoder feed is reaching the correct event.
Keep encoder output running at the loop boundary
At the end of the lecture, OBS reaches the end of the media file and begins playback again because you enabled the source’s loop setting. For a playlist, the last item gives way to the first when Loop Playlist is enabled. During that change, keep OBS’s encoder output active so its feed continues to be sent to YouTube.
The practical sequence is simple: leave the scene and source running, let OBS handle the repeat, and check the preview around the transition. Do not press Stop Streaming in OBS or End Stream in Live Control Room merely because the file has finished. YouTube’s encoder guidance describes ending a stream as stopping the content sent from the encoder; its scheduled-stream instructions also document an End Stream action. These are event or feed controls, not media playback controls.
This separation explains how a repeat can happen without deliberately restarting the YouTube live stream. OBS can keep supplying a live encoder feed while the media inside that feed changes from the end of one playback pass to the beginning of another. Whether viewers experience a pause, a brief audio gap or an abrupt visual transition depends on the files and playback behaviour; do not promise a seamless join without checking your own output.
If the encoder feed itself is what tends to fail during unattended sessions, a looping setting does not address that separate operational risk. Review your connection and output settings, and use the OBS bitrate checklist for YouTube Live as a separate configuration reference. StreamNeo removes the need to leave your own computer running for a file-based 24/7 YouTube broadcast, but it does not change the need to prepare the file and verify the channel’s output.
Distinguish playback looping from ending the stream
There are two different layers to keep straight. The OBS source controls whether a local file or playlist repeats inside the scene. The encoder and YouTube event controls determine whether a feed is being sent and whether the live event has been ended. A source reaching its last frame is not, by itself, an instruction to end the event.
| Action | What it controls | Use it to repeat a lecture? |
|---|---|---|
| Enable Loop on Media Source | Repeats one media file in OBS | Yes, for one file. |
| Enable Loop Playlist on VLC Video | Repeats a playlist in OBS | Yes, for a sequence. |
| Stop OBS streaming | Stops the encoder output | No. Keep output active for the repeat. |
| Select End Stream in YouTube Live Control Room | Ends the live event | No. Do not use it just to replay media. |
If YouTube appears to show a new live session after a transition, investigate the encoder and event status rather than changing the loop setting at random. Check whether the feed was stopped in OBS or the event was ended in Live Control Room. The OBS loop property governs playback; it is not evidence that the network connection stayed healthy or that YouTube will show the same status in every case.
Likewise, an unexpected playback restart after a scene change does not necessarily mean the broadcast restarted. Review Restart playback when source becomes active for Media Source, or Visibility Behaviour for VLC Video. The source can stop, resume or start over while the encoder remains active, depending on its settings and the scene workflow.
Check the preview and troubleshoot
Before using the setup for a long lecture, check a complete pass and the boundary where it repeats. Confirm that OBS shows the right file, the intended order, picture and audio, and that the YouTube preview receives the output. YouTube advises monitoring stream quality, but a preview check is a point-in-time check, not a guarantee of uninterrupted delivery later.
If the file begins again when you switch scenes, inspect the source’s activation or visibility settings. For a Media Source, check Restart playback when source becomes active. For VLC Video, check Visibility Behaviour and whether the source is set to continue when hidden. Test the scene switch separately from the file loop so you can identify which action caused the playback change.
If a playlist repeats in an unexpected order, check the order of the files and make sure Shuffle Playlist is off. If VLC Video is missing, install VLC and verify that its architecture matches OBS. If the source loops but the YouTube preview freezes or disappears, check the encoder output and event status; do not assume the media loop controls the network feed.
If you need to change a playlist during a live broadcast, be cautious about the result. The documented OBS guidance does not guarantee that a live edit preserves playback position in every version and setup. Prepare the files in advance or rehearse the same change in a test session, then confirm the output in both OBS and YouTube before relying on it with viewers present.
Before committing, compare the operating options on the pricing page. When the file and channel are ready, start free — 24-hour trial, no card.
FAQ
Will enabling Loop restart my YouTube live stream?
No. Loop tells an OBS Media Source to repeat its file; it does not end and restart the YouTube event. Keep OBS streaming output active, and avoid the stream-ending controls when the goal is simply to repeat the lecture.
Which OBS source should I use for several lectures?
Use VLC Video, add the files to its playlist, enable Loop Playlist, and leave shuffle off if the order matters. VLC must be installed, and OBS and VLC need matching architecture. Test the playlist and its scene visibility behaviour before going live.
Why does the lecture start over when I change scenes?
That can be caused by source activation or visibility settings, not by the YouTube stream ending. Check Restart playback when source becomes active for Media Source, or Visibility Behaviour for VLC Video, then test the scene switch separately.
Does looping guarantee a seamless repeat for viewers?
No. The source can repeat while the encoder remains active, but the transition may still have a pause, audio gap or abrupt cut. Check the actual preview and listen at the file boundary before using the setup for a real session.