diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-01-29 13:14:21 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-01-29 13:14:21 +0100 |
commit | f34c8291debbd0d9c9d557527857c672d0c67e0a (patch) | |
tree | 97aa7d65426d8702ad6d4895d999f4a1ceb325e2 | |
parent | 5db779d76c4d9ca90d6b91431c28c061ebf71c95 (diff) |
Use variable framerate mode by default on nvidia x11 too
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/main.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -22,7 +22,7 @@ This software works with x11 and wayland, but when using AMD/Intel or Wayland th ### TEMPORARY ISSUES 1) screen-direct capture has been temporary disabled as it causes issues with stuttering. This might be a nvfbc bug. 2) Recording the monitor on steam deck might fail sometimes. This happens even when using ffmpeg directly. This might be a steam deck driver bug. Recording a single window doesn't have this issue. -3) Videos created on AMD/Intel are in variable framerate format. Use MPV to play such videos, otherwise you might experience stuttering in the video if you are using a buggy video player. Try saving the video into a .mkv file instead when using AMD/Intel, as some software may have better support for .mkv files (such as kdenlive). +3) Videos are in variable framerate format. Use MPV to play such videos, otherwise you might experience stuttering in the video if you are using a buggy video player. Try saving the video into a .mkv file instead when using AMD/Intel, as some software may have better support for .mkv files (such as kdenlive). You can use the "-fm cfr" option to to use constant framerate mode. ### AMD/Intel/Wayland root permission When recording a window under AMD/Intel no special user permission is required, however when recording a monitor (or when using wayland) the program needs root permission (to access KMS).\ To make this safer, the part that needs root access has been moved to its own executable (to make it as small as possible).\ diff --git a/src/main.cpp b/src/main.cpp index 801625e..1e0757a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -819,7 +819,7 @@ static void usage_full() { fprintf(stderr, " is dropped when you record a game. Only needed if you are recording a game that is bottlenecked by GPU. The same issue exists on Wayland but overclocking is not possible on Wayland.\n"); fprintf(stderr, " Works only if your have \"Coolbits\" set to \"12\" in NVIDIA X settings, see README for more information. Note! use at your own risk! Optional, disabled by default.\n"); fprintf(stderr, "\n"); - fprintf(stderr, " -fm Framerate mode. Should be either 'cfr' or 'vfr'. Defaults to 'cfr' on NVIDIA X11 and 'vfr' on AMD/Intel X11/Wayland or NVIDIA Wayland.\n"); + fprintf(stderr, " -fm Framerate mode. Should be either 'cfr' or 'vfr'. Defaults to 'vfr'.\n"); fprintf(stderr, "\n"); fprintf(stderr, " -v Prints per second, fps updates. Optional, set to 'yes' by default.\n"); fprintf(stderr, "\n"); @@ -1682,7 +1682,7 @@ int main(int argc, char **argv) { FramerateMode framerate_mode; const char *framerate_mode_str = args["-fm"].value(); if(!framerate_mode_str) - framerate_mode_str = (gpu_inf.vendor == GSR_GPU_VENDOR_NVIDIA && !wayland) ? "cfr" : "vfr"; + framerate_mode_str = "vfr"; if(strcmp(framerate_mode_str, "cfr") == 0) { framerate_mode = FramerateMode::CONSTANT; |