I want to make a 4k game video for Youtube but I only have access to a 1440p monitor. On Windows I could use DSR, how do I do this in Linux? Kubuntu, KDE Plasma 6.4.5, RTX 2080, Nvidia driver version 580.95.05

  • Emperor@reddthat.com
    link
    fedilink
    English
    arrow-up
    29
    ·
    5 days ago

    You can use gamescope to set a higher or lower resolution and it’ll down or up scale it to your screen.

    I presume you can use obs or something like that to record the raw footage before scaling.

    • Die4Ever@retrolemmy.comOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      5 days ago

      ok I installed gamescope, and set my launch options (for Deus Ex)

      gamescope -w 3840 -h 2160 -W 2560 -H 1440 -b -- %command%

      It seems like it sorta works, Kentie’s Launcher is big (like when I tried this in Bazzite’s Gaming Mode), and the 3840x2160 resolution is an available option, but when I try to launch the game and Kentie’s Launcher closes to launch the game, gamescope just dies and the game never starts

      EDIT: I have a workaround by just skipping the config dialog

      gamescope -w 3840 -h 2160 -W 2560 -H 1440 -b -- %command% -skipdialog

      But OBS is only capturing at 2560x1440, so this idea doesn’t work

        • Die4Ever@retrolemmy.comOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 days ago

          I did try this but I couldn’t get it working with Flatpak OBS and native Steam. I even built it from source and added obs-gamecapture to the Steam game’s launch command

          • Emperor@reddthat.com
            link
            fedilink
            English
            arrow-up
            3
            ·
            4 days ago

            It works just fine for me. What are the steps that you did?

            I use nix so:

            1. I installed OBS with all the plugins especially obs-vscapture
            2. Run OBS and add Game Capture Source
            3. Using lutris I enabled gamescope and changed the game resolution to something higher. I have a 1440p display so I tried 2560x1600 (16:10) to make sure I’m capturing it right.
            4. Inside Lutris System Options game options tab I added OBS_VKCAPTURE and set it to 1.
            5. When I run the game I can see gamescope is working as it’s projecting a 16:10 game onto my 16:9 screen.
            6. Inside OBS I can see the game capture is working and when I select the Game Capture source it shows that it’s a bit too tall for my display.

            Should be a similar thing for you, I would try something obvious like 16:10 first so you can get immediate visual feedback and then tweak your settings from there.

      • JaddedFauceet@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 days ago

        Use 3840 for both -w and -W?

        gamescope -w 3840 -h 2160 -W 3840 -H 2160 -b -- %command% -skipdialog
        

        Instruction:

        [gamescope] [Info]  console: gamescope version 3.16.19 (gcc 15.2.1)
        usage: gamescope [options...] -- [command...]                                                                                                                                     
        Options:
          --help                         show help message
          -W, --output-width             output width
          -H, --output-height            output height
          -w, --nested-width             game width
          -h, --nested-height            game height
        
        • Die4Ever@retrolemmy.comOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          5 days ago

          that works but then it doesn’t fit on my screen so I can’t see what I’m doing in the game lol

            • Die4Ever@retrolemmy.comOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              4 days ago

              This ALMOST works lol. The problem is the center of the game is off-screen, and the game tries to keep the mouse centered in its center, so my camera just spins like crazy lol

              Maybe I can fix this with some abuse of my multi monitor layout

    • Mugita Sokio@lemmy.today
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 days ago

      Can confirm that my producer and I use a 1440p resolution, but downscale to 1080p, or even 936p (if you’re on platforms that limit bandwidth).

  • GreenMinusBlue@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    5 days ago

    Ive seen resolution tinkering with the Nvidia driver on Windows. Its doubtful that the proprietary driver would allow it, on Linux.

    • Die4Ever@retrolemmy.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      What if I switch to the Nouveau drivers? Deus Ex would probably still run well enough, so if they can do custom resolutions that could help