Gpu-screen-recorder: Difference between revisions
→Troubleshooting: Typo 'the' |
m added to Category:Applications |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[https://git.dec05eba.com/gpu-screen-recorder/about/ gpu-screen-recorder] is a screen recorder that has minimal impact on system performance by recording your monitor using the GPU only, similar to shadowplay on | [https://git.dec05eba.com/gpu-screen-recorder/about/ gpu-screen-recorder] is a screen recorder that has minimal impact on system performance by recording your monitor using the GPU only, similar to [https://www.nvidia.com/de-de/geforce/geforce-experience/shadowplay/ ShadowPlay] on Windows. | ||
==== Supported codecs ==== | ==== Supported codecs ==== | ||
Line 30: | Line 30: | ||
# Make sure your [[Nvidia|drivers]] are installed. | # Make sure your [[Nvidia|drivers]] are installed. | ||
# Install the missing the NVENC patch for your card. [https://github.com/icewind1991/nvidia-patch-nixos nvidia-patch] is a great overlay which you can use | # Install the missing the NVENC patch for your card. [https://github.com/icewind1991/nvidia-patch-nixos nvidia-patch] is a great overlay which you can use | ||
# Override the package build inputs and add the library to the wrapper.<syntaxhighlight lang="nix"> | # Override the package build inputs and add the library to the wrapper. | ||
(gpu-screen-recorder | |||
<syntaxhighlight lang="nix"> | |||
{ | |||
environment.systemPackages = [ | |||
(pkgs.runCommand "gpu-screen-recorder" { | |||
nativeBuildInputs = [ pkgs.makeWrapper ]; | |||
} '' | |||
mkdir -p $out/bin | |||
makeWrapper ${pkgs.gpu-screen-recorder}/bin/gpu-screen-recorder $out/bin/gpu-screen-recorder \ | |||
--prefix LD_LIBRARY_PATH : ${pkgs.libglvnd}/lib \ | --prefix LD_LIBRARY_PATH : ${pkgs.libglvnd}/lib \ | ||
--prefix LD_LIBRARY_PATH : ${ | --prefix LD_LIBRARY_PATH : ${config.boot.kernelPackages.nvidia_x11}/lib | ||
'') | |||
]; | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Applications]] |
Latest revision as of 15:59, 19 April 2024
gpu-screen-recorder is a screen recorder that has minimal impact on system performance by recording your monitor using the GPU only, similar to ShadowPlay on Windows.
Supported codecs
Video
- H264 (default on Intel)
- HEVC (default on AMD and NVIDIA)
- AV1
Audio
- Opus (default)
- AAC
- FLAC
Installation
environment.systemPackages = with pkgs; [
gpu-screen-recorder # CLI
gpu-screen-recorder-gtk # GUI
];
Troubleshooting
The possibility of this error arising exists if you possess an NVIDIA graphics card, as the package does not include the NVIDIA X11 libraries in its wrapper by default.
- Make sure your drivers are installed.
- Install the missing the NVENC patch for your card. nvidia-patch is a great overlay which you can use
- Override the package build inputs and add the library to the wrapper.
{
environment.systemPackages = [
(pkgs.runCommand "gpu-screen-recorder" {
nativeBuildInputs = [ pkgs.makeWrapper ];
} ''
mkdir -p $out/bin
makeWrapper ${pkgs.gpu-screen-recorder}/bin/gpu-screen-recorder $out/bin/gpu-screen-recorder \
--prefix LD_LIBRARY_PATH : ${pkgs.libglvnd}/lib \
--prefix LD_LIBRARY_PATH : ${config.boot.kernelPackages.nvidia_x11}/lib
'')
];
}