What's the proper system setup to record WINE?

Mrhnhrm

New Member
Hi, and thanks for taking a look.

Has anyone ever had any success with recording WINE? If so, what is your system setup? Asking because when I try to capture an XSHM screen as a whole, fullscreen WINE in OBS shows up as a void black image. When I try to capture a specific Xcomposite window, it only shows up in OBS while it is active... which means that I can't Alt-Tab into OBS to reposition the image on the canvas.

Overview of my setup.
  • Gentoo Linux (yep, the ultimate Wild West of distros)
  • OBS 30.2.1
  • X.Org 21.1.13
  • Mesa 24.0.9
  • x11-drivers/xf86-video-amdgpu 23.0.0
  • amdgpu-pro-amf 1.4.33.1718238, accelerated encoding works
  • KDE Plasma 5.27.11
  • Qt 5.15.14
  • vanilla Wine 9.11
Thanks in advance.
 

hurikhan77

New Member
If you record using DXVK or vkd3d (which is used by Proton), try obs-vkcapture. It does window capture only but with very good performance. I'm using it with NVIDIA.

obs-vkcapture can also capture OpenGL apps but that may work less well.

Due to its nature, it will probably not capture any standard wine windows, at least it won't capture game launchers.

But maybe, for full screen, it works around your alt+tab problem. At least I can alt+tab out of the game and it still records - but I'm using multi monitors and run games in borderless window instead of exclusive fullscreen.
 

Mrhnhrm

New Member
After poking around, I believe I found an adequate solution.

gamescope

It requires Wayland to be supported on the system, but runs from X11 environments just fine. Which is good, because Wayland OBS is a can of worms in its own right.

Set up the game to run in a window, then run it through the gamescope. For example, a game runs in 720p resolution, and I want to stretch it to a 1440p screen in borderless pseudo-fullscreen fashion:

@ gamescope -h 720 -H 1440 -b -- wine game.exe

OBS captures a XSHM screen as usual, this time together with the game.
 
Top