YouTube Live

YouTube Live Stuck on Preparing Stream or "No Data"? How to Fix It

By the StreamLivestic team · · 15 min read

Stuck Stream Fixed — youtube live stuck on preparing stream

YouTube Live stuck on preparing stream, "Waiting for stream" or "No data" means YouTube is not receiving a usable video signal on the stream key that this particular broadcast is listening to. Nine times out of ten your encoder is fine. It is sending to the wrong key, the wrong broadcast, or it is sending something YouTube can't decode. Below is the exact order we check things in, from the 30-second fixes to the less obvious ones.

Quick fix: In YouTube Studio open Create → Go live → Stream tab, copy the stream key shown on that page, paste it into your encoder (OBS: Settings → Stream → Service: YouTube - RTMPS, Server: Primary), stop and restart streaming, then wait 30–60 seconds. If the preview appears but the stream doesn't go live, Auto-start is off. Click Go live yourself. Still "No data"? Switch the server to RTMPS on port 443 and check that your scene actually has a video source.

What the error actually means

A YouTube live event is really two separate things joined together. The broadcast is the watch page, with its title, thumbnail, privacy and chat. The stream is the ingest point behind a stream key. YouTube's Live Streaming API makes the split explicit: each broadcast is bound to exactly one stream, and a reusable stream (key) can be bound to many broadcasts over time.

The Live Control Room only shows a preview once the stream bound to the broadcast you are looking at starts receiving valid audio and video. Until then you see one of these:

So "OBS says I'm live" only proves that a TCP connection to an ingest server succeeded. It doesn't prove the key belongs to the broadcast you are staring at, or that YouTube can decode what you send.

Why it happens

These are the real causes, most common first, based on what shows up again and again in OBS forum threads and YouTube's own error list:

  1. Wrong stream key. The key belongs to a different broadcast, a different stream key profile, or a different channel. The usual culprit is a Brand Account: you copied the key while Studio was switched to your other channel.
  2. Scheduled stream bound to a different key. When you schedule an event, you pick a stream key in its settings. If that event uses "Key B" and OBS is pushing to the default key, the event waits forever while your data lands somewhere else.
  3. Auto-start disabled. The preview is there, but YouTube is waiting for you to press Go live. The API default for enableAutoStart is false, and many scheduled events end up with it off.
  4. Encoder sending audio only, or video only. An empty scene, a black capture source, a broken FFmpeg -map, or -vn left in a command. YouTube needs exactly one video stream and one audio stream. Its error list includes "The ingestion stream contains no video stream" and "contains no audio stream."
  5. Unsupported codec, profile or container. YouTube lists H.264, H.265 (HEVC) and AV1 for video and AAC or MP3 for audio. 10-bit or 4:4:4 H.264, Opus audio, or HEVC/AV1 from an encoder that doesn't support Enhanced RTMP all trigger errors like "The video is encoded with the wrong codec profile."
  6. Port 1935 blocked. Plain RTMP uses TCP 1935. Office, college, hotel and some mobile-hotspot networks block it, and some ISPs throttle it. RTMPS runs on 443 and almost always gets through.
  7. First-time enablement wait. YouTube says enabling live streaming for the first time "may take up to 24 hours." Until then, the key may not accept anything.
  8. Stale Studio tab or browser cache. The Live Control Room sometimes doesn't refresh its state. Your stream is live for viewers, but your tab still spins.
  9. Two encoders pushing to one key. A second PC, a forgotten FFmpeg process, a cloud restreamer and OBS all fighting for the same primary key. The ingest keeps flipping between them and the preview never settles.
  10. Mobile-created event. An event created in the YouTube mobile app is a mobile stream. Restream's help docs note that encoders can't go live with it.

Diagnosis flow: YouTube Live stuck on preparing stream

Work through this in order. Each step either fixes the problem or rules a cause out.

  1. Is the encoder actually connected? In OBS, the bottom bar should show a green square and a rising kb/s figure. Zero kb/s or a reconnect loop means a network or URL problem: jump to fix 6.
  2. Which channel is Studio on? Click your avatar in Studio and check the channel name. If you run a Brand Account, make sure the key you copied came from this channel.
  3. Which broadcast are you looking at? If it's under Manage (scheduled), open it and check which stream key it uses. Compare it with the key in your encoder.
  4. Wait 60 seconds, then hard-refresh Studio. If the preview appears after the refresh, it was only the tab.
  5. Preview visible but not live? Click Go live, or turn on Auto-start for next time.
  6. Still "No data" with a good bitrate? Check what you send: one H.264 video track (yuv420p, High profile), one AAC stereo track at 44.1 or 48 kHz. Run the FFmpeg test-pattern command in fix 5 to separate "YouTube problem" from "my source problem."
  7. Test-pattern also fails? Reset the stream key, switch to RTMPS 443, and make sure nothing else is streaming to that key.
  8. Brand-new channel? If it's within 24 hours of enabling live, wait it out.

