What Is rtmp://a.rtmp.youtube.com/live2? (Explained)

rtmp://a.rtmp.youtube.com/live2 is YouTube's primary RTMP server URL. Here's what each part means, the backup and RTMPS URLs, and how to stream.

What Is rtmp://a.rtmp.youtube.com/live2? (Explained)

rtmp://a.rtmp.youtube.com/live2 is YouTube's primary RTMP server URL. It's the address your streaming software sends your live video and audio to. Paired with your stream key, it's what connects your encoder to YouTube Live. This guide breaks down each part of the URL, the backup and secure (RTMPS) versions, and how to go live.

What is rtmp://a.rtmp.youtube.com/live2?

Each part of the URL has a job:

  • rtmp:// is the protocol. RTMP (Real-Time Messaging Protocol) carries your stream from your encoder to YouTube.
  • a.rtmp.youtube.com is YouTube's primary ("a") ingest server. The "a" marks it as the main server, not the backup.
  • /live2 is the application path that routes your stream into YouTube's live system.
  • The default RTMP port is 1935, used automatically unless you specify another.

It's only half of the connection. You also need your stream key, which tells YouTube which channel the stream belongs to.

What is RTMP?

RTMP is an ingest protocol originally developed by Adobe. It's the standard way encoders and streaming tools push live video to platforms like YouTube. Your software encodes the video, sends it over RTMP to YouTube's server, and YouTube processes and distributes it to viewers.

Almost every encoder, hardware device, and cloud streaming tool supports RTMP, which is why YouTube uses it as the main ingest method.

YouTube RTMP and RTMPS URLs

YouTube provides a primary server, a backup server, and secure (RTMPS) versions of both. RTMPS is RTMP over a TLS/SSL connection, which encrypts the stream, per YouTube's official documentation.

PurposeURL
Primary (RTMP)rtmp://a.rtmp.youtube.com/live2
Backup (RTMP)rtmp://b.rtmp.youtube.com/live2?backup=1
Primary (RTMPS, secure)rtmps://a.rtmp.youtube.com:443/live2
Backup (RTMPS, secure)rtmps://b.rtmp.youtube.com:443/live2?backup=1

The b server is the failover. If you run a second encoder to the backup URL, YouTube switches to it if your primary feed drops. RTMP uses port 1935; RTMPS uses port 443.

Your YouTube stream key

The stream key is a private code that authenticates your broadcast and points it to the right channel. Treat it like a password and never share it publicly. If it leaks, reset it in YouTube Studio.

How to find your YouTube stream URL and key

  1. Open YouTube Studio and click Create, then Go Live.
  2. Make sure live streaming is enabled on your channel (first-time activation can take 24 hours).
  3. In the Stream settings tab, copy the Stream URL and the Stream key.
  4. Click the lock icon on the Stream URL field to reveal the secure RTMPS version.

Paste both into your encoder, match your bitrate and resolution to your upload speed, and start the stream.

rtmp://a.rtmp.youtube.com/live2 not working? Quick fixes

  • Copy the URL and key fresh from the Live Control Room. Don't reuse old ones.
  • Confirm the stream key hasn't been reset or rotated.
  • Check that live streaming is enabled and not restricted on your channel.
  • Match your encoder's resolution, bitrate, and frame rate to YouTube's settings.
  • Try the RTMPS URL on port 443 if your network blocks port 1935.

Skip RTMP setup entirely

You don't have to touch RTMP URLs, stream keys, or an encoder at all. Cloud streaming tools like LiveReacting connect to your YouTube channel directly: upload a video, go live in about five minutes, no OBS and no PC left running.

It also handles the reverse. You can multistream to any custom RTMP destination at once, run a 24/7 YouTube live channel from the cloud, or stream pre-recorded video as live, all without managing RTMP yourself.

FAQ

What port does YouTube RTMP use?
RTMP uses port 1935 by default. The secure RTMPS version uses port 443.

Is rtmp or rtmps better for YouTube?
RTMPS is better. It's the same protocol over an encrypted TLS/SSL connection, so your stream is protected in transit.

What's the difference between the a and b RTMP URLs?
The a server is your primary ingest. The b server is the backup that YouTube fails over to if the primary feed drops.

Where do I find my YouTube stream key?
In YouTube Studio, go to Create, then Go Live, and open the Stream settings tab. The stream URL and key are listed there.

Can I stream to YouTube without RTMP or OBS?
Yes. Cloud streaming tools connect to your channel directly, so you never enter an RTMP URL or stream key.

Go live without the setup

rtmp://a.rtmp.youtube.com/live2 plus your stream key is all an encoder needs to reach YouTube. If you'd rather skip the setup, a cloud tool gets you live faster. Upload a video and launch your own 24/7 live stream channel in minutes.

Transform Your Live Streams with LiveReacting

Join 10,000+ streamers who are boosting engagement and viewership by adding pre-recorded videos, games, polls, and countdowns to their streams.

Try LiveReacting for free today and take your streams to the next level!

Create a Free account →