-
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the nightly release?
Describe the BugRecently I haven't been able to get vaapi working on Arch Linux with amdgpu.
Sunshine then uses software encoding as fallback. Expected BehaviorSunshine launches and vaapi encoding works. Additional ContextHardware decoding with vaapi seems to be working fine in mpv.
Host Operating SystemLinux Operating System VersionArch Linux Architecture64 bit Sunshine commit or version0.20.0 PackageLinux - PKGBUILD GPU TypeAMD GPU ModelRX 7900 XTX GPU Driver/Mesa VersionMesa 23.1.8, Kernel 6.5.5 Capture Method (Linux Only)KMS Configoutput_name = 0
capture = kms
log_path = /home/teixeira/.sunshine.log
resolutions = [
352x240,
480x360,
858x480,
1280x720,
1920x1080,
2560x1080,
3440x1440,
1920x1200,
3860x2160,
3840x1600,
3840x2160
]
min_log_level = 2
origin_web_ui_allowed = wan
hevc_mode = 0
encoder = vaapi AppsNo response Relevant log output[encoder] -- [vaapi]
[hevc_mode] -- [0]
[origin_web_ui_allowed] -- [wan]
[min_log_level] -- [2]
[resolutions] -- [[
352x240,
480x360,
858x480,
1280x720,
1920x1080,
2560x1080,
3440x1440,
1920x1200,
3860x2160,
3840x1600,
3840x2160
]]
[log_path] -- [/home/teixeira/.sunshine.log]
[capture] -- [kms]
[output_name] -- [0]
[2023:09:30:18:19:59]: Info: Sunshine version: 0.20.0.f76879eb0dc287f09ae3810bd61b191f21344f78
[2023:09:30:18:19:59]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2023:09:30:18:19:59]: Info: Trying encoder [vaapi]
[2023:09:30:18:19:59]: Info: Screencasting with KMS
[2023:09:30:18:19:59]: Info: Found monitor for DRM screencasting
[2023:09:30:18:19:59]: Info: Screencasting with KMS
[2023:09:30:18:19:59]: Info: Found monitor for DRM screencasting
[2023:09:30:18:19:59]: Info: System tray created
[2023:09:30:18:19:59]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:19:59]: Info: Color depth: 8-bit
[2023:09:30:18:19:59]: Info: Color range: [JPEG]
[2023:09:30:18:19:59]: Info: vaGetDriverNames() failed with operation failed
[2023:09:30:18:19:59]: Error: Couldn't initialize va display: operation failed
[2023:09:30:18:19:59]: Info: Screencasting with KMS
[2023:09:30:18:19:59]: Info: Found monitor for DRM screencasting
[2023:09:30:18:19:59]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:19:59]: Info: Color depth: 8-bit
[2023:09:30:18:19:59]: Info: Color range: [JPEG]
[2023:09:30:18:19:59]: Info: vaGetDriverNames() failed with operation failed
[2023:09:30:18:19:59]: Error: Couldn't initialize va display: operation failed
[2023:09:30:18:19:59]: Info: Screencasting with KMS
[2023:09:30:18:19:59]: Info: Found monitor for DRM screencasting
[2023:09:30:18:19:59]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:19:59]: Info: Color depth: 8-bit
[2023:09:30:18:19:59]: Info: Color range: [JPEG]
[2023:09:30:18:19:59]: Info: vaGetDriverNames() failed with operation failed
[2023:09:30:18:19:59]: Error: Couldn't initialize va display: operation failed
[2023:09:30:18:19:59]: Info: Screencasting with KMS
[2023:09:30:18:19:59]: Info: Found monitor for DRM screencasting
[2023:09:30:18:20:00]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:20:00]: Info: Color depth: 8-bit
[2023:09:30:18:20:00]: Info: Color range: [JPEG]
[2023:09:30:18:20:00]: Info: vaGetDriverNames() failed with operation failed
[2023:09:30:18:20:00]: Error: Couldn't initialize va display: operation failed
[2023:09:30:18:20:00]: Info: Encoder [vaapi] failed
[2023:09:30:18:20:00]: Error: Couldn't find any working encoder matching [vaapi]
[2023:09:30:18:20:00]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:09:30:18:20:00]: Info: Trying encoder [nvenc]
[2023:09:30:18:20:00]: Info: Screencasting with KMS
[2023:09:30:18:20:00]: Info: Found monitor for DRM screencasting
[2023:09:30:18:20:00]: Info: Screencasting with KMS
[2023:09:30:18:20:00]: Info: Found monitor for DRM screencasting
[2023:09:30:18:20:00]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:20:00]: Info: Color depth: 8-bit
[2023:09:30:18:20:00]: Info: Color range: [JPEG]
[2023:09:30:18:20:00]: Error: [AVHWDeviceContext @ 0x561402baf280] Cannot load libcuda.so.1
[2023:09:30:18:20:00]: Error: [AVHWDeviceContext @ 0x561402baf280] Could not dynamically load CUDA
[2023:09:30:18:20:00]: Error: Failed to create a CUDA device: Operation not permitted
[2023:09:30:18:20:00]: Info: Screencasting with KMS
[2023:09:30:18:20:00]: Info: Found monitor for DRM screencasting
[2023:09:30:18:20:00]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:20:00]: Info: Color depth: 8-bit
[2023:09:30:18:20:00]: Info: Color range: [JPEG]
[2023:09:30:18:20:00]: Error: [AVHWDeviceContext @ 0x561402987ac0] Cannot load libcuda.so.1
[2023:09:30:18:20:00]: Error: [AVHWDeviceContext @ 0x561402987ac0] Could not dynamically load CUDA
[2023:09:30:18:20:00]: Error: Failed to create a CUDA device: Operation not permitted
[2023:09:30:18:20:00]: Info: Screencasting with KMS
[2023:09:30:18:20:00]: Info: Found monitor for DRM screencasting
[2023:09:30:18:20:00]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:20:00]: Info: Color depth: 8-bit
[2023:09:30:18:20:00]: Info: Color range: [JPEG]
[2023:09:30:18:20:00]: Error: [AVHWDeviceContext @ 0x561402b43f80] Cannot load libcuda.so.1
[2023:09:30:18:20:00]: Error: [AVHWDeviceContext @ 0x561402b43f80] Could not dynamically load CUDA
[2023:09:30:18:20:00]: Error: Failed to create a CUDA device: Operation not permitted
[2023:09:30:18:20:00]: Info: Screencasting with KMS
[2023:09:30:18:20:00]: Info: Found monitor for DRM screencasting
[2023:09:30:18:20:00]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:20:00]: Info: Color depth: 8-bit
[2023:09:30:18:20:00]: Info: Color range: [JPEG]
[2023:09:30:18:20:00]: Error: [AVHWDeviceContext @ 0x561402b30340] Cannot load libcuda.so.1
[2023:09:30:18:20:00]: Error: [AVHWDeviceContext @ 0x561402b30340] Could not dynamically load CUDA
[2023:09:30:18:20:00]: Error: Failed to create a CUDA device: Operation not permitted
[2023:09:30:18:20:00]: Info: Encoder [nvenc] failed
[2023:09:30:18:20:00]: Info: Trying encoder [software]
[2023:09:30:18:20:00]: Info: Screencasting with KMS
[2023:09:30:18:20:00]: Info: Found monitor for DRM screencasting
[2023:09:30:18:20:00]: Info: Screencasting with KMS
[2023:09:30:18:20:00]: Info: Found monitor for DRM screencasting
[2023:09:30:18:20:00]: Info: SDR color coding [Rec. 601]
[2023:09:30:18:20:00]: Info: Color depth: 8-bit
[2023:09:30:18:20:00]: Info: Color range: [JPEG]
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] profile High, level 4.2, 4:2:0, 8-bit
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] frame I:1 Avg QP: 6.21 size: 1169
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] mb I I16..4: 100.0% 0.0% 0.0%
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] 8x8 transform intra:0.0%
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] i16 v,h,dc,p: 99% 0% 1% 0%
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 0% 0% 100% 0% 0% 0% 0% 0% 0%
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] i8c dc,h,v,p: 100% 0% 0% 0%
[2023:09:30:18:20:00]: Info: [libx264 @ 0x561402ac0400] kb/s:561.12
[2023:09:30:18:20:00]: Info:
[2023:09:30:18:20:00]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:09:30:18:20:00]: Info:
[2023:09:30:18:20:00]: Info: Found H.264 encoder: libx264 [software]
[2023:09:30:18:20:00]: Info: Configuration UI available at [https://localhost:47990]
[2023:09:30:18:20:00]: Info: Adding avahi service Sunshine
[2023:09:30:18:20:00]: Info: Avahi service Sunshine successfully established. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 13 replies
-
Same issue, same OS, with a 7900 XT. I've raised it on Discord: https://discord.com/channels/804382334370578482/1157705348073934899 |
Beta Was this translation helpful? Give feedback.
-
FYI, if you really need it to work right now you can try downgrading libva to 2.19 along with the mesa and libva-mesa-driver packages. Not sure which version of mesa and libva-mesa-driver you would need, but this worked for me for a while until I eventually had to upgrade my system. |
Beta Was this translation helpful? Give feedback.
-
Closed accidentally, sorry. |
Beta Was this translation helpful? Give feedback.
-
If you are using PKGBUILD... whenever you update a dependency of Sunshine you need to recompile Sunshine... so re-install it! |
Beta Was this translation helpful? Give feedback.
-
I get this message at the moment during initialisation but it doesn't seem to prevent vaapi hardware encoding from working afterwards. |
Beta Was this translation helpful? Give feedback.
-
Try to update your system to the latest Mesa 23.2.1 and libva 2.20.0. This solved the issue for me on RX 6700 XT. Sunshine still keeps spamming the log with error messages but vaapi seems to work well now.
|
Beta Was this translation helpful? Give feedback.
-
I have a fix for this bug in #1694. Please test that and check that it fixes the warnings. Test packages are available here: https://github.com/LizardByte/Sunshine/actions/runs/6376308574?pr=1694 |
Beta Was this translation helpful? Give feedback.
-
This issue has been fixed and will be available in the next release. |
Beta Was this translation helpful? Give feedback.
I have a fix for this bug in #1694. Please test that and check that it fixes the warnings.
Test packages are available here: https://github.com/LizardByte/Sunshine/actions/runs/6376308574?pr=1694