Skip to content

MIDNI6HT/OBS-Replay-Buffer-Linux-Tips-and-Tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tips and Tricks to make a Shadowplay like Replay Buffer in OBS

Enabling the Replay buffer

Go to Settings → Output

Select "Advanced" Output Mode at the top and then navigate to "Replay Buffer" tap and Enable it with the checkbox.

image

Select the replay buffer desired time and if you have a good amount of memory in your system, increase the Maximum memory a little. I have set mine to 2048 MB later on.

Setting Replay Buffer Hotkeys

In the settings menu, navigate to "Hotkeys" and then search for "Replay" in the hotkey search bar at the top.

You can set both the "Start Replay Buffer" and "Stop Replay Buffer" hotkeys to the same shortcut if you want it to work like a toggle. The sound notification script below would be helpful to make out the state of the replay buffer then.

image

Note: If you're running OBS Studio Flatpak on wayland, you might need to use this script to enable global hotkeys even when the app is not in focus.

OBS Linux Replay Buffer Sound Notifications

This is a simple Lua script that plays a .wav sound whenever the replay buffer is saved, enabled, or disabled. It has been adapted for Linux support using PulseAudio or ALSA.

Installation

  1. Ensure that aplay (ALSA) or paplay (PulseAudio) is installed on your system. Run 'aplay' or 'paplay' and see if the commands work for you, if not, try installing them following your own distro's instructions. This script is set to use 'paplay'by default.

Ensure that the sound file is in a format supported by the utility (e.g., .wav for aplay and .wav/.ogg for paplay).

  1. Use the sounds in the repo or any .wav sound but make sure to match its name either in "Replay_Buffer_Sound.lua" (edit with any text editor) or rename your .wav files to match what is already in the script.

  2. Put the audio files in the same location with "Replay_Buffer_Sound.lua"

    • A good way to keep things tidy is to create a separate "scripts" folder somewhere in your Home and keep all your scripts there in case you need to back up your OBS Settings.
  3. Go to OBS → Tools → Scripts → + and then select the script file.

This Lua script was forked from https://gist.github.com/snakecase/e816384a071cec31efbb4b9e429c108d

Tips for autostart

Make sure to enable the system tray and minimize to system tray in the general settings (See pic below)

image

Set up OBS Studio to auto-start using your own desktop environment's autostart options and then add the launch argument "--startreplaybuffer" to start the replay buffer automatically at startup.

For example on Linux Mint using Cinnamon 6.2.9:

image

On Bazzite using KDE Plasma 6.6:

image

Credits

Thank you guys!

About

A collection of tips and tricks to make OBS Studio's Replay Buffer feature work like Nvidia's Shadowplay with resources for scripts to help enhance the experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages