YouTube Live
YouTube 24/7 Live Stream: Why Long Streams Break and How to Keep Yours Running
A YouTube 24/7 live stream is easy to start and surprisingly easy to break. YouTube will happily keep a broadcast live for days, but it will not reliably save anything past 12 hours as a replay, it ends broadcasts about a minute after your encoder goes quiet if Auto-stop is on, and every restart gives you a new video with a new URL and zero views. This guide covers each of those traps and the exact settings we use to keep a loop running from a small server.
/live link instead of the video link, and do not count on a replay for anything over 12 hours. Upload your source files as normal videos if you want them on the channel.What the error actually means
There is no single "24/7 error". There are a handful of separate rules that only show up once a stream runs long. People usually notice them as one of these:
- "This live stream recording is not available." The broadcast ended, but YouTube did not produce a replay (VOD) for it. On long streams the usual reason is the 12-hour archive rule.
- Live replay unavailable / the video is missing from Content. Same root cause, or the archive is still processing.
- Viewers cannot rewind far. DVR (pause and rewind during the live) only covers a limited window, and YouTube says it may be limited or unavailable for streams longer than 12 hours.
- "The stream has ended" overnight. Your encoder stopped sending for a short time and YouTube closed the broadcast because Auto-stop was on.
- New URL every morning. Every new broadcast is a new video ID. Links you shared, embeds and the view count do not carry over.
Here is what YouTube says, in its own words, as of late 2026. Its Archive live streams page says: "If your live stream is less than 12 hours, YouTube can automatically archive it for you" and "If your stream exceeds 12 hours, it may not be captured at all." The DVR help page says "DVR capabilities may be limited or unavailable for streams longer than 12 hours", and that viewers can only rewind "up to a limit". It does not give an exact number for that limit, so don't plan around one.
Note the wording: "may not be captured", not "will not be captured". Some streams over 12 hours do get archived, at least partly. YouTube does not promise it, so for a 24/7 stream, assume there is no replay.
Why it happens
These are the causes we see behind YouTube 24/7 live stream problems, most common first.
- The stream passed 12 hours. This is the archive limit. The broadcast itself keeps running. The replay is what you lose.
- Auto-stop is on and the encoder dropped. The YouTube Live API documents
enableAutoStopas stopping the broadcast "around one minute after the channel owner stops streaming". A router reboot, an ISP blip, a Windows update or a crashed FFmpeg process all take longer than a minute to recover from, so the broadcast ends. When your encoder reconnects, you get a brand-new broadcast. - The encoder gave up reconnecting. OBS's automatic reconnect has a retry limit by default, so after a long outage it stops trying. A bare FFmpeg command just exits. Nothing brings it back unless something supervises it.
- The PC slept, updated or rebooted. Home machines are the weak point. Power plans, forced updates and remote desktop disconnects all kill streams in the middle of the night.
- Health fell overnight. Usually the keyframe interval was wrong (YouTube recommends 2 seconds and says not to go above 4), the bitrate was variable, or the uplink got busy (cloud backup, other uploads, ISP congestion at peak hours).
- Copyright detection. According to YouTube's live copyright page, when third-party content is detected, a placeholder image may replace your stream, and if it continues, the stream "will be temporarily interrupted or terminated". A looped track repeats every few minutes, so it gets checked over and over.
- Daily stream limit. If a crash loop keeps creating new broadcasts, you can hit YouTube's daily limit on live streams and see "Daily live stream limit achieved". YouTube's fix is to try again in 24 hours.
Scheduled stream, "Stream now" and reusable keys
How you create the stream in YouTube Studio decides what happens when it drops. This is where most of the confusion starts.
| Option | How it works | Good for 24/7? |
|---|---|---|
| Stream tab, default stream key ("Stream now") | One permanent key per channel. You send video and YouTube goes live with the title and settings saved in the Stream tab. Each session becomes its own video. | Fine if the encoder never drops. We ran 24+ hours this way. Check the Auto-start and Auto-stop toggles in the Stream settings. |
| Scheduled stream (Manage → Schedule stream) | A broadcast you create in advance with its own watch URL. You choose the key it uses and set Auto-start and Auto-stop for that event. | Best control. Create it ahead of time with Auto-start on and Auto-stop off. "Reuse settings" copies the metadata, settings and stream key into the next one. |
| Custom (reusable) stream key | A named key you create from the stream key dropdown. It stays the same across broadcasts. | Yes. Your server config never changes, even when the broadcast does. |
| Webcam / mobile | Stream straight from a browser or phone. | No. You can't run it unattended, and you can't turn off DVR for these. |
YouTube's live stream settings page explains that "To reuse the same stream key, create a custom stream key", and that a stream copied with "Reuse settings" also copies your Auto-start and Auto-stop choices. That second part catches people out: if your first event had Auto-stop on, every copy of it does too.
How to fix it
1. Turn Auto-start on and Auto-stop off
This is the one change that keeps a brief drop from ending your broadcast.
- Open YouTube Studio and click Create → Go live to open Live Control Room.
- For a scheduled event, select it in the Manage tab. For the default key, stay on the Stream tab.
- Open Stream settings and find Additional settings.
- Turn Enable Auto-start on and Enable Auto-stop off.
- While you are there, decide on DVR. Leaving it on is fine. Just don't promise viewers they can rewind hours.
With Auto-stop off, the broadcast stays open while your encoder reconnects. With it on, YouTube ends the broadcast about a minute after video stops. We couldn't find an official figure for how long YouTube keeps a broadcast open with Auto-stop off and no input, so treat that as "a while, not forever" and make reconnection fast anyway. Remember that you now have to end the broadcast yourself in Live Control Room when you want it to stop.
2. Encode for YouTube's ingest rules
Most overnight health problems come from settings, not from the network. YouTube's encoder settings page asks for H.264, CBR, a 2-second keyframe interval (never more than 4) and AAC audio at 44.1 kHz.
| Output | YouTube minimum (Mbps) | YouTube recommended (Mbps) | Keyframe | Audio |
|---|---|---|---|---|
| 720p30 | 3 | 8 | 2 s (60 frames) | AAC 128 kbps, 44.1 kHz |
| 720p60 | 3 | 8 | 2 s (120 frames) | AAC 128 kbps, 44.1 kHz |
| 1080p30 | 5 | 14 | 2 s (60 frames) | AAC 128 kbps, 44.1 kHz |
| 1080p60 | 6 | 17 | 2 s (120 frames) | AAC 128 kbps, 44.1 kHz |
A talking head, a story with slow animation, or a still image with music can look fine well below these numbers. Our test ran at about 1.9 Mbps and health stayed "Excellent". Fast motion (gameplay, sports, rain loops) needs the full figure. Your monthly upload is roughly bitrate × 0.32 TB per Mbps: 2 Mbps is about 0.65 TB, 6 Mbps is about 1.9 TB, 14 Mbps is about 4.5 TB. Check that against your server's transfer allowance before you choose 1080p.
OBS: Settings → Output → Output Mode Advanced → Streaming: Rate Control CBR, Keyframe Interval 2 s. Then Settings → Advanced → Automatically Reconnect: on, Retry Delay a few seconds, and Maximum Retries set very high so it never gives up overnight. Turn off automatic recording unless you have the disk space.
Streamlabs: Settings → Output → Advanced: Rate Control CBR, Keyframe Interval 2. Then Settings → Advanced → Automatically Reconnect with a high retry count.
vMix: Stream settings → Quality → the gear icon: set the keyframe interval to 2 seconds, choose CBR, and make sure the encoder isn't overloaded (vMix shows this in its status bar).
3. Run it on a server, not your living-room PC
A small Linux cloud server with FFmpeg is the most reliable setup we've found for a looped YouTube 24/7 live stream. There's no GPU, no desktop, no Windows Update and no power cuts. This command loops a file forever and forces a keyframe every 2 seconds whatever the frame rate:
ffmpeg -hide_banner -loglevel warning \
-re -stream_loop -1 -i /srv/stream/loop.mp4 \
-c:v libx264 -preset veryfast -tune stillimage \
-b:v 1800k -minrate 1800k -maxrate 1800k -bufsize 3600k \
-pix_fmt yuv420p -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 \
-c:a aac -b:a 128k -ar 44100 -ac 2 \
-f flv "rtmps://a.rtmps.youtube.com/live2/YOUR-STREAM-KEY"
Drop -tune stillimage if your video has real motion. If your file is already encoded with a 2-second GOP, CBR-friendly H.264 and AAC, you can use -c copy to save CPU. Some files produce timestamp jumps at the loop point when you copy, though, so test it for a few loops before you trust it. Re-encoding costs more CPU but is the safer default.
Then supervise it, so a crash costs seconds instead of the whole night. A minimal systemd unit:
# /etc/systemd/system/yt247.service
[Unit]
Description=YouTube 24/7 loop
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/yt247.sh
Restart=always
RestartSec=5
StartLimitIntervalSec=0
[Install]
WantedBy=multi-user.target
Put the FFmpeg command in /usr/local/bin/yt247.sh, then run systemctl enable --now yt247. Together with Auto-stop off, a five-second restart should usually reconnect into the same broadcast, not create a new one.
4. Keep the same watch URL for viewers
Don't share the watch?v= link of today's broadcast. Share a link that always points at whatever is live now:
https://www.youtube.com/@yourhandle/livefor viewers. It opens your current live stream.https://www.youtube.com/embed/live_stream?channel=YOUR_CHANNEL_IDfor your website. It shows the live player while you're live and your next scheduled stream otherwise.
If you schedule more than one future stream as Public, these links can point at the wrong one. Keep only the next event Public and leave the rest Unlisted or Private.
5. Plan a restart cadence on purpose
You have two honest choices.
- Never restart. One broadcast runs for days or weeks. The URL, chat and live view count all stay on one video. You give up the replay. This suits ambient channels, lofi, prayer, news-style loops and kids' story loops.
- Restart just under 12 hours (for example 11 h 45 m, twice a day). Each block has a good chance of being archived as a VOD, which can help discovery and gives you a back catalogue. The cost is a new video ID twice a day, a short gap, a view count that resets each time, and two of your daily streams used. Use the
/livelink so viewers don't notice the change.
If you want the content on your channel as videos either way, upload the source files as normal uploads. It's more dependable than relying on a long-stream archive.
6. Understand view counts on long streams
While you're live, the watch page shows concurrent viewers ("watching now"). It doesn't show a running total the way an upload does. Every new broadcast starts again at zero, which is the main reason to avoid needless restarts. Concurrent viewers matter more than total views for how YouTube surfaces live streams. A broadcast that has been live for days with a steady small audience is not a failure.
7. Clear your music before you loop it
Content ID checks live streams while they run. YouTube's live copyright page says even licensed content can interrupt your stream unless the rights owner allowlists your channel. Claims on the archive come after the stream ends, and only if you archive it. For a loop:
- Use music you own, commissioned tracks, or a library whose licence covers live streaming and whose tracks are not registered in Content ID.
- If a distributor registered your own music in Content ID, ask them to allowlist your channel before you go live.
- Don't loop TV clips, film audio or popular songs "with credit". Credit is not a licence.
- Repeated live copyright problems can lead to live streaming restrictions, which take down the whole channel's 24/7 plan, not just one stream.
8. Fix overnight health drops
If health is "Excellent" at noon and "Poor" at 3 a.m., something on your side changed. Check the Live Control Room Stream health panel for the actual message. Usually it's one of:
- Keyframe warning: your interval isn't 2 s. In FFmpeg, use
-force_key_framesas shown above. Copied streams keep the source GOP, so re-encode if the source is wrong. - Not receiving enough video: upload congestion or CPU starvation. Check
topfor FFmpeg speed under 1.0x, and look for backups or other uploads scheduled at night. - Bitrate swings: switch to strict CBR (
-minrate=-maxrate=-b:v).
If you'd rather not run any of this yourself, StreamLivestic loops an uploaded video to YouTube from our servers with these settings and automatic reconnects already handled.
How to stop it coming back: a YouTube 24/7 live stream checklist
- Channel is verified for live streaming and has no live restrictions.
- Scheduled event or custom reusable stream key created. You know which key the server uses.
- Auto-start on, Auto-stop off, checked on every copied event.
- Decision made: never restart (no replay), or restart under 12 hours (archive likely).
- Encoder: H.264, CBR, 2-second keyframes, AAC 128 kbps at 44.1 kHz,
yuv420p. - Bitrate chosen for your content's motion. Monthly transfer calculated (about 0.32 TB per Mbps) and within your server plan.
- Server-side FFmpeg under systemd (or another supervisor) with
Restart=always. OBS reconnect retries set high if you use OBS. - Media files are on local disk, not a network or cloud-synced drive.
- Loop file tested for at least three loop boundaries with no timestamp glitches.
- Audio and video are yours or licensed for live use, with your channel allowlisted where needed.
- You share the
@handle/livelink and thelive_stream?channel=embed, never a single video link. - Only the next scheduled event is Public.
- Source files uploaded as normal videos if you want them kept on the channel.
- You check stream health once a day, and after any server, ISP or encoder change.
FAQ
Does YouTube save live streams longer than 12 hours?
Not reliably. YouTube says it can automatically archive streams under 12 hours, and that a stream over 12 hours may not be captured at all. If you need the content as a video, upload the source file separately or restart the stream before 12 hours.
Why does it say "This live stream recording is not available"?
The broadcast ended without YouTube creating a replay. On 24/7 streams the usual cause is the broadcast running longer than 12 hours. It can also mean the archive is still processing, or that the replay was removed or made private.
How long does YouTube wait before ending a stream when the encoder disconnects?
With Auto-stop on, the YouTube Live API documents the broadcast ending around one minute after you stop sending video. With Auto-stop off, the broadcast stays open so your encoder can reconnect. YouTube doesn't publish how long it waits in that case, so reconnect quickly.
How far back can viewers rewind a 24/7 YouTube live stream?
Only within a limited DVR window. YouTube doesn't publish the exact length and says DVR may be limited or unavailable for streams longer than 12 hours. Some devices, like Apple TV and older app versions, get a shorter window.
Can I keep the same URL for my YouTube 24/7 live stream?
Each broadcast has its own video ID, but youtube.com/@yourhandle/live always opens your current live stream. For websites, the embed URL youtube.com/embed/live_stream?channel=YOUR_CHANNEL_ID does the same.
Should I use the default stream key or a scheduled stream for 24/7?
Either can run for days if your encoder stays connected. A scheduled event or a custom reusable key gives you more control. Whichever you use, check that Auto-start is on and Auto-stop is off.
Can I loop copyrighted music on a 24/7 live stream?
Not safely. Content ID checks live streams while they run, and YouTube may swap in a placeholder, interrupt or end the stream. Use music you own or have licensed for live use, with your channel allowlisted if the tracks are in Content ID.
Sources & official docs
- YouTube Help: Archive live streams
- YouTube Help: Turn on DVR on live streams
- YouTube Help: Manage live stream settings
- YouTube Help: Choose live encoder settings, bitrates and resolutions
- YouTube Help: Copyright issues with live streams
- YouTube Help: Live streaming error messages
- YouTube Live Streaming API: LiveBroadcasts (enableAutoStop)