How long YouTube takes to show the preview

On our channels, we use YouTube Studio → Create → Go live → Stream (encoder) with the default stream key. Within about 10–30 seconds of our FFmpeg encoder connecting, the preview appeared and the stream went live (Auto-start on), with stream health showing "Excellent." That's our baseline. If you're past 60–90 seconds with a healthy encoder bitrate and still see "No data", stop waiting and start diagnosing.

The API docs give the same order of magnitude. A transition to live "typically" takes 5–10 seconds and can take up to a minute. Auto-stop ends a broadcast about one minute after video stops arriving. Before the preview can appear, YouTube also has to receive at least one keyframe, so a keyframe interval of 2 seconds (the recommended value, and never more than 4) speeds up first frame.

How to fix it

1. Use the stream key from the broadcast you're actually watching

This fixes most cases. YouTube has several kinds of key and it's easy to mix them up:

Steps:

  1. In YouTube Studio, confirm the channel name in the top-right avatar menu. Switch account/channel if needed.
  2. Open Create → Go live. For an instant stream, stay on the Stream tab. For a scheduled one, go to Manage and click the event.
  3. In Stream settings, look at the Select stream key dropdown and note the key's name. Click Copy next to the key.
  4. OBS: Settings → Stream → Service: YouTube - RTMPS, Server: Primary YouTube ingest server, paste into Stream Key. If you use Connect Account instead, click Manage Broadcast and pick the exact event; OBS then binds it for you.
  5. Streamlabs Desktop: Settings → Stream → choose YouTube with a custom stream key (or log in and choose the event in the Go Live window), then paste the key.
  6. vMix: Stream settings → Destination: YouTube (or Custom RTMP Server) → paste the key into Stream Name or Key.
  7. Stop streaming fully, wait 5 seconds, start again.

If you think the key leaked or got crossed, click Reset next to the key on the Stream tab and paste the new one. Only channel owners and managers can reset keys. One OBS forum team found that resetting the key before each show was the only thing that made Studio detect their stream again. It's a blunt tool, but it clears any stale binding.

2. Fix a scheduled stream that's listening to another key

Scheduled events are where "Waiting for stream" lives. The event was created weeks ago with "Key B", your OBS profile has "Key A", and both look like YouTube keys.

  1. Go to Manage, open the event, and click Edit (or look under Stream settings in the Control Room for that event).
  2. Under Select stream key, choose the key your encoder already uses. Or copy the key the event uses into your encoder.
  3. If you have several upcoming events on the same reusable key, start the one you want first and close the others. When more than one is waiting, it's easy to watch the wrong one spin while your data feeds the other.
  4. Don't use an event created in the YouTube mobile app for OBS or an encoder. Create the event in Studio on desktop.

3. Press Go live (or turn on Auto-start)

If the preview is playing in the Control Room, ingest is working and nothing is broken. For scheduled streams, YouTube's help says to wait for the preview and then click Go live. To make it automatic next time:

  1. Open the event → Edit → Customisation (or Stream settings → Additional settings).
  2. Turn on Enable Auto-start. Turn on Enable Auto-stop too if you want the broadcast to end on its own about a minute after you stop sending.
  3. Save. With "Reuse settings", these choices carry over to the next event.

Keep Auto-start off if you want to watch the private preview before going public. That's what it's for. Just remember to press the button.

4. Make sure the encoder is sending video, not just audio

A very common OBS mistake: the scene is empty, the camera is in use by another app, or Display Capture shows black (laptops with two GPUs). OBS happily streams audio plus nothing, and YouTube never builds a preview.

ffprobe -v error -show_entries stream=index,codec_type,codec_name,profile,pix_fmt,width,height,sample_rate,channels -of compact input.mp4

You want exactly one codec_type=video and one codec_type=audio going out. Map them explicitly so a file with a cover-art stream or two audio tracks doesn't confuse things:

