Skip to main content
Upstream
Upstream
  • Product
  • Features
  • Platforms
  • Resources
  • Pricing
Login Sign up for free
Blog

rtmp://a.rtmp.youtube.com/live2: YouTube Setup & Fixes

Written by Bojan Opacak December 23, 2025 · Updated October 15, 2026 · 5 min read
  1. YouTube RTMP URL, backup URL, and stream key
  2. How to use the YouTube server URL in OBS or another encoder
  3. Should you use RTMP or RTMPS for YouTube?
  4. What is rtmp://b.rtmp.youtube.com/live2?backup=1?
    1. Set up and test the backup feed
  5. rtmp://a.rtmp.youtube.com/live2 not working: what to check
  6. When a cloud streaming setup makes sense
    1. Background playlist order
    2. Video Fit

rtmp://a.rtmp.youtube.com/live2 is a YouTube server address for sending live video from an encoder. Paste it into your software’s Server or Stream URL field. Your stream key goes in a separate field. This is an upload address for your broadcast, not a link viewers can open to watch it.

For your own stream, copy the exact URL shown in YouTube Studio. If your encoder supports RTMPS, use that secure option. The table below explains the common addresses and where each one belongs.

YouTube RTMP URL, backup URL, and stream key

FieldWhat to enterWhat it does
Primary RTMP serverrtmp://a.rtmp.youtube.com/live2Receives your main video and audio feed.
Backup RTMP serverrtmp://b.rtmp.youtube.com/live2?backup=1Receives a second feed for the same broadcast.
Secure server (RTMPS)Copy the RTMPS URL from YouTube Studio.Encrypts the connection from your encoder to YouTube.
Stream keyCopy your own key from YouTube Studio.Connects the incoming feed to your stream.

The server URL alone cannot start your broadcast. It needs your stream key too. Keep the key private, and use the address YouTube gives you if it differs from these examples.

How to use the YouTube server URL in OBS or another encoder

  1. Open YouTube Studio and choose Create > Go live. Open or create the stream you want to use.
  2. In your encoder’s stream settings, select YouTube if a preset is available. Otherwise, choose the custom server option.
  3. Copy the stream URL from YouTube into the encoder’s Server field. Copy your stream key into its Stream Key field.
  4. Start the encoder and check the feed in Live Control Room. For a scheduled stream, wait for the preview, then click Go live.

Check your stream’s visibility before testing. Starting the encoder can make a stream live right away, depending on your setup. YouTube explains both workflows in its encoder setup guide.

If you cannot find the key, follow our YouTube stream key guide with screenshots. Use the Copy control even when the key is hidden.

Copying the stream key in YouTube Studio

If your app asks for one full URL instead of separate server and key fields, check that app’s instructions for the format. Do not paste your private key into a browser address bar or search box.

Should you use RTMP or RTMPS for YouTube?

RTMP stands for Real-Time Messaging Protocol. It carries video and audio from your encoder to YouTube. YouTube then processes the feed and delivers it to viewers.

RTMPS adds encryption to that connection. Choose your encoder’s YouTube RTMPS preset when it is available, or copy the secure URL from Live Control Room. Plain RTMP does not encrypt the feed in transit.

Do not make a secure URL by adding an s to the protocol alone. The server address must also support RTMPS. YouTube’s RTMPS documentation requires the correct protocol, server, and path, with a connection on port 443.

Prefer a walkthrough on video? Here is our RTMP overview:

What is rtmp://b.rtmp.youtube.com/live2?backup=1?

This is a YouTube backup server address. A backup feed gives YouTube another source to use if the main feed fails. It needs to be set up and sending data before you need it. The URL itself does not create a backup.

For a backup that can survive a computer or network failure, avoid sending both feeds through the same point of failure. Two outputs from one computer still depend on that computer. Two encoders on one internet connection still depend on that connection.

Set up and test the backup feed

  1. Copy the primary and backup server addresses for the same stream from YouTube Studio. Use the RTMPS addresses if your setup supports them.
  2. Send the main feed to the primary address and the second feed to the backup address, using the stream key for that broadcast.
  3. Match the video and audio settings on both feeds. This includes resolution, codecs, bitrate, frame rate, keyframe frequency, and audio settings.
  4. Start both feeds during a private or unlisted rehearsal. Check Live Control Room for errors.
  5. Stop the primary encoder and check that playback continues from the backup. Then restore the primary and check which feed is active before ending the test.

YouTube says primary and backup settings must match for failover to work. Its streaming tips also recommend testing the switch by stopping the primary encoder.

Do not assume the stream will switch back to the primary as soon as it returns. Check the active feed in your rehearsal. Backup ingest reduces some risks, but it cannot guarantee an uninterrupted broadcast.

