To stream prerecorded lectures continuously with OBS, loop a local lecture file or playlist, then match the output settings to the source and the upload connection you can sustain. A practical starting point for a lecture with slides and speech is 1080p at 30 fps, H.264, CBR, 14 Mbps video, a two-second keyframe interval and stereo AAC audio at 128 kbps and 44.1 kHz.
Those figures are a starting configuration, not a universal optimum or a promise of uninterrupted streaming. Test with the actual lectures and watch YouTube’s stream health indicators; lower the output bitrate or resolution if your connection or computer cannot sustain the chosen settings.
Choose one lecture or a playlist
Start by deciding whether the live channel should repeat a single lecture or move through a sequence. The playback method depends on that choice, and it is easier to test the schedule before adjusting video quality or encoder settings.
For one local file, add an OBS Media Source, select the lecture and enable Loop. OBS documents support for common formats including MP4, MOV, MKV, AVI and WebM. If the file has an opening slate, a long pause, or an ending that cuts abruptly back to the beginning, watch the transition. A loop repeats the file; it does not edit out unwanted material or make the ending feel seamless.
For a sequence of files, use the OBS VLC Video source and build its playlist there. Turn on Loop Playlist if you want the list to repeat. VLC must be installed for the source to be available, and OBS notes that 64-bit OBS needs 64-bit VLC. Check that each file plays and that the order is right before leaving the channel unattended.
A playlist is not the same as a schedule. It cycles through the items you have arranged; it does not, by itself, choose a different list for each time of day. If you need planned daytime and nighttime rotations, first settle the schedule as a separate workflow. The question of whether OBS can play different prerecorded videos on a schedule is useful to consider before building a more complex scene collection.
OBS can also be used for live production rather than a hands-off file loop. For lectures that must run continuously, keep the playback path as simple as possible: one media source for one file, or one playlist source for a sequence, with no scene changes you do not need.
Enable the right OBS loop control
In OBS, add the source to the scene that will be live. With Media Source, browse to the file and switch on Loop. With VLC Video, add the files to the playlist, arrange their order and select Loop Playlist. These controls are distinct: enabling a loop on an individual file is not a substitute for enabling the playlist loop when the intention is to repeat a series.
Pay attention to whether the source stays active. OBS offers a setting to restart a Media Source when it becomes active. If you hide the source, change scenes or otherwise make it inactive, its playback behaviour depends on its source settings. Avoid unnecessary scene switching in a continuous setup, and test the exact configuration you plan to leave running.
Check audio in OBS before starting a public stream. Play the lecture and watch the Audio Mixer meters to confirm that OBS is receiving sound. Then listen to the stream output, not only the source file: a meter can show activity while speech is too quiet, distorted, or missing on one channel. Pause to check both speech and any embedded examples or clips.
If you are rotating lectures, review the transitions as well as each file. A playlist can contain different audio levels, aspect ratios or frame rates. Those differences may not stop OBS from playing the items, but they can make the viewer experience uneven. A representative test should include files from the beginning, middle and end of the list.
For more complex rotations, distinguish a fixed playlist from changing the list while a stream is live. A separate discussion of updating a playlist without changing the stream URL can help clarify what needs to change on the playback side and what remains the same for viewers.
Set resolution and frame rate for lecture material
The output resolution should reflect the source and the detail viewers need. A 1080p lecture recording with readable slides is a reasonable candidate for 1920×1080 output. If the original is 720p, sending a 1080p stream does not restore detail that is not in the file; it only asks OBS to scale the material up. For a lower-resolution source, use an output closer to its native size unless you have a specific reason to scale it.
In OBS, set Output (Scaled) Resolution to the size you intend to send to YouTube. OBS describes this as the resolution sent to the stream. Check the result in a test, particularly when slides contain small text or diagrams. Viewers watching on a phone may not need the same detail as someone reading code or equations on a larger screen.
For mostly static slides and a speaker’s face, 30 fps is a practical efficiency-oriented starting point. It is not a YouTube requirement. A lecture with fast writing, demonstrations or camera movement may benefit from a higher frame rate if the source and computer support it, but 60 fps can be more demanding than 30 fps. Match the output to the material instead of increasing frame rate by default.
The OBS Studio overview guide explains where output resolution and frame rate fit into the video settings. Keep in mind that the source, the chosen output and the viewing context all matter. A crisp screen recording may need more care with resolution than a talking-head lecture, while an old recording may gain little from a larger output.
Configure encoder, bitrate, keyframes and audio
A useful H.264 starting configuration for 1080p30 lecture output is CBR, 14 Mbps video bitrate, and a two-second keyframe interval. YouTube recommends CBR and a keyframe frequency of two seconds, with no more than four seconds. Choose H.264 as a broadly compatible baseline where your encoder supports it. YouTube also supports H.265 and AV1 for RTMP/RTMPS live streaming, but the available choices depend on your encoder and workflow.
YouTube’s recommended H.264 video bitrates provide a reference for several common outputs:
| Output | YouTube recommended video bitrate |
|---|---|
| 1080p at 30 fps | 14 Mbps |
| 1080p at 60 fps | 17 Mbps |
| 720p at 30 fps | 8 Mbps |
| 720p at 60 fps | 8 Mbps |
| 480p at 30 fps | 4 Mbps |
These are YouTube recommendations, not guarantees that a particular line can sustain them. Consult the current YouTube encoder settings guidance for the output and codec you actually use. The table is a way to choose a starting bitrate after choosing resolution and frame rate, not a reason to force your stream to a higher setting than your source or connection can support.
For a typical lecture, set audio to AAC stereo at 128 kbps and 44.1 kHz. YouTube lists AAC or MP3 for RTMP/RTMPS audio and gives those stereo settings as its recommendation. If your lecture file is mono, do not expect a stereo output setting to create spatial information; check that speech stays clear and centred. A lecture with speech is poorly served by pristine video if the voice is difficult to understand.
For encoder selection, use the option your computer can sustain in a real test. OBS says hardware encoders generally move encoding work away from the CPU, but quality and compatibility vary by hardware generation and platform. A hardware option is not automatically better for every machine. If you see encoder overload or other performance trouble, compare the available encoders with the same lecture and output settings rather than changing several variables at once.
If your system is older, or the connection cannot carry the 1080p30 starting point, try 720p30 with YouTube’s 8 Mbps H.264 recommendation as a next step. Reduce further if testing shows the connection is still unstable. If you need a walkthrough of key management in a different workflow, updating a YouTube stream key in an FFmpeg script covers a related task, though the OBS connection flow is handled in its own settings.
Use RTMPS and connect YouTube Studio
In YouTube Studio, set up the live stream and use the stream key and server information YouTube provides. Keep the key private; it lets an encoder connect to the channel. In OBS, open the stream settings, choose the service and enter the matching details. Use RTMPS, YouTube’s recommended secure transport for the encoder connection.
Before going live, verify that the destination is the intended channel and stream. A saved stream key can make it easy to reconnect, but it also makes a misdirected broadcast possible if you have multiple channels or accounts. Take a moment to check the stream title, visibility and other Studio details before sending a long-running lecture feed.
Do not assume that connecting OBS means the stream is ready for viewers. YouTube Studio needs time to receive and assess the incoming signal. Check that the preview shows the right lecture and that the audio is present. If you are using a scheduled stream, follow the Studio controls for starting the broadcast rather than relying on the encoder connection alone.
The live connection and the playback loop are separate. OBS can continue playing a local file while a connection issue prevents the video from reaching YouTube, and a good connection cannot correct a broken playlist or silent source. Test both layers, and avoid treating a green status or a single successful connection as evidence that every part of a 24/7 setup will keep working.
Test stream health and sustained upload
A speed test is a momentary measurement, not proof that the same upload capacity will be available through the night. The relevant question is whether the connection can carry the selected bitrate continuously, with enough room for ordinary variation and other traffic on the line. If other devices share the connection, their activity can affect the upload available to OBS.
Run a test using the actual lecture, scene and settings you intend to use. Watch OBS for dropped frames and YouTube Studio’s stream health information for warnings. OBS troubleshooting notes that dropped frames can indicate an unstable connection or a bitrate the connection cannot sustain. If frames are dropping, lower the bitrate and test again; if needed, reduce output resolution or frame rate too.
Leave the test running long enough to include the conditions that matter to your channel. For a 24/7 stream, a quick check at the desk does not reveal what happens when the connection becomes busy later, the computer becomes hotter, or a scheduled file reaches its end. Test a full loop or a representative part of a playlist, and check that playback resumes correctly at the loop point.
Enable OBS Automatic Reconnect in Advanced settings. It may help after a connection interruption, but it cannot prevent interruptions or fix every cause of a failed stream. It does not ensure the computer stays on, a file remains readable, or YouTube remains available. Plan to check the broadcast after setup and to review alerts or stream health rather than assuming reconnect settings remove the need for monitoring.
The OBS stream connection troubleshooting guide offers steps for diagnosing dropped frames and connection problems. If repeated tests show that your home or office connection cannot sustain the chosen bitrate, lower the output or reconsider where the encoder runs. The goal is a configuration supported by the observed connection, not a number that looks good in a settings panel.
Adjust the setup to the source and connection
Use the starting configuration as a controlled first test. If the lecture is 720p, begin with 720p output rather than upscaling automatically. If it is mostly slides, 30 fps is likely a sensible first trial. If you are sending 1080p30 H.264, YouTube’s recommended video bitrate is 14 Mbps; if that is not sustainable, try the 720p30 recommendation of 8 Mbps and test again. Those settings remain choices to evaluate against the real line and machine.
Change one major setting at a time and record what you changed. For example, if the stream drops frames at 1080p30, lower the bitrate first while keeping the source and frame rate unchanged. If the connection still struggles, lower resolution or frame rate and compare the result. This makes it easier to identify whether the limiting factor is the network, the encoder or the source rather than making several changes and guessing which one helped.
OBS’s Auto-Configuration Wizard can offer an initial fit based on hardware resources and network conditions. Treat the result as a starting point, then test with representative lecture content. System requirements indicate whether OBS can run on a machine, but they do not prove that the machine can sustain a specific encoder, resolution, frame rate and scene workload continuously.
Think about the operating method as well as the video settings. OBS is useful when you want local control, scene composition or a workflow you can inspect directly. It also means the computer, playback source, power and network all need attention. If the problem you are trying to solve is leaving a personal computer running to repeat a file, StreamNeo removes that particular requirement by letting you upload a video for a YouTube live stream that runs with your computer off; it does not change the need to prepare the file and channel carefully.
For a local workflow, keep the lecture files accessible and avoid moving or renaming them after configuring the source. An external SSD can be a convenient place to keep a collection of local recordings, but it is an optional storage choice, not a video-quality or uptime improvement. Whichever storage you use, verify that OBS can open every file and that the computer will not sleep or lose power during the planned broadcast.
The useful comparison is not one preset against another in isolation. Compare the resolution and frame rate, the bitrate YouTube recommends for that output, what upload capacity you observe over time, whether OBS reports dropped frames, and whether the computer can encode the material without overload. Then decide whether a single-file loop or a playlist is the right playback pattern. A smaller, tested output may serve a lecture channel better than a higher setting that the source or connection cannot sustain.
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 lecture in OBS?
Add a Media Source, select the local lecture file and enable Loop. Play the source in a test scene to check the beginning, ending and audio before connecting it to a long-running broadcast.
Can OBS loop a playlist of lectures?
Yes. Use the VLC Video source, add the files to its playlist and enable Loop Playlist. VLC must be installed, and OBS requires the VLC version to match the architecture of OBS; for 64-bit OBS, use 64-bit VLC.
What bitrate should I use for a 1080p YouTube lecture stream?
YouTube’s recommended H.264 video bitrate for 1080p at 30 fps is 14 Mbps. Treat it as a reference, then test whether your source, encoder and sustained upload can support it; reduce the output if the test shows instability.
Do these OBS settings guarantee a 24/7 stream?
No. A suitable bitrate and loop setting help configure the broadcast, but they cannot guarantee that the connection, computer, source file or YouTube service will remain available. Test the complete setup and keep checking stream health.