To connect OBS to a YouTube live stream, copy the stream URL and stream key from YouTube Studio into Settings > Stream in OBS. That connects the encoder; it does not by itself start a YouTube broadcast or make a playlist repeat, so you need to check the preview and configure playback separately.
For a continuous playlist, use an OBS VLC Video Source for multiple files or a Media Source with its Loop option for one file. YouTube and OBS labels can change, so treat the steps below as a practical route through the current interface and check the Live Control Room before relying on a long run.
Open YouTube Live Control Room
Sign in to the YouTube channel that will carry the broadcast. In YouTube Studio, select Create, then Go live. This opens Live Control Room, where YouTube provides the connection details and shows whether it is receiving an encoder feed.
Check the channel identity before copying anything. If you manage several channels, it is easy to copy details from one and paste them into OBS while intending to broadcast on another. Confirm the channel name and, if you have more than one browser profile open, the account shown in Studio.
YouTube's guide to creating a live stream with an encoder covers the Studio flow and encoder connection. The page and interface may use slightly different labels over time; rely on the meaning of the controls rather than assuming every account has an identical layout.
Before setup, decide whether this is a one-off test or a broadcast viewers need to find at a particular time. An immediate stream and a scheduled broadcast use the same basic OBS connection, but the YouTube-side steps differ. The scheduled route can also include a separate action to make the event public live.
Choose an immediate or scheduled event
For an immediate encoder stream, open the Stream tab in Live Control Room. YouTube displays the stream settings for a broadcast you can start as soon as OBS is ready. This is usually the simpler route for a private technical check or an unscheduled channel feed.
For an event you want viewers to see in advance, go to Manage and choose Schedule stream. Configure the event details in YouTube Studio, then open the scheduled broadcast's settings. The event and its encoder feed are related, but they are not the same action: OBS sends video to YouTube, while the scheduled event may still need a Go live action in Studio.
Whether YouTube starts a scheduled event automatically depends on the event's settings. Do not assume auto-start is enabled. Plan to keep Live Control Room open, wait for its preview to appear after OBS begins sending, and select Go live if the event is waiting for that confirmation.
A scheduled event is useful when you need an event page or want to announce a start time. An immediate stream avoids that extra event setup, but gives you less opportunity to prepare a specific broadcast page in advance. Either way, a private or unlisted test can help you check the source before a public run; use YouTube's current visibility options and confirm who can see the test.
Find the stream URL and key
In the selected stream's settings, locate Stream URL and Stream key. YouTube supplies both. The URL tells OBS where to send the feed; the key identifies the stream associated with your YouTube setup. You need to copy each into the corresponding OBS field.
The stream key is sensitive. YouTube describes stream keys as being like a stream's password and address. Copy it directly from Studio into OBS rather than putting it in a public document, chat, screenshot, or support request. Avoid taking a screenshot with the key visible, even if you intend to share only the surrounding settings.
Some YouTube setups let you select or reuse an existing key, while others may present a default key or settings for creating one. Use the key shown for the stream you are configuring. If you reset it later, the old value will no longer be the one to use, so update OBS with the replacement before attempting to reconnect.
Keep the Live Control Room page open while you finish the encoder setup. It is the place to verify whether YouTube has detected the incoming signal and whether the preview is arriving. A copied key is not evidence that the connection works: an incorrect URL, a stale key, a stopped OBS output, or an encoder error can all prevent a feed from appearing.
Enter YouTube details in OBS
Open OBS and choose Settings > Stream. If the Service menu includes YouTube, select it. Then enter the stream key in the key field. Depending on the OBS version and service selection, the server may be selected for you or shown as a separate setting.
If OBS does not offer a YouTube service selection, choose the custom service option and enter YouTube's Stream URL in the Server field and its Stream key in the Stream Key field. Match the values to the labels: the URL is not the key, and the key is not a substitute for the URL. Use the URL Studio shows for the stream, rather than guessing one from an old setup.
YouTube recommends RTMPS for an encrypted encoder feed. If the current Studio settings and OBS service options let you use it, follow YouTube's current instructions for the server address rather than editing it from memory. Its encoder settings guidance also explains output settings and supported encoder recommendations. Those choices affect how much data OBS sends and how it is encoded; the right selection depends on your content, connection and device.
Select Apply or OK to save the settings. Then return to the main OBS window and check that the intended scene is selected. If you are following a more detailed comparison of playlist tools, our guide to software for turning a playlist into a YouTube live stream looks at the broader choice; here, the important point is that stream connection and media playback are separate pieces.
Do not press Start Streaming until you are ready for OBS to send the feed. It starts encoder output, but a scheduled event can still be waiting for YouTube's separate Go live confirmation. If you are testing, use a visibility setting appropriate to the test and confirm it in Studio before sending any material you do not intend to publish.
Protect and troubleshoot the stream key
Treat the key as a credential, not as a public channel identifier. Do not include it in a tutorial screenshot, paste it into a shared group, or leave it visible while screen-sharing. The URL may be less sensitive than the key, but there is no practical reason to publish your connection details as part of a normal setup explanation.
If you think the key has been exposed, open the stream settings in Live Control Room and reset it. YouTube says a channel owner or manager can reset a stream key. Then replace the saved value in OBS and test the connection again. If more than one OBS profile or machine has the old key, check those configurations too; a key update in YouTube does not update the values you saved elsewhere.
If YouTube does not show an incoming signal, check the basics in order. Confirm that OBS is on the correct channel's key and URL, that the intended service or custom server is selected, and that OBS is actually sending output. Look at OBS's status and any connection error before repeatedly changing unrelated video settings.
If OBS reports a connection problem, re-copy the URL and key from the active stream in Studio. A scheduled event's settings can be distinct from an immediate stream's settings, and a key reset makes previously saved values out of date. Avoid switching to an unrelated key or stream just to see whether the warning disappears, since that can make it harder to tell which event OBS is feeding.
If the signal arrives but the picture or sound is wrong, the key is probably not the issue. Check the selected scene, media source, audio mixer levels and whether the source is visible. YouTube's streaming tips recommend testing and monitoring the stream; checking the actual preview is more useful than inferring picture quality from the key settings screen.
An OBS playlist does not protect a broadcast from a computer shutdown, power cut or OBS crash. If a local computer is part of your plan, consider what will happen when it loses power or the internet. Our article on keeping a YouTube stream running during power cuts in India discusses that separate continuity problem; a looping source and a reliable broadcast are not the same thing.
Set up and test the playlist
For several media files, add a VLC Video Source to the OBS scene. Add the files to its playlist and enable Loop Playlist so playback returns to the start after the final item. OBS documents the source and its controls in its Media Sources guide. VLC needs to be installed for the VLC Video Source to work; OBS documentation specifies the 64-bit VLC version for 64-bit OBS.
For one video file, a regular Media Source is simpler. Add the file, open its properties and enable Loop. The distinction is practical: a single source is straightforward when you need one file repeated, while the VLC source gives you a playlist of different files. The OBS guide also notes the VLC source's visibility behaviour: Stop when not visible, restart when visible is the default. If a scene change hides the source, check that this behaviour matches your plan.
| Playback need | OBS source | What to check |
|---|---|---|
| Repeat one video | Media Source | Enable Loop and confirm the right file is selected |
| Cycle through several files | VLC Video Source | Add the playlist, enable Loop Playlist, and confirm VLC is installed |
| Keep a source running across scene changes | Either, depending on setup | Check source visibility and any stop/restart behaviour |
Before an audience depends on the playlist, run it in OBS and watch a complete hand-off between items. Confirm that the next file starts, that the image is framed correctly, and that audio does not disappear or jump unexpectedly. For a single file, let it reach its end and confirm it begins again. A source that appears correct in the preview may still have a missing file path or playback issue after a restart, so test from the same computer and OBS profile you plan to use.
Check the scene visibility indicator and avoid accidentally hiding the source. If the playlist is split across scenes, decide which scene should carry it and what happens when you switch. The goal is not merely to see a file listed in source properties; it is to observe playback in the program output that OBS will send to YouTube.
YouTube's recommended encoder settings include H.264 video, constant bitrate, and a two-second keyframe interval, with the interval not exceeding four seconds. Audio recommendations include AAC or MP3. Bitrate recommendations vary with resolution and frame rate, so use YouTube's current table and choose a setting your stable upload connection can sustain. A higher output setting is not automatically better if your connection cannot maintain it.
Start the stream and verify health
When the scene and playlist are ready, select Start Streaming in OBS. Watch the OBS status to confirm it is sending, then return to YouTube Live Control Room. Wait for YouTube to detect the feed and show a preview. Check the picture, audio and stream health before treating the stream as ready for viewers.
For an immediate stream, follow the Live Control Room's current instructions to begin or confirm the broadcast. For a scheduled event, the preview may appear while the event itself is not yet live. If auto-start is not configured, select Go live in Studio when you are ready. This separate step is why entering the key and seeing OBS connect should not be mistaken for a public broadcast already being live.
Check audio on a device separate from the OBS monitoring output if possible, and listen for silence, clipping or an unintended desktop sound. Confirm the video shows the intended playlist item and that the stream health panel has no warning that you have not investigated. For a lofi, devotional or ambience channel, a quiet test can reveal issues that are easy to miss in a still preview: an abrupt loop point, black frames between files, or a source that has stopped.
YouTube says live streams under 12 hours are automatically archived. That statement is not a guarantee for longer uninterrupted runs. If an archive matters, plan and test a suitable way to end or divide the broadcast, and confirm the resulting recording in Studio rather than assuming a very long stream will be saved.
An always-on channel needs a continuity plan beyond OBS settings. A playlist can loop correctly while the computer loses power or the network disconnects. If you are comparing local playback with a cloud-operated approach, our overview of cloud service versus VPS for a 24/7 Gurbani stream explains the operational trade-offs. StreamNeo can remove the need to leave your own computer running for an uploaded-file YouTube stream, which addresses that particular overnight computer-management burden; it does not change the need to check YouTube's stream and content settings.
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
Does entering the stream key in OBS start the YouTube live stream?
No. The key lets OBS connect to the stream settings in YouTube, but OBS must also send output and YouTube must receive it. A scheduled event may additionally need you to select Go live after its preview appears.
Should I use Media Source or VLC Video Source for a playlist?
Use Media Source when you are repeating one file and enable its Loop property. Use VLC Video Source for multiple files, enable Loop Playlist, and make sure VLC is installed. Test playback in the scene you will broadcast.
What should I do if I think someone has seen my key?
Reset the key in YouTube Live Control Room, then replace it in OBS and any other encoder profile that uses it. Keep the replacement private and check that OBS reconnects to the intended stream before going live.
Will a looping OBS playlist keep the channel online all night?
It repeats media while OBS and the computer are operating, but it does not itself restart a crashed application or recover from a power or network failure. Test the playlist and preview, and make a separate plan for interruptions and for any archive you need from a long broadcast.