If both feeds share an upload connection, budget for both bitrates plus headroom. Use our streaming bandwidth calculator to plan your upload needs.

rtmp://a.rtmp.youtube.com/live2 not working: what to check

ProblemWhat to check
The URL will not open in Chrome.Paste it into your encoder’s Server field. Use the YouTube watch-page link to view or share the stream.
The encoder cannot connect.Copy the complete URL from Live Control Room. Check for spaces or missing characters. Match RTMP or RTMPS to the encoder’s selected mode.
YouTube rejects the stream key.Copy the key for the stream you have open. If you reset it, update the encoder with the new key.
RTMPS gives an SSL error or times out.Use the YouTube RTMPS preset or the exact secure URL. Check that your network allows the connection on port 443.
Your channel cannot start a live stream.Check live-streaming access and any channel restrictions. First-time activation can take up to 24 hours.
The feed connects but drops frames.Check upload speed, bitrate, and encoder performance. A working server URL does not rule out a network problem.
The backup feed shows errors.Match the primary and backup settings, then test both feeds again.

When a cloud streaming setup makes sense

A local encoder can be enough for an occasional live session. For an ongoing channel, Upstream’s 24/7 live streaming lets you run a cloud stream without leaving your computer on. You can also send a feed to multiple platforms, or use Live Studio for a browser-based production.

If you want to send an encoder feed into Upstream, follow the custom RTMP setup. Use the server and key provided for that destination. OBS and other RTMP input follow the resolution and frame rate set on your Upstream stream. A 4K feed stays 4K and a 60 fps feed stays 60 fps on plans that include them. Vertical 1080p input arrives at full 1080×1920, including on the free plan. Upstream then works as your hosted RTMP server and sends the feed on to up to 10 platforms at once. To run a server of your own instead, here is how to set up a free RTMP server.

Before your next YouTube broadcast, copy the URL and key from the correct stream, check the preview, and test any backup feed while the stream is private or unlisted.

24/7 live streaming

Keep a live channel running 24/7.

Upload files, build a playlist, and let Upstream run continuous live playout from the cloud without OBS, a VPS, or an always-on computer.

Sign up for free Explore 24/7 streaming
Manage backgroundLoop duration: 02:26:1403:08:42
1 Night owl40:04
2 Country train daydream53:32
3 Late night sax52:38
4 Windmill sunset42:28
Background Settings

Background playlist order

Ordered loopShuffled loop
Ordered will play the background files in their order.Shuffle will play a random background file from the list.

Video Fit

CropFit
Background will be cropped to fill the entire canvas if the aspect ratio doesn't match.
Published December 23, 2025
Bojan Opacak

About the author

Bojan Opacak

Content and Growth

Bojan writes for Upstream about live streaming strategy, platform policy changes, creator monetization, and practical workflows for 24/7 channels. He reads the platform rules and help pages and turns them into step by step guides for creators and small teams.

Keep exploring

Further reading

Browse all articles
How to Set Up a Free RTMP Server: Hosted or Self-Hosted
Oct 9, 2026 Blog

How to Set Up a Free RTMP Server: Hosted or Self-Hosted

Read article
How to Stream Pre-Recorded Video on YouTube Live (2026)
Jul 6, 2026 Blog

How to Stream Pre-Recorded Video on YouTube Live (2026)

Read article
YouTube Video Server: How RTMP Streaming Works & Why Cloud Solutions Beat OBS
Dec 29, 2025 Blog

YouTube Video Server: How RTMP Streaming Works & Why Cloud Solutions Beat OBS

Read article

Start streaming today

Go live to every platform, run a 24/7 channel, and produce live shows in your browser, with no software or server setup.

