Skip to content

Latest commit

 

History

History
110 lines (42 loc) · 2.14 KB

README.md

File metadata and controls

110 lines (42 loc) · 2.14 KB

ShadowRePlay

Recreates Shadowplay's replay feature on Linux

  • compatible with Nvidia (nvenc), AMD (vaapi,amf/vce), Intel (quicksync) GPUs, as well as libx264.

Prerequisites

  • Have FFMPEG installed

  • sudo pacman -S ffmpeg

  • Have Xbindkeys installed

  • sudo pacman -S xbindkeys

  • Have libnotify installed

  • sudo pacman -S libnotify

Installation

If you are using an Arch-based Linux distribution, shadowreplay is in the AUR, so you can install it using your preferred AUR helper.

Its package name is shadowreplay-git.

If you are on a Debian-based distro like Ubuntu or anything else, shadowreplay can be installed by running the install file after cloning this repo.

This will install the required dependencies on Arch and install the systemd user service.

Configuration

Variables specific to your desired setup can be found in the example_config which is installed to $HOME/.config/shadowreplay

Setup

Keybind Setup

First, configure the key (or key combo) you want to use in order to save your replays.

  • For instructions on how to bind keys, check here

  • Consider making another bind for killing ShadowRePlay. (See below)

  • Bind a key to the command killall --user $USER --ignore-case --signal SIGTERM ffmpeg so it looks something like this:

# make F9 save ShadowRePlay replay

"killall --user $USER --ignore-case --signal SIGTERM ffmpeg"
F9

  

# make F10 kill ShadowRePlay

"killall -s1 ffmpeg"
F10
  • Start xbindkeys with xbindkeys -f ~/.xbindkeysrc, or reload it with killall -s1 xbindkeys if it's already running, for the new bind to take effect.

Usage

  • Run shadowreplay in a terminal

  • Press your configured hotkey to save the replay.

TODO

  • More flexible audio input support

  • Ability to downscale video output during recording

  • Dynamic video buffer size allocation based on resolution and FPS

Notes

Heavily inspired by Toqozz's script.

Thank you Tyler for answering my stupid questions while making this.