
You want a lofi channel, a radio visual or a scoreboard to stay live for days, and OBS keeps dropping out after a few hours. Most OBS guides are written for a three hour gaming session, where a slow encoder preset or a reconnect that gives up after a while never shows. On a stream that runs around the clock, it does. Every value below comes from the OBS Studio 33.0.1 source code or from the platforms' own help pages, and it works the same on a home PC and on a VPS.
Quick answer: In Settings > Output, set Output Mode to Advanced, the encoder to x264, Rate Control to CBR, Keyframe Interval to 2 s and the CPU Usage Preset to veryfast, at 30 FPS. Bitrate: on YouTube at least 5,000 kbps for 1080p30 (YouTube recommends 14 Mbps) or 3,000 to 8,000 kbps for 720p30, on Twitch up to 6,000 kbps, on Kick up to 8,000 kbps, and never more than 75% of your upload. In Settings > Advanced, keep Automatically Reconnect on and raise Maximum Retries from 25 to 10000. Keep a fallback scene ready.
Why a 24/7 Stream Dies
Five things end most long streams: an x264 preset the CPU cannot hold, a bitrate the connection cannot carry (OBS drops frames, and enough of them get you disconnected), a reconnect that gives up after about three hours at the defaults, a PC that restarts or sleeps, and a source that fails and leaves viewers looking at black. The steps below handle them in that order.
Step 1: Output Settings
Open Settings > Output, set Output Mode to Advanced and use the Streaming tab.
| Setting | Value | Why |
|---|---|---|
| Video Encoder | x264 | Runs on the CPU, so it behaves the same on any machine |
| Rate Control | CBR | YouTube lists CBR, Kick's guide says CBR, and it is the x264 default in OBS |
| Bitrate | see Step 2 | Depends on platform, resolution and upload |
| Keyframe Interval (0=auto) | 2 s | YouTube recommends 2 s and says not to exceed 4; OBS's Twitch entry and Kick's guide both use 2 s |
| CPU Usage Preset (higher = less CPU) | veryfast | OBS's default and Kick's pick; move to superfast or ultrafast if Stats shows encoding lag |
| Profile | (None) or main | (None) is OBS's default, Kick's guide lists main, YouTube's page names no profile |
| Tune | (None) or zerolatency | (None) is OBS's default, Kick's guide lists zerolatency |
Keyframe Interval starts at 0 (auto) in OBS, so type the 2 in yourself. Stay away from slower presets such as medium: OBS labels the setting "higher = less CPU", so every step slower costs more CPU per frame.
On a home PC with a supported graphics card, OBS also lists hardware encoders in the Video Encoder menu. This guide uses x264 throughout because it needs no graphics hardware, and on a VPS it is the encoder to pick.
Step 2: Bitrate per Platform
The old rule of "4,500 to 6,000 kbps for 1080p30" starts below YouTube's own minimum. Use the numbers the platforms publish:
| Platform | Output | Video bitrate (H.264) | Source |
|---|---|---|---|
| YouTube | 720p30 or 720p60 | minimum 3,000 kbps, recommended 8,000 kbps | YouTube Help |
| YouTube | 1080p30 | minimum 5,000 kbps, recommended 14,000 kbps | YouTube Help |
| YouTube | 1080p60 | minimum 6,000 kbps, recommended 17,000 kbps | YouTube Help |
| Twitch | any | up to 6,000 kbps | OBS's built-in Twitch entry |
| Kick | up to 1920x1080 and 60 fps | up to 8,000 kbps | Kick Help Center |
YouTube's page gives Mbps, so 5 Mbps is 5,000 kbps. OBS's YouTube entry allows up to 51,000 kbps, so that cap is never the one you hit.
With Twitch picked in Settings > Stream, OBS applies its Twitch entry when the stream starts: CBR, a 2 s keyframe interval, and a bitrate cut back to 6,000 kbps if you set more. Ticking Ignore streaming service setting recommendations lifts the cap, with a warning that this "may result in degraded stream quality or prevent you from streaming." Kick is not in the OBS 33.0.1 service list. You stream to it through Custom..., so OBS enforces nothing and you set CBR, 2 s and at most 8,000 kbps yourself. More per platform in best OBS settings for Twitch, YouTube and Kick and the Kick bitrate limit guide.
Check it against your upload
OBS's connection troubleshooting page gives the starting point: set your bitrate to 75% of your total upload speed.
- 10 Mbps upload: 75% is 7,500 kbps. YouTube 1080p30 at 7,500 kbps sits between the 5,000 minimum and the 14,000 recommendation. Twitch stays at 6,000, Kick can take 7,500.
- 6 Mbps upload: 75% is 4,500 kbps, below YouTube's 5,000 kbps minimum for 1080p30. Stream YouTube at 720p30, where 4,500 clears the 3,000 minimum. 1080p has 2.25 times the pixels of 720p, so at the same bitrate a 720p frame gets more than twice the bits per pixel.
- Server with a 1 Gbps uplink: 75% is 750,000 kbps, far above every cap in the table. The platform cap and the CPU set the bitrate, not the connection.
Step 3: Video Settings
Settings > Video:
- Base (Canvas) Resolution: 1920x1080.
- Output (Scaled) Resolution: 1920x1080 or 1280x720, picked from the bitrate table. Use 854x480 only if you cannot reach YouTube's 3,000 kbps minimum for 720p (YouTube lists 400 kbps minimum and 4,000 kbps recommended for 480p30).
- FPS: 30, OBS's default. At 60 the encoder has twice as many frames to encode every second, and YouTube's recommended 1080p bitrate rises from 14 to 17 Mbps. OBS's encoding performance page says that if 60 fps is not working, try 30.
Step 4: Audio Settings
- Sample Rate (Settings > Audio): OBS defaults to 48 kHz. YouTube's page lists 44.1 kHz for stereo, so use that for a YouTube stream; Kick allows stereo up to 48 kHz.
- Channels: Stereo, the default.
- Audio Bitrate (Settings > Output > Audio): 128 kbps, YouTube's figure for stereo, under the caps in OBS's YouTube entry (160 kbps) and Twitch entry (320 kbps).
- Mic/Auxiliary Audio: off, unless you talk on the stream.
Step 5: Advanced Settings
Open Settings > Advanced. Most of these are OBS defaults; leave them as they are:
- Process Priority: Normal.
- Color Format NV12, Color Space Rec. 709, Color Range Limited.
- Stream Delay: off.
Automatically Reconnect
This is where most 24/7 guides get it wrong. The real values in OBS 33.0.1:
| Setting | Default | Range in the settings window |
|---|---|---|
| Enable | on | |
| Retry Delay | 2 s | 1 to 30 s |
| Maximum Retries | 25 | 1 to 10000 |
There is no setting to retry forever: 10000 is the top. Retry Delay is only the first wait; each next wait is about 1.5 times longer, up to 15 minutes. With the defaults that adds up to roughly three hours of trying, after which OBS stops the stream. With Maximum Retries at 10000, OBS keeps trying for about 104 days.
For an unattended stream, keep Retry Delay at 2 s and set Maximum Retries to 10000. Raising the Retry Delay to 10 s, as older guides advise, only makes every wait longer. The trade off: after a long outage, up to 15 minutes can pass between your connection coming back and the next attempt. The full mechanics and log lines are in OBS auto reconnect for 24/7 streams.
Network
On Windows, the Network section has Enable network optimizations and Enable TCP pacing; OBS's troubleshooting page says some users report they help with dropped frames or disconnects. Dynamically change bitrate to manage congestion (Beta) lowers the bitrate instead of dropping frames. Its tooltip warns it can add delay for viewers and take a few minutes to restore the bitrate, and it does not fix the cause of the drops.
Step 6: Scene Setup for Stability
Main scene
- One background: an image, or one looping video.
- One audio source: a long audio file in a Media Source with Loop ticked, or a VLC Video source with a playlist and Loop Playlist ticked.
- Text overlays or a visualizer only if the stream needs them.
Every extra source is one more thing that can fail. Browser sources run a whole web page inside OBS; if memory keeps climbing over the days, read OBS browser source memory leak.
Fallback scene
Make a second scene called Fallback with a static image ("Back in a moment") and an audio loop. When a source in the main scene fails, switch to Fallback by clicking it or with a hotkey from Settings > Hotkeys. The stream stays connected and viewers see a holding screen instead of black while you fix the main scene.
Media Source options
Right-click the Media Source and open Properties:
- Loop: on.
- Restart playback when source becomes active: your choice; it starts the file from the beginning each time the source becomes active.
- Close file when inactive: OBS's tooltip says it "closes the file when the source is not being displayed on the stream or recording. This allows the file to be changed when the source isn't active, but there may be some startup delay when the source reactivates." It says nothing about memory, and on a loop that is always on screen it does nothing. Use it in the Fallback scene to swap that file while the main scene is live.
Check free disk space before you upload long video loops; a recording made alongside the stream keeps growing for as long as it runs. Use only music and video you made or have a licence to stream.
Step 7: Stop the Machine From Restarting
On a home PC with Windows 11:
- Windows Update: Start > Settings > Windows Update, then pause updates; Microsoft's page says you can pause for up to 35 days. Install them at a time you pick.
- Sleep: Start > Settings > System > Power & battery > Screen, sleep, & hibernate timeouts, and set "Make my device sleep after" so the PC stays awake while the stream runs.
- Other programs: close games, editors and heavy browsers; they compete with x264 for the CPU.
- Rendering lag: OBS's encoding performance page says GPU overload issues on Windows often "can be resolved simply by running OBS Studio as administrator", because OBS can then ask Windows to reserve graphics capacity for it. Right-click OBS and choose Run as administrator.
Monitoring: View > Stats
Open View > Stats and keep the window next to the preview for the first days.
| Stat in OBS | What it means | What to change |
|---|---|---|
| Skipped frames due to encoding lag | x264 cannot keep up | Faster preset (superfast, ultrafast), lower output resolution, or 30 fps |
| Frames missed due to rendering lag | OBS cannot draw the scene in time | Fewer or lighter sources, lower resolution; on Windows, run OBS as administrator |
| Dropped Frames (Network) | The connection is unstable or cannot carry the bitrate | Lower the bitrate, try the network options from Step 5 |
| Memory Usage | How much memory OBS uses | It should level off; a line that keeps climbing points at a source, often a browser source |
| CPU Usage | How much CPU OBS uses | Leave headroom; a CPU at its limit ends in encoding lag |
For an alert when the stream drops while you are away, see how to monitor a 24/7 live stream.
On a VPS
On a VPS, x264 on the CPU does the encoding, so everything above applies, with three changes:
- Let Stats pick the preset. Start at veryfast and move to superfast or ultrafast as soon as Stats shows "Skipped frames due to encoding lag". Your headroom depends on the cores in your plan, not on what a guide ran on a desktop.
- Set the bitrate by the platform cap, not by the 75% rule; a server uplink is rarely the limit (see the 1 Gbps example in Step 2).
- Keep the scene light. Every source costs CPU time that x264 needs.
On a Space-Node streaming VPS, OBS Studio comes pre-installed, you work in it from your web browser without RDP, and the uplink is 1 Gbps. Pick x264 in the encoder menu as in Step 1. The full server setup is in 24/7 OBS streaming from a VPS and cloud OBS VPS setup.
Connecting to YouTube, Twitch and Kick
- YouTube: Settings > Stream, pick the YouTube RTMPS entry as Service and "Primary YouTube ingest server" as Server (a backup server is in the same list). Paste the stream key from YouTube Studio, which you reach through Create > Go live. YouTube asks for a verified channel and no live streaming restrictions in the past 90 days before you can go live.
- Twitch: Service "Twitch", pick a server close to the machine, and paste the key from dashboard.twitch.tv/settings/stream, the page OBS's Twitch entry links to.
- Kick: Service "Custom...", then paste the Server URL and Stream Key from your Kick creator dashboard under Channel > Stream URL and Key.
Test Before You Leave It Running
- Day 1, 3 hours: the three frame counters in Stats should stay at or near zero.
- Day 2, 8 hours: Memory Usage should level off.
- Day 3, 24 hours: open Help > Log Files > View Current Log and search for "Reconnecting in". Every line is a disconnect OBS tried to recover from.
If OBS crashes, use Help > Log Files > Upload Current Log File and share that link when you ask for help on the OBS forums or Discord. Once it runs, change settings and update OBS only when you can watch the result.
Home PC or Server?
A home PC ties the stream to your Windows updates, your power and your home upload. If those keep ending it, move OBS to a server with the same settings plus the VPS notes above; our streaming plans are one way to do that.
FAQ
What is the best bitrate for a 24/7 YouTube stream?
For 1080p30 with H.264, YouTube lists 5 Mbps minimum and 14 Mbps recommended; for 720p30, 3 and 8 Mbps. Pick the highest value in that range that stays under 75% of your upload.
Can OBS reconnect forever?
No. Maximum Retries runs from 1 to 10000. The default of 25 gives up after roughly three hours; 10000 with a 2 s Retry Delay keeps trying for about 104 days.
Should I use x264 or a hardware encoder for 24/7 streaming on a VPS?
x264. It needs no graphics hardware, so it works on any server. Start at veryfast and go faster if Stats shows skipped frames due to encoding lag.
Does "Close file when inactive" stop OBS memory leaks?
No. It closes the file while the source is not displayed so you can change the file. A loop that is always on screen is never inactive, so it does nothing there.
What keyframe interval should I use for a 24/7 stream?
2 seconds. YouTube recommends 2 and says not to exceed 4, Kick's guide says 2 s, and OBS's Twitch entry sets 2.
Is 60 fps worth it for a 24/7 stream?
Only if the picture moves a lot. 60 fps doubles the frames x264 encodes, and YouTube's recommended 1080p bitrate rises from 14 to 17 Mbps. OBS's performance page suggests 30 when 60 does not hold.
Sources
All opened on 4 November 2026:
- OBS Studio 33.0.1: OBSBasic.cpp (reconnect, video, audio and stream delay defaults)
- OBS Studio 33.0.1: OBSBasicSettings.ui (Retry Delay and Maximum Retries ranges, Network options)
- OBS Studio 33.0.1: obs-output.c (reconnect backoff and 15 minute cap)
- OBS Studio 33.0.1: OBSApp.cpp (Process Priority default)
- OBS Studio 33.0.1: obs-x264.c (x264 defaults)
- OBS Studio 33.0.1: x264 setting labels
- OBS Studio 33.0.1: interface text (Stats, menus, settings labels)
- OBS Studio 33.0.1: Media Source text (Close file when inactive tooltip)
- OBS Studio 33.0.1: VLC Video source text
- OBS Studio 33.0.1: services.json (Twitch and YouTube entries)
- OBS Studio 33.0.1: rtmp-common.c (how a service entry is applied)
- OBS Studio 33.0.1: AdvancedOutput.cpp (bitrate cap and the ignore option)
- OBS: Stream Connection Troubleshooting
- OBS: Encoding Performance Troubleshooting
- YouTube Help: Choose live encoder settings, bitrates, and resolutions
- YouTube Help: Get started with live streaming
- Kick Help Center: How to stream on Kick.com
- Microsoft Support: Pause updates in Windows
- Microsoft Support: Power settings in Windows 11