No credit card 24 hours/month free Full functionality
Start Streaming Free
24/7 Live Streaming Run cloud channels that stay live around the clock. Live Studio Invite guests, share screens, and add branded overlays in the browser. Multistreaming Send one live feed to YouTube, Twitch, Kick, and RTMP endpoints. Pre-recorded Live Streaming Upload pre-recorded videos & Go Live without the stress of live production. Free plan 24 hours a month with no watermark. Multi-channel streaming Separate live channels from one account. Enterprise Setups for teams, labels and agencies. About Upstream Who we are and how Upstream works.
Scheduling Streams that start and end on their own. Multichat Every platform's chat in one feed. Overlays Layers and widgets in Stream Designer. Stings, jingles and ads Inserts that play between your videos. Playback controls Skip or play any file while you stay live. Audio and video playlists Loop music and visuals separately. Team access Invite your team, each with their own role. RTMP server Stream in from OBS or any encoder. Live Streaming API Run streams, media and queues from code. MCP Server Manage streams from your AI assistant. All features Everything Upstream does, on one page.
YouTube live streaming Twitch live streaming Kick live streaming Facebook live streaming Instagram live streaming TikTok TikTok live streaming Rumble live streaming Mixcloud live streaming 30+ more Plus any custom RTMP or SRT destination.
Platform limits Bitrate and duration caps for each platform. Integrations Setup guides for OBS, vMix, cameras and more. VTuber Streaming Go live with your avatar on every platform.
Blog Guides, platform rules and news for anyone who goes live. Guides Setup guides for 24/7 streams, multistreaming and RTMP. Release Notes The new features in each Upstream update, in one place. Free Tools Video, audio, thumbnail and AI tools, plus camera and mic checks. Helpdesk Step by step setup help and troubleshooting for Upstream. Service status Current service health, uptime history and incident updates. Live Streaming FAQ Short answers to what people ask before they go live. Compare Upstream Upstream side by side with Restream, StreamYard and others. Latest post YouTube Dual Stream: What the Vertical Copy Does and How to Turn It Off
Always-on 24/7 Live Streaming Run cloud channels that stay live around the clock.
Explore
Real-time live Live Studio Invite guests, share screens, and add branded overlays in the browser.
Explore
One stream, 30+ platforms Multistreaming Send one live feed to YouTube, Twitch, Kick, and RTMP endpoints.
Explore
Schedule & Automate Pre-recorded Live Streaming Upload pre-recorded videos & Go Live without the stress of live production.
Explore
Free plan 24 hours a month with no watermark.
Multi-channel streaming Separate live channels from one account.
Enterprise Setups for teams, labels and agencies.
About Upstream Who we are and how Upstream works.
Scheduling Streams that start and end on their own. Multichat Every platform's chat in one feed. Overlays Layers and widgets in Stream Designer. Stings, jingles and ads Inserts that play between your videos. Playback controls Skip or play any file while you stay live. Audio and video playlists Loop music and visuals separately. Team access Invite your team, each with their own role. RTMP server Stream in from OBS or any encoder.
Live Streaming API Run streams, media and queues from code.
MCP Server Manage streams from your AI assistant.
All features Everything Upstream does, on one page.
YouTube live streaming. 24/7 channels with midroll ads. Twitch live streaming. Streams restart on their own at 48 hours. Kick live streaming. Stay live with your computer off. Facebook live streaming. Schedule lives that start on their own. Instagram live streaming. Go live from your browser or the cloud. TikTok TikTok live streaming. Go live on TikTok and Instagram at once. Rumble live streaming. Add Rumble to your YouTube or Kick stream. Mixcloud live streaming. DJ sets and radio shows from your browser. 30+ more Plus any custom RTMP or SRT destination.
Platform limits Bitrate and duration caps for each platform.
Integrations Setup guides for OBS, vMix, cameras and more.
VTuber Streaming Go live with your avatar on every platform.
Blog
Guides
Release Notes
Free Tools
Helpdesk
Service status
Live Streaming FAQ
Compare Upstream
YouTube Dual Stream: What the Vertical Copy Does and How to Turn It Off YouTube Dual Stream: What the Vertical Copy Does and How to Turn It Off
Upstream

Run your streams from the cloud

Free plan: 24 streaming hours a month, no card, no watermark.

4.6 · 245 reviews on Trustpilot
Legal entity
Zukunft d.o.o.
Registered address
Groznjanska 32, 10000 Zagreb
Company VAT ID
Company VAT ID: HR62560895839
About | Contact us | Tools | Content standards | Security | Privacy Policy | Terms of Service | Affiliate terms |

Product

  • Pricing
  • Upstream Features Overview
    • Multistreaming
    • Separate Audio and Video
    • Overlays: Stream Designer
    • Live Streaming Studio
    • Scheduling & Automation
    • Live Playback Controls
    • Play Stings, Jingles and Ads
    • Team Access
  • Enterprise Broadcasting Solutions

Resources

  • Helpdesk
  • Service status
  • Live Streaming FAQ
  • Blog
  • Release Notes
  • Live Streaming API
  • MCP Server
  • Free Live Streaming
  • YouTube Live Streaming
  • RTMP Server
  • Supported Platforms
  • Live Streaming Limits
  • Integrations

Compare Us

  • Compare Upstream
    • Upstream vs Runnel.live
    • Upstream vs OneStream
    • Upstream vs Live247
    • Upstream vs Gyre
    • Upstream vs Streaming Bots
    • Upstream vs Restream
    • Upstream vs StreamYard
    • Upstream vs LiveReacting
    • Upstream vs Playout.video

Free Tools

  • Design tools
  • Video tools
  • Audio tools
  • AI tools
  • Setup checks

Use cases

  • For Creators
  • For Music Labels
  • Church Streaming
  • VTuber Streaming
  • Multi-Channel Streaming

© 2026 Upstream. All rights reserved.

Ready to go live? Start free in the cloud.

Sign up for free