Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KMSGrab recording device only captures one display at a time #75

Open
melvyn2 opened this issue Dec 19, 2020 · 7 comments
Open

KMSGrab recording device only captures one display at a time #75

melvyn2 opened this issue Dec 19, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@melvyn2
Copy link

melvyn2 commented Dec 19, 2020

Describe the bug
When using kms or hwaccel as the videoInput values, only the second display is captured if the second display is enabled. When it is disabled, the first display is properly captured. Using x11 instead properly captures both (or one if I set an offset), but is undesirable because of its high CPU usage.

Desktop:

  • Distro: Arch
  • Desktop Environment: KDE
  • Window Manager: SDDM

Configuration:
replay-sorcery.txt

Logs:
rslog.txt

@matanui159
Copy link
Owner

My only theory right now is that each display is connected to different "cards" (or at the very least KMS treats them as different cards). Can you run echo /dev/dri/card* to see how many different card devices are on your system?

@melvyn2
Copy link
Author

melvyn2 commented Dec 19, 2020

$ ls -l /dev/dri
total 0
drwxr-xr-x  2 root root         80 Dec 18 16:25 by-path
crw-rw----+ 1 root video  226,   0 Dec 19 12:21 card0
crw-rw-rw-  1 root render 226, 128 Dec 18 16:25 renderD128

@matanui159
Copy link
Owner

Only other theory I can come up with is that it's using the wrong CRTC ID but I don't know any way to list those

@matanui159
Copy link
Owner

I had a play around with this and I am experimenting with listing/selecting specific DRM cards and planes. Can you checkout and build latest master and run replay-sorcery kms-devices? You will need libdrm development libraries installed.

@melvyn2
Copy link
Author

melvyn2 commented Dec 23, 2020

./replay-sorcery kms-devices
card0:48 (1920x1080x24)
card0:50 (1920x1080x24)

@matanui159
Copy link
Owner

Looks like there's a plane for each display and no combined one. There's not really much I can do about that and I'm not sure if there's anyway to configure these. But at the very least you can specify which one you want now with the videoDevice option.

@melvyn2
Copy link
Author

melvyn2 commented Dec 23, 2020

That should be good enough, thanks for giving this a look. I'll leave this issue open with a different title as a tracker in case a solution pops up.

@melvyn2 melvyn2 changed the title KMSGrab recording device only captures second display KMSGrab recording device only captures one display at a time Dec 23, 2020
@matanui159 matanui159 added the bug Something isn't working label Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants