Skip to content

How to stream to YouTube using OBS

Connect OBS to a YouTube Live event, choose encoder settings that match YouTube's recommendations, and check the Live Control Room before and during your stream.

· 6 min read

Key takeaways

  • Create or schedule the YouTube Live event first, then connect OBS to the event's stream key or authorize your YouTube account in OBS.
  • For a straightforward 1080p30 H.264 stream, YouTube recommends CBR at 14 Mbps, a 2-second keyframe interval, and AAC audio.
  • Start OBS and wait for YouTube's stream preview and health indicator before you make the event public.

To stream to YouTube using OBS, create a live event in YouTube Studio, connect OBS to its stream key or your channel account, and send a test signal before you go public. YouTube's Live Control Room shows whether the encoder is connected and flags problems with video, audio, bitrate or keyframes.

This guide focuses on the YouTube side of the setup: making the event, linking OBS, choosing YouTube's ingest settings and checking stream health. It assumes OBS is installed and your scene is ready. If you still need to add a camera, screen or microphone, follow OBS's quick-start guide.

What you need before streaming to YouTube with OBS

You need a YouTube channel that can livestream, OBS with a working scene, and a stable upload connection. Check these before you schedule a show:

0 of 5 ready

YouTube says first-time live-stream activation can take up to 24 hours. Its current eligibility rules also require channel verification and no live-streaming restrictions in the past 90 days. Check YouTube's live-streaming requirements before planning your first event.

Connect OBS to your YouTube channel, step by step

Create the event in YouTube Studio before you connect OBS. That way, you can copy the right stream key and check the incoming preview before viewers see the stream.

  1. Create or schedule a live event in YouTube Studio

    Open YouTube Studio, select Create › Go live, then create an event or choose one from Manage. Add the title, description, visibility and schedule. For a rehearsal, use Unlisted or Private so you can check the broadcast without announcing a public show.

    Open the event's Stream settings. YouTube provides the stream URL and a stream key there. A stream key works like a password: anyone who gets it may be able to send a broadcast to your channel.

  2. Connect OBS to YouTube

    In OBS, open Settings › Stream and choose YouTube - RTMPS as the service. If OBS offers Connect Account, sign in to the YouTube account that owns or manages the channel you want to use.

    You can also choose Use Stream Key. Copy the key from the event's Stream settings in YouTube Studio and paste it into OBS. Do not share it in a screenshot, on stream or in a public chat. If you think it has been exposed, reset it in the Live Control Room and replace the saved key in OBS. YouTube's stream settings guide explains where to find and reset keys.

  3. Choose YouTube-ready video and audio settings

    Open Settings › Output in OBS and set the stream encoder to H.264 with CBR (constant bitrate). Then open Settings › Video and set the output resolution and frame rate to match the event you intend to run.

    For stereo audio, YouTube recommends AAC at 128 Kbps and a 44.1 kHz sample rate. The table shows YouTube's recommended H.264 video bitrates; these are encoder targets, not a promise that every internet connection can sustain them.

    OutputRecommended H.264 video bitrate
    720p at 30 fps8 Mbps
    720p at 60 fps8 Mbps
    1080p at 30 fps14 Mbps
    1080p at 60 fps17 Mbps

    Set the keyframe interval to 2 seconds. YouTube recommends a 2-second interval and says not to exceed 4 seconds. Its encoder settings cover other codecs and resolutions if you need them. If your upload speed is inconsistent, lower the output resolution or bitrate and test again instead of setting the bitrate to the maximum speed-test result.

  4. Send a test signal from OBS

    In OBS, click Start Streaming. Return to the Live Control Room and wait for the incoming preview and health indicator. YouTube may take a short time to identify the feed; don't assume the event is ready just because OBS says it is streaming.

    Check that the right scene appears, the audio meter responds, and the Live Control Room preview has both picture and sound. If the event's Auto-start setting is off, click Go Live in YouTube Studio only after the preview is ready. If Auto-start is on, sending the encoder feed can start the event automatically. YouTube's live stream settings explain that auto-start and auto-stop let you start and stop from the encoder.

  5. Monitor the broadcast while you are live

    Keep the Live Control Room open during the show. Watch the health indicator and its messages, check that the preview continues to move, and listen for audio problems on a separate device if possible.

    YouTube labels red messages as critical and yellow messages as moderate. Each message has a timestamp; if the same warning keeps returning, fix the encoder setting or connection it names rather than dismissing it. When you finish, stop the stream from OBS if Auto-stop is on. If it is off, stop the encoder and then end the event in YouTube Studio.

What to check when YouTube reports a stream health problem

YouTube's health message usually points to a specific mismatch between what OBS sends and what the event expects. Read the full message and its timestamp in the Live Control Room before changing settings.

  • No data from encoder: Check that OBS is streaming, the selected YouTube account or key is correct, and the event is open in the Live Control Room. If you changed the service or key, stop and start streaming again from OBS.
  • Incorrect stream key: Copy the key from the event you actually selected. A key from a different event may send your feed to the wrong live stream. Reset a key only if you suspect it has been exposed.
  • Incorrect bitrate: Match OBS's output resolution and bitrate to the event's ingestion settings. YouTube's bitrate table lists the current targets by codec, resolution and frame rate.
  • Incorrect video format or codec: For the basic setup in this guide, use H.264 video, AAC audio, one video stream and one audio stream. YouTube lists format and codec problems in its live-stream error guide.
  • Keyframe or frame-rate warning: Set a 2-second keyframe interval and make sure the frame rate in OBS is within YouTube's limit for the event.
  • Dropped frames or a stuttering preview: The connection may not be sustaining the configured bitrate. Lower the bitrate or resolution, pause large uploads on the same network, and test again.
  • The preview is silent: In OBS, watch the Audio Mixer while speaking or playing the sound you intend to share. Confirm the right mic or source is selected and not muted.

YouTube checks the incoming stream for errors, but it cannot tell you whether your framing, presentation or mic sound is good to watch. Make a short Unlisted test and review the playback yourself before an important show.

Before you end the stream

Confirm that the event is actually live in the Live Control Room before telling viewers to join. After the show, stop the encoder and verify that the event has ended; leaving a scheduled event running can confuse viewers and your next broadcast.

If you plan to use OBS for other destinations, compare what OBS does well and where it needs extra setup in Vidyst vs OBS, or browse our Mac streaming app comparisons.

FAQ

In OBS, open Settings › Stream, choose YouTube - RTMPS, and either connect your YouTube account or enter a stream key from YouTube Studio's Live Control Room.

Was this guide helpful?
Written byPiyush GargCo-Founder & CEO, Vidyst

Co-founder and CEO of Vidyst. Builds streaming tools for creators who go live from a Mac, and streams coding sessions himself.

Pricing

Stream wide and tall today

Every subscription starts with a 14-day free trial, no card needed.

Basic

Everything you need to go live and record on your Mac.
$100a year
Starts with a 14-day free trialTry free for 14 days
  • Dual canvas: horizontal + vertical
  • Recording in MP4, MOV and MKV
  • Apple ProRes and multitrack audio
  • 4K60 and hardware HEVC
  • Merged live chat
  • Multistream to 2 destinations at once
  • Up to 2 guests in your room
MOST POPULAR

Creator

Every destination at once and a bigger guest room.
$350a year
Starts with a 14-day free trialTry free for 14 days
  • Everything in Basic
  • Multistream to 7 destinations at once
  • Up to 10 guests in your room

Billed in US dollars (USD). If your card is in another currency, your bank converts the charge. Cancel any time.