OBS

OBS Replay Buffer: Save the Last 30 Seconds as a Clip

Nemo · · 7 min read

The OBS Replay Buffer keeps the last seconds or minutes of your game in memory and writes them to a video file only when you press a hotkey. Enable it in Settings > Output, set Maximum Replay Time, give Save Replay a hotkey, then click Start Replay Buffer before you play.

Nothing is written to disk until you save. That is the difference from a recording: you can leave the buffer running for a whole evening and end up with five short files instead of one four-hour one.

What is the Replay Buffer in OBS?

It is a recording that only lives in memory. OBS encodes your scene the same way it would for a normal recording, keeps the newest stretch in RAM and throws away the oldest part as new video arrives. When you press Save Replay, OBS writes what it is holding to a file. The buffer keeps running after a save, so you can save again a minute later.

The Replay Buffer is part of OBS Studio on Windows, macOS and Linux. There is nothing to install.

How do you enable the Replay Buffer?

  1. Open Settings > Output.
  2. In Simple output mode, tick Enable Replay Buffer on that page. In Advanced output mode, open the Replay Buffer tab and tick Enable Replay Buffer there.
  3. Set Maximum Replay Time in seconds. The default is 20; 30 to 120 covers most plays.
  4. Click Apply. A Start Replay Buffer button appears in the Controls dock.
  5. Open Settings > Hotkeys, find the Replay Buffer group and give Save Replay a key you can reach during a fight.
  6. Click Start Replay Buffer before you play. Enabling the option does not start it.

Two things catch people here. First, OBS does not assign a save key for you: with no hotkey, the only way to save is the small save button next to Stop Replay Buffer. Second, most Output settings are locked while the buffer is running, so stop it before you change the length.

How long can the buffer be, and how much memory does it use?

The buffer is held in RAM, so its length is limited by memory, not by a fixed number of minutes. A rough size is replay time multiplied by bitrate.

Buffer length At 20 Mbps At 40 Mbps
30 seconds About 75 MB About 150 MB
60 seconds About 150 MB About 300 MB
2 minutes About 300 MB About 600 MB
5 minutes About 750 MB About 1.5 GB

With a quality-based rate control such as CQP or CRF the bitrate is not fixed, so OBS cannot work out the size in advance. In that case the settings show a Maximum Memory (Megabytes) field, and OBS stops growing the buffer when it reaches the time limit or the memory limit, whichever comes first. If your saved replays come out shorter than the time you set, raise that number.

In Advanced output mode the buffer uses the encoder from the Recording tab. Whatever you chose there (encoder, rate control, quality) is what the replays look like. The encoder choices are explained in OBS encoder settings.

Where do saved replays go?

Replays are saved to the same folder as recordings: the Recording Path in Settings > Output. File > Show Recordings opens that folder. The files use your recording format and start with the word “Replay” by default; the prefix can be changed under Settings > Advanced, in the Recording section.

Why is the Replay Buffer not working?

Problem Likely cause Fix
No Start Replay Buffer button The option is not enabled or not applied Tick Enable Replay Buffer in Settings > Output and click Apply
The hotkey does nothing in the game No key is set, or the game runs as administrator and OBS does not Set Save Replay in Settings > Hotkeys; run OBS as administrator
Replays are shorter than the time set The memory limit was reached first, or the buffer had just been started Raise Maximum Memory, or wait for the buffer to fill
The option is greyed out The buffer, a recording or a stream is running Stop the outputs, then change the setting
The replay is a black video The capture source shows nothing See OBS Game Capture black screen
Frame rate drops with the buffer on The buffer is a second encode on a busy GPU Cap the game’s frame rate a little, or lower the recording quality one step

The Replay Buffer is also unavailable when the recording type in Advanced output mode is set to Custom Output (FFmpeg). Switch the type back to Standard to use it.

Should you record the whole session too?

A replay buffer only saves what you noticed in time. If you remember the key ten seconds too late on a 20-second buffer, half the play is gone. Two habits help: set the buffer longer than the clip you want, because trimming is easy, and record the full session as well when the footage is for a video, since the Replay Buffer and a normal recording can run together.

For the wider picture, how to clip with OBS compares the buffer with recording and cutting afterwards, and OBS instant replay compares it with NVIDIA’s and AMD’s replay features.

How does GameClip use the Replay Buffer?

GameClip is a desktop app for macOS and Windows that turns gameplay recordings into clips: one highlights video and vertical cuts for Shorts, Reels and TikTok. Since version 0.3.0 it can drive OBS Studio through OBS’s built-in WebSocket server, with both apps on the same computer.

With OBS selected under Record with in the Recorder tab and Marks also save an OBS replay turned on, every mark key also tells OBS to save its Replay Buffer: F8 marks the last 30 seconds and F7 the last 2 minutes. This works with only the buffer running, so nothing else is recorded. Replays you save with OBS’s own Save Replay hotkey are picked up too. They are listed under Replays from OBS, and Open as a session opens them all as one session, each replay as one clip, ready to trim and export.

What it does not do: GameClip does not enable the Replay Buffer for you or change its length. You enable it in OBS as described above; GameClip starts the buffer when it connects if it is enabled but not running. Setup is in the guide to connecting OBS Studio, and the replay workflow is in OBS Replay Buffer clips. GameClip costs $39 once, and you can download it here.

FAQ

Does the OBS Replay Buffer record all the time?

It encodes all the time while it is running, but it only keeps the newest stretch in memory. Nothing is written to disk until you press Save Replay, and older video is discarded as new video comes in.

What is the hotkey for the OBS Replay Buffer?

There is no default. Open Settings > Hotkeys, find the Replay Buffer group and set a key for Save Replay. Start Replay Buffer and Stop Replay Buffer can have keys too, but the buttons in the Controls dock do the same job.

How long can an OBS replay be?

As long as your memory allows. Maximum Replay Time is set in seconds, and the buffer lives in RAM, so a longer replay at a higher bitrate needs more memory. For plays, 30 to 120 seconds is a practical range.

Does the Replay Buffer lower FPS?

About as much as recording does, because it runs the same encoder. With a hardware encoder such as NVENC, AMF or QuickSync the cost is usually small. On a GPU that is already at its limit you may see a drop.

Can you use the Replay Buffer while recording or streaming?

Yes. The buffer runs next to a recording or a stream. In Advanced output mode it follows the recording encoder settings, so the replay quality matches your recordings.

Why is my replay shorter than the time I set?

Either the buffer had not been running long enough to fill, or it reached the Maximum Memory limit before the time limit. Raise the memory value in the Replay Buffer settings and try again.

Contact

Licence keys, billing, bugs and ideas. We reply by email.