For one repeating classroom video, use an OBS Media Source and enable Loop. For several files, use VLC Video and enable Loop Playlist; it also requires VLC to be installed.
Those controls repeat media, not the broadcast itself. A 24/7 stream still depends on the computer, power, network, OBS and YouTube, so plan a supervised test, monitoring and recovery before treating it as an always-on channel.
Prepare classroom media and confirm your rights
Start with the files you intend to show, not the OBS scene. Check that the lesson, slides, music, illustrations and any recorded voices are yours to use in a public live stream. A file being available online or included in a course does not by itself establish permission to rebroadcast it. If a school, teacher or publisher supplied the material, confirm the permitted audience and distribution before putting it on a public channel.
Prepare the media locally on the computer that will run OBS. OBS Media Source supports common video formats such as MP4, TS, MOV, FLV, MKV, AVI, GIF and WebM, and audio formats including MP3, AAC, OGG and WAV. See the OBS Media Sources guide for the current supported formats and source controls. Test your chosen file before building a long-running scene around it. A file that opens in a desktop player is not necessarily proof that its audio, aspect ratio or timing will behave as expected in OBS.
Give files clear names and keep the intended playback order explicit. For example, a single mathematics lesson could be fractions-introduction.mp4; a revision loop could use numbered filenames such as 01-welcome.mp4, 02-topic-a.mp4 and 03-practice.mp4. Naming will not change playback, but it makes it easier to spot the wrong lesson in a playlist and to restore the intended order after an edit.
Check duration and transitions as well as content. Does the clip finish with a silent pause, a black frame or a spoken sign-off that sounds awkward when it repeats? If the clip is intended for a classroom audience joining at any time, does its opening explain what the session is? Watch at least one complete playback locally, including its end and return to the beginning. That catches issues that a quick scrub through the timeline will miss.
Also decide whether the material should be live only or available as a replay. That is a separate publishing decision from looping a source. If you want to change lesson material during a broadcast, the guide to changing a video playlist without interrupting a YouTube live stream may help you think through the change process, but make the permissions and audience expectations clear first.
Choose Media Source or VLC Video
The source choice is straightforward: Media Source is for one local clip; VLC Video is for a playlist of files. Do not install VLC just to loop a single video. Use the source that matches how you have prepared the lesson content.
| Need | OBS source | Relevant control | Dependency or behaviour to consider |
|---|---|---|---|
| Repeat one local video | Media Source | Loop | No VLC playlist is needed; review the source's hide and restart settings |
| Play several local videos in sequence | VLC Video | Loop Playlist | VLC must be installed; playlist order and shuffle are separate choices |
| Alternate between scenes | Either, depending on content | Visibility and restart settings | A hidden source may stop, restart or reload when shown again |
To add a single clip, create or select a scene, add a Media Source, choose the local file, and set the source properties. OBS's Sources Guide explains how scenes and sources fit together: scenes hold the arrangement, while sources provide the media and other elements within it. A classroom layout might place the lesson video full-screen, or combine it with a name label or a static timetable. Keep the first test simple so you can isolate playback problems before adding extra layers.
For a playlist, add a VLC Video source and build its playlist from the local files. OBS documents that VLC must be installed for VLC Video to appear; if you run 64-bit OBS, install 64-bit VLC. This is a dependency of the playlist source, not a requirement for Media Source. If VLC Video is missing, check the installation and matching bitness before rebuilding the scene.
The two sources do not have identical scene-switch behaviour. A Media Source has controls such as Restart playback when source becomes active, Show nothing when playback ends and Close file when inactive. These change what happens when a source is hidden, shown again or reaches the end. For instance, if a lesson source is hidden while you display a break slide, activating it again can restart the lesson if the restart option is enabled. Closing the file while inactive can save resources, but the source may need a moment to reopen when shown.
For VLC Video, OBS documents stop-when-hidden and restart-when-visible as the default visibility behaviour. If you plan to switch away from the playlist and back, test that exact sequence. A channel that stays on one scene has fewer scene-transition questions than a production that alternates between lesson, break and announcement scenes. There is no benefit in assuming the sources behave the same way just because both can play video.
Set looping and test playback
For a single clip, open the Media Source properties and enable Loop. Start playback, watch it reach the end, and confirm it returns to the beginning with the picture and sound in step. If the clip is long, do a separate short test using a copy or a brief sample rather than waiting for a full lesson each time you adjust a setting. Then make one end-to-end test with the final file.
For multiple files, enable Loop Playlist on VLC Video. The playlist should proceed through the selected files and start again after the last one. Choose shuffle deliberately: if a particular lesson order matters, leave shuffle off and inspect the order shown in the source. If the order is not important, shuffle may suit a library of independent review clips, but confirm that every item is suitable to follow every other item. A random sequence can create a confusing classroom if the clips depend on one another.
Looping concerns playback of the source, not a promise that the scene will remain visible or the stream will remain live. A hidden source may stop according to its visibility settings. A computer can sleep, OBS can close or fail, the network can drop, or YouTube ingest can become unavailable. The guide to repeating a video in OBS without restarting the YouTube stream addresses the distinction between media repetition and restarting a broadcast; use it alongside a test of your own scene behaviour.
Check whether the picture and sound are acceptable at the point viewers will encounter them. Listen for clipped speech, a soundtrack that becomes too loud, or silence that could look like a fault. Inspect the video framing for cut-off text, unreadable slides and unintended black borders. A classroom feed can be technically live while still being difficult to follow, so review the preview at the size and layout students are likely to use.
If you have more than one scene, test every path you expect to take: lesson to break, break back to lesson, and any announcement scene. Observe whether the source resumes where you expect, restarts at the beginning, or takes a moment to reload. Decide whether that is acceptable for the teaching plan. Record your chosen settings in a small run sheet so someone else can reproduce the behaviour if the scene needs to be rebuilt.
Create an encoder stream in YouTube Studio
Before connecting OBS, confirm that the channel can livestream and create the event in YouTube Studio. YouTube's live streaming eligibility guidance says the channel must be verified and must not have live-streaming restrictions in the preceding 90 days; the guidance also states a minimum age of 16 to livestream. These are YouTube requirements, not OBS settings, and policies can change. Check YouTube's current page if a channel is new or has had a restriction.
In YouTube Studio, open the live streaming workflow and choose an encoder stream. Set the title, audience details, visibility and other event details for the classroom. If the stream should be private or unlisted for a limited group, choose the appropriate visibility and test access with the intended viewers. Do not assume that a successful OBS connection means the right audience can see the event.
An encoder stream is the YouTube destination that OBS sends video and audio to. YouTube's encoder setup instructions explain the stream setup flow and where to find the encoder information. Review the event details in Studio before copying anything into OBS. A classroom operator may prepare the event in advance, but should still verify that the chosen event is the one intended for the current lesson.
YouTube identifies the stream key as password-like information. Keep it out of screenshots, public documents, chat messages and shared classroom slides. Give access only to people who need to operate the stream. If you think the key has been exposed, reset it in YouTube Studio and update OBS with the replacement. Treat the stream URL and key as connection credentials, not as ordinary production notes.
Connect OBS using the stream URL and key
In OBS, open the stream settings and select YouTube or the appropriate custom service workflow. Depending on the choice, OBS may offer an account connection or fields for a server/stream URL and stream key. To follow the encoder route, copy the URL and key from the YouTube event into the corresponding OBS fields, then save the settings. YouTube's stream settings help covers stream settings in Studio; use the current interface rather than relying on an old screenshot because labels and workflows can change.
Copy carefully. A missing character, extra space or key from a different event can stop the encoder from reaching the intended stream. Keep the key private while doing this; if a helper is entering it, avoid leaving the settings window visible during a screen share. Once entered, the operator should not need to repeat the key for every playback loop, but should confirm the correct event and connection before going live.
Choose the output settings with the available connection in mind. YouTube's streaming tips recommend having available upload bandwidth above the stream bitrate, with headroom, and advise testing before the event. Avoid treating the headline speed from an internet package as guaranteed upload capacity at the time of class. Other people and devices on the same connection can affect the bandwidth available to the streaming computer.
A wired Ethernet connection is worth considering for a fixed classroom computer if it is practical. It can reduce reliance on a variable wireless link, but it does not ensure uninterrupted service: the router, provider, power and YouTube ingest still matter. If the available connection is shared, test during a period resembling the actual class rather than only when nobody else is using it.
Preview and launch the classroom feed
Start OBS streaming only when the event and scene are ready, then check YouTube Studio's preview before making the broadcast public. YouTube advises checking the event and monitoring audio and video. Confirm the correct lesson is visible, the microphone or clip audio is present at a sensible level, and the event has the intended visibility. If students cannot hear the narration clearly, a moving live indicator is not a reason to proceed.
Use a practical preflight rather than relying on memory. Confirm that the correct media file or playlist is loaded, loop behaviour has been tested, the intended scene is active, OBS is connected to the correct YouTube event, and the preview looks and sounds right. Check that the computer is on power and configured not to sleep during the session. If someone else will monitor the stream, make sure they know which event to inspect and whom to contact if playback or connection fails.
YouTube warns that connectivity disruptions can break a stream. The YouTube streaming tips are useful for checking connection and monitoring practices, but a test cannot guarantee future network conditions. Test before the first public run, and repeat the test after changing the encoder settings, network or media source. If the classroom is time-sensitive, start early enough to resolve a problem without asking viewers to wait through repeated trial-and-error.
For a scheduled class, an operator can watch the YouTube preview and classroom view while another person checks the physical setup or handles learner questions. For a small channel run by one person, at least keep a device or view available for checking the live result after launch. Do not assume that the OBS preview is identical to what has reached YouTube; check the platform preview as well.
Plan monitoring, recovery and replay
A 24/7 classroom channel needs an operating plan beyond a looping source. OBS loop settings do not keep the computer powered, prevent an application crash, repair a network failure or guarantee YouTube availability. Decide who will notice a frozen picture or missing audio, how they will reach the streaming computer, and what they will do if OBS needs to be restarted. A workable plan is better than an untested assumption that the system will recover unattended.
If you are running OBS on your own machine, include ordinary operating risks in the plan: power interruptions, operating-system updates, accidental window closures, network maintenance and someone needing the computer for another task. Choose a time for updates and tests when a disruption is acceptable. Keep a copy of the scene and source settings, and retain the original media files in a known location so recovery does not depend on reconstructing the playlist from memory.
Operators who do not want a classroom broadcast to depend on a local computer being left on may prefer an approach where the uploaded video runs as a cloud-hosted broadcast. StreamNeo is relevant to that specific operational pain: it runs an uploaded video as a YouTube live stream without requiring your computer to remain on, while still leaving channel access and the broadcast plan in your hands. It is YouTube-only, so it is not a solution for sending the same feed to other platforms.
A live loop is also not the same thing as a recording. If students need to revisit a lesson, decide how the replay will be made available and test that workflow separately from the live broadcast. YouTube's encoder guidance says streams under 12 hours are automatically archived. That statement does not establish that one uninterrupted 24/7 stream will be saved as a single complete replay. For a long-running stream, check the current YouTube guidance and test the exact workflow you need rather than promising students a full archive.
If replay is important, consider whether separate scheduled lessons or recordings are more manageable than one continuous event. Make clear to learners whether a replay will exist, where it will be available and for how long; do not base that promise only on the fact that the live stream has been running. For a channel that changes content through the day, the guide to making a 24/7 YouTube stream easier to find by topic and language is relevant to organising the channel for viewers, but a clear title or description does not create an archive.
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
How do I loop one video in OBS?
Add the file as a Media Source, open its properties and enable Loop. Test the end and restart, including audio, before using it in a long-running scene. The setting repeats that source; it does not guarantee that OBS or the live broadcast stays connected.
How do I loop a playlist in OBS?
Use VLC Video, add the files to its playlist and enable Loop Playlist. VLC must be installed, and OBS recommends matching VLC's bitness to OBS; for 64-bit OBS, install 64-bit VLC. Check playlist order and shuffle behaviour before you take the scene live.
Does OBS keep a YouTube classroom stream running all day?
OBS can repeat media, but looping does not guarantee uninterrupted streaming. The computer, power, connection, OBS process and YouTube ingest all affect whether the broadcast continues, so arrange monitoring and a recovery plan.
Will YouTube save a complete replay of a 24/7 stream?
Do not assume that it will. YouTube's encoder guidance confirms automatic archiving for streams under 12 hours, but does not establish a complete archive for one continuous 24/7 stream. Check current guidance and test the specific replay workflow before telling learners to rely on it.