Skip to content

How-ToStreaming Gear

How to Stream to YouTube with OBS Studio

How to stream to YouTube with OBS Studio: enable live streaming (allow up to 24 hours), run OBS's Auto-Configuration Wizard, add sources, paste YouTube's stream URL and key, and use YouTube's recommended codec, keyframe and bitrate settings.

By , Systems & Technical Editor

2 min read

How to Stream to YouTube with OBS Studio

OBS Studio is free and works well for streaming games or your desktop to YouTube. This guide follows YouTube Help's encoder instructions and OBS's own Quick Start Guide.

1. Enable live streaming on your channel

YouTube says that to live stream you need to verify your channel and have had no live streaming restrictions in the past 90 days, and you must be at least 16. It also says enabling live streaming for the first time may take up to 24 hours, so do this well before your first stream.

2. Set up OBS Studio

Install OBS Studio and run the Auto-Configuration Wizard, which OBS says shows the first time you run it and can be found later under Tools > Auto-Configuration Wizard. It takes into account what you want to do, your hardware and your network.

Then add sources. OBS recommends Game Capture (Windows only) for 3D games, Display Capture or Window Capture for your desktop, and a Video Capture source for a webcam or capture card. By default OBS captures desktop audio and your microphone; check the meters in the Audio Mixer. If your mic needs cleaning up, see setting up OBS microphone filters.

3. Connect OBS to YouTube

YouTube's instructions say that if your encoder has an option to stream to YouTube, select it. Otherwise, copy the stream URL from YouTube into the encoder's server field (it may say RTMP server) and copy the stream key into the stream key field. Treat your stream key like a password and don't share it.

4. Choose encoder settings

YouTube's recommended encoder settings include:

  • Protocol: RTMP/RTMPS

  • Video codec: H.264, H.265 (HEVC) or AV1

  • Frame rate: up to 60fps

  • Keyframe frequency: 2 seconds recommended, and no more than 4 seconds

  • Bitrate encoding: CBR

  • Audio: AAC or MP3, 44.1kHz for stereo

YouTube's recommended bitrates for H.264 are 17Mbps for 1080p at 60fps and 14Mbps at 30fps, 34Mbps for 1440p at 60fps, and 8Mbps for 720p. With AV1 or H.265 the recommendations are lower: 12Mbps for 1080p60 and 24Mbps for 1440p60. Your upload speed has to cope, so don't set a bitrate your connection can't sustain. Our AV1 vs HEVC vs H.264 and NVENC vs x264 comparisons explain the codec and encoder choices.

5. Test, then go live

OBS recommends running a test for a few minutes before your first real stream. YouTube also suggests testing beforehand and monitoring stream health and messages during the event. Once you're happy, click Start Streaming in OBS.

Our verdict

Streaming to YouTube with OBS is mostly a one-off setup: enable live streaming a day ahead, run OBS's Auto-Configuration Wizard, paste in your stream key and match YouTube's recommended keyframe and bitrate settings. Run a short test stream first. For the wider setup, see how to set up a PC for streaming.

The bottom line

Streaming to YouTube with OBS is mostly a one-off setup: enable live streaming a day ahead, run OBS's Auto-Configuration Wizard, paste in your stream key and match YouTube's recommended keyframe and bitrate settings. Run a short test stream first. For the wider setup, see how to set up a PC for streaming.

Sources

  1. 01YouTube Help: Create a YouTube live stream with an encoder
  2. 02YouTube Help: Choose live encoder settings, bitrates and resolutions
  3. 03YouTube Help: Get started with live streaming
  4. 04OBS Studio: Quick Start Guide

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Connect a PS5 DualSense Controller to Your PC

How-To

How to Connect a PS5 DualSense Controller to Your PC

A PS5 DualSense connects to a Windows PC by USB-C or Bluetooth. PlayStation says haptics and the headset jack need a cable on PC; to pair wirelessly, hold Create and PS until the light bar blinks, then add it in Windows.

Marcus Thorne3 min