ffmpeg -re -i input.mp4 -map 0:v:0 -map 0:a:0 \
  -c:v libx264 -preset veryfast -profile:v high -pix_fmt yuv420p \
  -b:v 4500k -maxrate 4500k -bufsize 9000k -g 60 -keyint_min 60 -sc_threshold 0 \
  -c:a aac -b:a 128k -ar 44100 -ac 2 \
  -f flv "rtmps://a.rtmps.youtube.com/live2/YOUR-STREAM-KEY"

-g 60 at 30 fps gives a keyframe every 2 seconds. If your source has no audio at all, add a silent track. YouTube rejects video with no audio stream:

ffmpeg -re -i silent.mp4 -f lavfi -i anullsrc=r=44100:cl=stereo \
  -map 0:v:0 -map 1:a:0 -shortest ...

5. Rule out codec and profile problems with a test pattern

If you're unsure whether the problem is your source, your settings or YouTube, send a synthetic signal that's known to be compatible:

ffmpeg -re -f lavfi -i testsrc2=size=1280x720:rate=30 \
  -f lavfi -i sine=frequency=1000:sample_rate=44100 \
  -c:v libx264 -preset veryfast -profile:v high -pix_fmt yuv420p \
  -b:v 3000k -maxrate 3000k -bufsize 6000k -g 60 \
  -c:a aac -b:a 128k -ac 2 \
  -f flv "rtmps://a.rtmps.youtube.com/live2/YOUR-STREAM-KEY"

If the test pattern shows a preview within a minute and your real stream doesn't, the fault is in your encoder settings or source. If the test pattern also sits on "No data", the problem is the key, the broadcast, the network or the account.

Settings YouTube accepts without complaint:

SettingSafe valueWhat breaks it
Video codecH.264 (x264, NVENC, QuickSync, AMF)HEVC/AV1 from an encoder or app without Enhanced RTMP support; ProRes, VP8
Profile / pixel formatHigh (or Main), 8-bit 4:2:0 (yuv420p)High 4:4:4, High 10, yuv444p, 10-bit for SDR content
Rate controlCBRCRF / CQP with huge spikes
Keyframe interval2 seconds0 / "auto" on some encoders, anything over 4 s
ScanProgressiveInterlaced (1080i from cameras, capture cards)
AudioAAC, stereo, 128 kbps, 44.1 kHz (48 kHz OK)Opus, PCM, more than 2 channels (unless 5.1 AAC), 2 audio tracks
Container / protocolFLV over RTMP or RTMPSMPEG-TS pushed to an RTMP URL

For bitrate by resolution, use YouTube's encoder settings table. For H.264, 1080p30 is 5–14 Mbps (14 recommended) and 720p30 is 3–8 Mbps. A bitrate far below the minimum gives a "not receiving enough video" warning rather than "No data", but on weak uplinks the two can show up together.

6. Switch to RTMPS on port 443 if 1935 is blocked

Signs of a blocked port: OBS shows "Failed to connect to server", or connects, sends 0 kb/s, then drops. Your phone hotspot works but the office Wi-Fi doesn't.

  1. In Studio, on the Stream tab, click the lock icon in the Stream URL field to reveal the RTMPS URL. It's currently rtmps://a.rtmps.youtube.com/live2.
  2. OBS: pick Service "YouTube - RTMPS". On a custom server, use the RTMPS URL. If you get SSL errors, add the port: rtmps://a.rtmps.youtube.com:443/live2.
  3. vMix / hardware encoders: make sure the device supports RTMPS. YouTube's help says a "connection timed out" on an RTMPS URL can simply mean the encoder doesn't support it.
  4. On a corporate network, ask IT to allow outbound TCP 443 to YouTube ingest hosts. That's usually already open because it's ordinary HTTPS.
  5. Turn off VPNs and "secure DNS" filters that rewrite traffic, then test again.

7. Wait out the 24-hour enablement on new channels

The first time you request live streaming, YouTube says it "may take up to 24 hours" to become available. You also need a verified channel and no live streaming restrictions in the past 90 days. If you enabled live a few hours ago and everything else checks out, the key may simply not be active yet. Retrying more often won't speed it up. Come back after the 24 hours are up.

8. Refresh, clear cache or switch browser

The Control Room is a long-running web app, and it doesn't always notice state changes.

9. Make sure only one encoder is sending to the key

