Sunshine
Sunshine copied to clipboard
Vaapi acceleration not working on Linux
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your issue described in the documentation?
- [X] I have read the documentation
Describe the Bug
I cant get vaapi hardware acceleration working for some reason i get this:
Im using Manjaro with KDE on X11
Expected Behavior
No response
Additional Context
No response
Host Operating System
Linux
Operating System Version
Manjaro
Architecture
None
Sunshine commit or version
0.15.0
Package
Linux - AppImage
GPU Type
AMD
GPU Model
RX 6800 XT
GPU Driver/Mesa Version
Mesa 22.2.4
Capture Method (Linux Only)
x11
Relevant log output
[amd_quality] -- [default]
[vt_software] -- [auto]
[origin_web_ui_allowed] -- [lan]
[amd_coder] -- [auto]
[nv_preset] -- [default]
[adapter_name] -- [/dev/dri/renderD128]
[upnp] -- [disabled]
[min_log_level] -- [2]
[min_threads] -- [2]
[vt_realtime] -- [enabled]
[key_rightalt_to_key_win] -- [disabled]
[origin_pin_allowed] -- [lan]
[resolutions] -- [[
352x240,
480x360,
858x480,
1280x720,
1920x1080,
2560x1080,
3440x1440,
1920x1200,
3860x2160,
3840x1600
]]
[nv_coder] -- [auto]
[amd_rc] -- [auto]
[hevc_mode] -- [2]
[nv_rc] -- [auto]
[dwmflush] -- [enabled]
[vt_coder] -- [auto]
[fps] -- [[10,30,60,90,120]]
[gamepad] -- [x360]
Cannot load libcuda.so.1
[2022:12:14:12:19:29]: Error: Couldn't load cuda: -1
[2022:12:14:12:19:29]: Error: Failed to gain CAP_SYS_ADMIN
[2022:12:14:12:19:29]: Error: Failed to gain CAP_SYS_ADMIN
[2022:12:14:12:19:29]: Error: Couldn't get handle for DRM Framebuffer [135]: Possibly not permitted: do [sudo setcap cap_sys_admin+p sunshine]
[2022:12:14:12:19:29]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2022:12:14:12:19:29]: Info: Detecting connected monitors
[2022:12:14:12:19:29]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2022:12:14:12:19:29]: Info: Trying encoder [nvenc]
[2022:12:14:12:19:29]: Info: Screencasting with X11
Cannot load libcuda.so.1
[2022:12:14:12:19:29]: Error: Couldn't load cuda: -1
[2022:12:14:12:19:29]: Info: Screencasting with X11
Cannot load libcuda.so.1
[2022:12:14:12:19:29]: Error: Couldn't load cuda: -1
[2022:12:14:12:19:29]: Info: Screencasting with X11
Cannot load libcuda.so.1
[2022:12:14:12:19:29]: Error: Couldn't load cuda: -1
[2022:12:14:12:19:29]: Info: Screencasting with X11
Cannot load libcuda.so.1
[2022:12:14:12:19:29]: Error: Couldn't load cuda: -1
[2022:12:14:12:19:29]: Info: Encoder [nvenc] failed
[2022:12:14:12:19:29]: Info: Trying encoder [vaapi]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Error: Couldn't open EGL display: [00003000]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Error: Couldn't open EGL display: [00003000]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Error: Couldn't open EGL display: [00003000]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Error: Couldn't open EGL display: [00003000]
[2022:12:14:12:19:29]: Info: Encoder [vaapi] failed
[2022:12:14:12:19:29]: Info: Trying encoder [software]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 601]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 601]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 601]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 601]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-4.1 (Main tier)
x265 [info]: Thread pool created using 24 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 2 / wpp(34 rows)
x265 [info]: Coding QT: max CU size, min CU size : 32 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 1 / 2
x265 [info]: Keyframe min / max / scenecut : disabled
x265 [info]: Lookahead / bframes / badapt : 0 / 0 / 0
x265 [info]: b-pyramid / weightp / weightb : 0 / 0 / 0
x265 [info]: References / ref-limit cu / depth : 1 / off / off
x265 [info]: Rate Control / qCompress : ABR-800 kbps / 0.60
x265 [info]: VBV/HRD buffer / max-rate / init : 80 / 800 / 0.750
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: fast-intra strong-intra-smoothing lslices=6 deblock
x265 [info]: frame I: 1, Avg QP:41.88 kb/s: 336.00
x265 [info]: consecutive B-frames: 100.0%
encoded 1 frames in 0.12s (8.22 fps), 336.00 kb/s, Avg QP:41.88
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 601]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [error]: maxNumReferences must be 1 or greater.
[2022:12:14:12:19:29]: Error: Could not open codec [libx265]: Invalid data found when processing input
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 709]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
x264 [error]: high profile doesn't support a bit depth of 10
[2022:12:14:12:19:29]: Error: Could not open codec [libx264]: Invalid argument
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 709]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [warning]: level 5 detected, but NumPocTotalCurr (total references) is non-compliant
x265 [info]: NONE profile, Level-NONE (Main tier)
x265 [info]: non-conformant bitstreams not allowed (--allow-non-conformance)
[2022:12:14:12:19:29]: Error: Could not open codec [libx265]: Invalid data found when processing input
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 601]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
[2022:12:14:12:19:29]: Info: Screencasting with X11
[2022:12:14:12:19:29]: Info: Color coding [Rec. 601]
[2022:12:14:12:19:29]: Info: Color range: [JPEG]
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-4.1 (Main tier)
x265 [info]: Thread pool created using 24 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 2 / wpp(34 rows)
x265 [info]: Coding QT: max CU size, min CU size : 32 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 1 / 2
x265 [info]: Keyframe min / max / scenecut : disabled
x265 [info]: Lookahead / bframes / badapt : 0 / 0 / 0
x265 [info]: b-pyramid / weightp / weightb : 0 / 0 / 0
x265 [info]: References / ref-limit cu / depth : 1 / off / off
x265 [info]: Rate Control / qCompress : ABR-800 kbps / 0.60
x265 [info]: VBV/HRD buffer / max-rate / init : 80 / 800 / 0.750
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: fast-intra strong-intra-smoothing lslices=6 deblock
x265 [info]: frame I: 1, Avg QP:41.88 kb/s: 336.00
x265 [info]: consecutive B-frames: 100.0%
encoded 1 frames in 0.11s (8.74 fps), 336.00 kb/s, Avg QP:41.88
[2022:12:14:12:19:30]: Warning: software: h264: replacing nalu prefix data
[2022:12:14:12:19:30]: Warning: software: hevc: replacing nalu prefix data
[2022:12:14:12:19:30]: Info:
[2022:12:14:12:19:30]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2022:12:14:12:19:30]: Info:
[2022:12:14:12:19:30]: Info: Found encoder software: [libx264, libx265]
[2022:12:14:12:19:30]: Info: Adding avahi service Sunshine
[2022:12:14:12:19:30]: Info: Configuration UI available at [https://localhost:47990]
[2022:12:14:12:19:31]: Info: Avahi service Sunshine successfully established.
[2022:12:14:12:19:38]: Error: Couldn't discover any UPNP devices
Please provide the full log output.
:wave: @paju1986, please edit your issue to complete the template with all the required info. Your issue will be automatically closed in 5 days if the template is not completed. Thanks.
udated issue with full log. Note that this happends with the AppImage but with the flatpak version vaapi works correctly
I also had this issue. I hadn't had it on the 0.16 AppImage, but did on the 0.17 one, so I've switched to the FlatPak version as well.
This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.
This issue was closed because it has been stalled for 10 days with no activity.