When KRDP cannot use VA-API hardware encoding (NVIDIA GPU), KPipeWire falls back to libx264. Clients that decode H.264 with OpenH264 (e.g. KRDC/FreeRDP on Fedora) cannot decode the resulting stream and show only a black screen. libx264 also warns that the stream exceeds the H.264 level limits. Forcing KPIPEWIRE_FORCE_ENCODER=libopenh264 for the KRDP server fixes it. STEPS TO REPRODUCE 1. Server: Fedora 44 KDE (Wayland), NVIDIA GPU with proprietary driver, full ffmpeg from RPM Fusion (libx264 available). Enable Remote Desktop in System Settings. 2. Client: Fedora KDE, KRDC (FreeRDP, decoding via OpenH264). 3. Connect from the client to the server. OBSERVED RESULT Connection succeeds and authenticates, but the remote desktop is entirely black. EXPECTED RESULT The remote desktop is displayed. SERVER LOG (krdpserver) libva info: va_openDriver() returns -1 VAAPI: Failed to initialize display VAAPI: current session render node "/dev/dri/renderD128" does not support H264 encoding Hardware encoding is not supported on this device. [libx264 @ ...] MB rate (36960000) > level limit (16711680) [libx264 @ ...] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 Note: the reported MB rate is far higher than my 3x 1080p @ 60 Hz desktop should produce, suggesting the framerate/level passed to libx264 may be misconfigured. The black screen also occurred with only a single 1080p monitor enabled. CLIENT LOG (KRDC, repeats for every frame) [WARN][com.freerdp.codec] - [openh264_decompress]: DecodeFrame2 iBufferStatus: 0 [WARN][com.freerdp.codec] - [areRectsValid]: Rectangle 0 {0x0-3840x1080} outside of bounding frame 0x0 [WARN][com.freerdp.gdi] - [gdi_SurfaceCommand_AVC420]: avc420_decompress failure: -1015, ignoring update. WORKAROUND Set KPIPEWIRE_FORCE_ENCODER=libopenh264 (e.g. in /etc/environment.d/krdp.conf) and restart app-org.kde.krdpserver.service. The client then displays the desktop correctly. SOFTWARE/OS VERSIONS Operating System: Fedora Linux 44 (KDE Plasma) KDE Plasma Version: 6.7.5 krdp: krdp-6.7.5-1.fc44.x86_64 kpipewire: kpipewire-6.7.5-1.fc44.x86_64 client: KRDC Version 26.08.1 openh264: 2.6.0-3.fc44 Graphics: NVIDIA 3070ti, proprietary driver 615.71.09 Session: Wayland ADDITIONAL INFORMATION Possible fix: when hardware encoding is unavailable, prefer an encoder/profile that OpenH264-based clients can decode (constrained baseline), or constrain libx264 to a compatible profile and a valid level.
Possibly the same root cause as bug 503545, which was closed after it no longer reproduced on Fedora 44. I suspect that test used stock Fedora, which has no libx264, so KPipeWire used libopenh264 and the problem was masked. With libx264 available (RPM Fusion ffmpeg) it still reproduces on Fedora 44, and forcing KPIPEWIRE_FORCE_ENCODER=libopenh264 fixes it.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kpipewire/-/merge_requests/291
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kpipewire/-/merge_requests/292
*** Bug 515950 has been marked as a duplicate of this bug. ***
*** Bug 490868 has been marked as a duplicate of this bug. ***
Git commit a85cab14f5dcddcc5feb322c3aaa0f877458c9c7 by David Edmundson. Committed on 21/10/2026 at 16:20. Pushed by davidedmundson into branch 'Plasma/6.8'. libx264encoder: Tell libx264 the stream's frame rate The codec context only gets a 1/1000 time base. Without a frame rate, libx264 derives 1000 fps from it and signals H.264 level 6.1 for a 1080p stream. Decoders that enforce the level, such as OpenH264, reject the stream, so KRdp clients that decode with it (FreeRDP builds on macOS such as Remmina and Royal TSX, KRDC on Fedora) show a black or white screen whenever KPipeWire uses libx264, i.e. when no VA-API encoder is available. Pass the producer's maximum frame rate, so libx264 computes the level from the real rate (4.2 for 1080p60). Tested with KRdp 6.8.0 on a Raspberry Pi 5 (no VA-API): Royal TSX and Remmina on macOS showed a white screen before and show the desktop after; FreeRDP with an FFmpeg decoder works either way; CPU use of krdpserver is unchanged. Related: bug 500276 (cherry picked from commit 5f098057db8ada04cc16022e2f7b9c5622014856) Co-authored-by: Matteo Beretta <matteo@trendupgraphic.com> M +6 -0 src/libx264encoder.cpp https://invent.kde.org/plasma/kpipewire/-/commit/a85cab14f5dcddcc5feb322c3aaa0f877458c9c7
*** Bug 500276 has been marked as a duplicate of this bug. ***
*** Bug 504112 has been marked as a duplicate of this bug. ***
*** Bug 494715 has been marked as a duplicate of this bug. ***
*** Bug 512605 has been marked as a duplicate of this bug. ***
*** Bug 488876 has been marked as a duplicate of this bug. ***
*** Bug 488807 has been marked as a duplicate of this bug. ***