OBS Settings for 24/7 Streaming on a PC or VPS (2026)

Published on | Updated

OBS settings that keep a 24/7 stream live for days: x264 and CBR bitrates for YouTube, Twitch and Kick, 2 s keyframes, real reconnect values, a fallback scene.

A streamer at a desk with OBS on one monitor and a stream dashboard on the other

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.

SettingValueWhy
Video Encoderx264Runs on the CPU, so it behaves the same on any machine
Rate ControlCBRYouTube lists CBR, Kick's guide says CBR, and it is the x264 default in OBS
Bitratesee Step 2Depends on platform, resolution and upload
Keyframe Interval (0=auto)2 sYouTube 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)veryfastOBS'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:

PlatformOutputVideo bitrate (H.264)Source
YouTube720p30 or 720p60minimum 3,000 kbps, recommended 8,000 kbpsYouTube Help
YouTube1080p30minimum 5,000 kbps, recommended 14,000 kbpsYouTube Help
YouTube1080p60minimum 6,000 kbps, recommended 17,000 kbpsYouTube Help
Twitchanyup to 6,000 kbpsOBS's built-in Twitch entry
Kickup to 1920x1080 and 60 fpsup to 8,000 kbpsKick 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:

SettingDefaultRange in the settings window
Enableon
Retry Delay2 s1 to 30 s
Maximum Retries251 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 OBSWhat it meansWhat to change
Skipped frames due to encoding lagx264 cannot keep upFaster preset (superfast, ultrafast), lower output resolution, or 30 fps
Frames missed due to rendering lagOBS cannot draw the scene in timeFewer or lighter sources, lower resolution; on Windows, run OBS as administrator
Dropped Frames (Network)The connection is unstable or cannot carry the bitrateLower the bitrate, try the network options from Step 5
Memory UsageHow much memory OBS usesIt should level off; a line that keeps climbing points at a source, often a browser source
CPU UsageHow much CPU OBS usesLeave 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: