Technical Guides

How to Record and Stream at the Same Time in OBS Without Lag

Pressing both buttons is easy. The hard part is keeping the stream smooth while your computer encodes twice and writes hours of video to disk at the same time.

Yes, OBS can do it, but it has a cost

OBS records and streams at the same time without complaint: you click Start Streaming, then Start Recording, and you have both. What nobody tells you is that, depending on your settings, your computer may be doing the work twice: encoding the video for the stream, encoding it again for the recording and writing several gigabytes per hour to disk on top of that.

When someone writes to us because "the stream only lags when I record", the cause is almost always that: two encodes on a machine that could barely handle one. The good news is that it can be fixed, and there are three setups that work depending on your hardware and what you plan to do with the recording.

Why it lags: what the Stats dock tells you

Before changing anything, open the Stats dock from the Docks menu and record and stream for a few minutes. Three counters separate the causes:

OBS counterWhat it meansWhat to do
Skipped frames due to encoding lagThe encoder cannot keep up: it is doing too muchRecord with the stream encoder or move recording to the GPU
Frames missed due to rendering lagThe GPU cannot draw your scenes in timeSimplify scenes, filters and browser sources
Dropped frames (Network)Your internet cannot sustain the bitrateLower the bitrate or check your upload; recording is not the cause

If you also see the encoding overloaded warning, you already know what is going on: your CPU is maxed out. The first two setups below target exactly that.

Setup 1: record with the stream encoder

This is the lightest option. OBS encodes once and uses that same output for both the stream and the recording. Your computer barely notices: the only extra load is writing to disk.

  • In Settings, Output, with Output Mode set to Simple, choose Same as stream as the recording quality.
  • In Advanced mode, go to the Recording tab and pick (Use stream encoder) as the video encoder.

The trade-off is that the recording has exactly the quality of the stream. Stream at 6 Mbps and you record at 6 Mbps. For archiving, uploading the full video to YouTube or publishing it on your website, that is plenty. For demanding editing with zooms and crops, it falls short.

Setup 2: two encoders, one on the GPU

If you want a recording better than the stream, you need two encodes. The trick is not to put both on the CPU. NVIDIA cards (NVENC), AMD cards (AMF) and Apple Silicon Macs have a dedicated video encoding chip that works separately from the processor.

  1. Switch Output Mode to Advanced.
  2. Leave the stream on its usual encoder and constant bitrate (CBR).
  3. In the Recording tab, choose the hardware encoder and a quality-based rate control (CQP or similar) instead of a fixed bitrate.
  4. Record a ten-minute test with your real scenes and check that skipped frames stay at zero.

Watch your disk. An edit-quality recording can run at 40 Mbps, which is about 18 GB per hour. Record to an SSD with plenty of free space, never to the nearly full system drive. To estimate how much space your event will take, see our table of how many GB one hour of video takes at each quality.

The format: MKV or Hybrid MP4, never plain MP4

This setting has nothing to do with lag, but everything to do with not losing the recording. A traditional MP4 writes its index at the end of the file: if OBS crashes or the power goes out, the whole file is unusable.

You have two safe choices under Recording Format. The first is MKV, which keeps everything recorded up to the last second; afterwards you convert it with File, Remux Recordings, or turn on automatic remux to MP4 in the advanced settings. The second is Hybrid MP4, available since OBS 30.2, designed to survive unexpected shutdowns and open without conversion in most editors.

Setup 3: let the server record

The third option takes recording off your computer entirely. OBS only streams, and the server saves what it receives. Your machine encodes once and writes nothing to disk: the recording no longer depends on its free space, its CPU or OBS closing the file properly.

That is how Recording Cloud, XtreamCast's cloud recording, works. With your channel live you click Start Recording in the panel, or schedule the recording by date and time with the option to wait until the channel is live. Each block can last up to 12 hours, the file is an MP4 ready to download, and Split closes one file and opens the next without cutting the stream, which is handy for separating talks or segments of a long event.

When the recording finishes, it can publish itself to your OnDemand library, YouTube and Facebook with your connected accounts. Recording Cloud is included in every paid video plan, starting at USD 25/month, and recordings share the plan's storage with your OnDemand videos: Started+ comes with 5 GB.

To be straight about it: the server records what it receives, so the file has the quality of your stream. If you need a higher-quality master for editing, combine this with setup 2 and you get two copies, a local one for editing and one in the cloud as a backup.

Which setup should you use?

Your situationSetup
Laptop or a modest PC1 (stream encoder) or 3 (record on the server)
You will edit at maximum quality2 (hardware encoder), ideally with 3 as a backup
Weekly streams you archive or publish3: it records itself and lands in your library
An event that cannot be repeated1 or 2 locally plus 3 in the cloud: two copies in different places

And if the goal is to reuse the stream on social media, the recording is only the start: that is where your clips for Reels, TikTok and Shorts come from.

The ten-minute test before every event

  1. Stream and record for ten minutes with the event's real scenes, cameras and audio.
  2. Check the Stats dock: skipped and missed frames should stay at or very close to zero.
  3. Open the recorded file all the way to the end and listen to the audio, not just the first seconds.
  4. Work out the space: event hours times GB per hour, plus 50% headroom.
  5. If you record in the cloud, check how much storage is left in the panel: if it fills up, the recording stops.

Ten minutes that spare you the worst call of the next day: someone asking for a recording that does not exist.

Record every stream without loading your computer

Recording Cloud records on the server while you stream, with one click or on a schedule, and publishes to YouTube, Facebook and your website. Included in paid video plans.