MIT License

项目介绍

MAPReiff/ShadowRePlay-Linux 是一个托管在 GitHub 上的开源项目,主要使用 Shell 编写,采用 MIT License 许可证,目前获得 145 个 Star、6 次 Fork。

仓库全名
MAPReiff/ShadowRePlay-Linux
开源许可证
MIT License
Star 数
145
Fork 数
6
未关闭 Issue
10

README 摘要

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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ShadowRePlay-Linux 用什么语言开发?

主要使用 Shell 编写,采用 MIT License 许可证,目前有 145 个 Star。

ShadowRePlay-Linux 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 ShadowRePlay-Linux 的源码?

可以直接克隆仓库:git clone https://github.com/MAPReiff/ShadowRePlay-Linux.git,默认分支为 master;安装与运行步骤见仓库 README。

ShadowRePlay-Linux 最近还在维护吗?

仓库最近一次更新为 2022年2月10日,当前有 10 个未关闭 Issue;Star 数为 145,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Shadowplay's Replay Feature On Linux For Nvidia, AMD and Intel

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
161
价值分
88
活跃状态
活跃

语言占比

Shell

README

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.

评论

暂无评论