YouTube supports a primary and a backup ingest, which use separate URLs. It doesn't support two machines pushing to the same primary key. If they do, the connections keep knocking each other off and the preview never settles. Hunt down the extra sender:

Not sure? Reset the key. Anything still using the old key gets cut off, and only the encoder you update will connect.

What you see → cause → fix

What you seeLikely causeFix
"Start sending us your video from your streaming software to go live", and OBS shows kb/s risingWrong key, wrong channel/Brand Account, or scheduled event on another keyCopy the key from this exact broadcast on the right channel (fixes 1–2)
Stream health "No data" for more than 90 s, encoder connectedNo video track, unsupported codec/profile, or data going to another broadcastRun the test pattern; check tracks with ffprobe (fixes 4–5)
"Preparing stream" spinner foreverUnusable video (10-bit, 4:4:4, interlaced, HEVC without support) or stale tabUse H.264 High yuv420p, 2 s keyframes; hard-refresh (fixes 5, 8)
Preview plays, status "Waiting for stream" / not liveAuto-start off or scheduled eventClick Go live; enable Auto-start (fix 3)
OBS "Failed to connect" or 0 kb/sPort 1935 blocked, VPN, bad URLRTMPS on 443 (fix 6)
Stream connects, drops, reconnects every few secondsTwo encoders on one keyKill the extra sender, or reset the key (fix 9)
Nothing works on a channel that just enabled live24-hour enablementWait up to 24 h (fix 7)
Viewers see the stream, Studio still spinsStudio cache / stale tabRefresh, private window, another browser (fix 8)
Error "contains no audio stream"Video-only sourceAdd audio or a silent anullsrc track (fix 4)

"Stream now" vs scheduled streams: which to use

Use the Stream tab ("stream now") with the default key if you just want to start the encoder and be live. It's the simplest path and the one with the fewest moving parts. It's what we use, and with Auto-start on it goes live seconds after the encoder connects.

Use scheduled events when you need a public countdown page, a trailer, or a link shared in advance. Accept the extra steps: check the event's key, check Auto-start, and start the right event. In the forum threads we read while researching this, a YouTube Live stuck on preparing stream was far more often a scheduled event than a Stream-tab stream.

If you run 24/7 or looping streams, a cloud service like StreamLivestic keeps one encoder on one key with fixed H.264/AAC settings, which removes most of the causes above. With any setup, the same rule applies: one key, one sender, one broadcast.

How to stop it coming back

Most of the time, a YouTube Live stuck on preparing stream comes from a setup mistake you can avoid with a few habits:

For the official references, see YouTube's guides to creating a live stream with an encoder, live streaming error messages, encoder settings and bitrates, RTMPS and the Live Streaming API broadcast lifecycle.

FAQ

Why does OBS say I'm live but YouTube shows No data?

OBS only knows it connected to an ingest server. YouTube shows No data when nothing usable reaches the stream key bound to the broadcast you're viewing, usually because the key belongs to another broadcast or channel, or the encoder isn't sending a valid video track.

How long does YouTube take to show the live preview?

With a healthy encoder it's usually seconds. On our channels the preview appeared and went live within about 10 to 30 seconds of FFmpeg connecting. If you're past 60 to 90 seconds with a good bitrate, start troubleshooting.

Why is my preview working but the stream not going live?

Auto-start is turned off, or it's a scheduled event. Click Go live in the Live Control Room, or turn on Enable Auto-start in the event settings so it starts as soon as your encoder connects.

Can I use the same stream key for scheduled streams?

Yes. Custom stream keys are reusable and can be assigned to many events. Each scheduled event has its own key selection, though, so check that the event uses the same key as your encoder.

Does YouTube Live work if port 1935 is blocked?

Yes. Use the RTMPS server (rtmps://a.rtmps.youtube.com/live2, revealed by the lock icon in Studio), which runs on port 443. Add :443 to the URL if your encoder shows SSL errors.

I just enabled live streaming. Why can't I go live?

YouTube says enabling live streaming for the first time may take up to 24 hours. Your channel also needs to be verified and free of live streaming restrictions in the past 90 days.

Can two encoders stream to one YouTube stream key?

Not to the same primary key. YouTube has a separate backup ingest URL for redundancy, but two machines pushing to one primary key will keep displacing each other. Reset the key if you can't find the extra sender.

YouTube LivePreparing streamNo dataStream keyOBS StudioFFmpegRTMPSAuto-startLive Control Room

Sources & official docs