Repository navigation
GUACAMOLE-2351: Add "enable-h264" RDP parameter to offer H.264 within the Graphics Pipeline. - #733
jeremiahmorgan-web wants to merge 1 commit into
Conversation
… the Graphics Pipeline. Generated-by: Claude Opus 5.5 (Anthropic)
necouchman
left a comment
There was a problem hiding this comment.
Is it worth checking for H.264 support at compile time, in the configure.ac file? How likely is it that someone is going to take a version of Guacamole compiled against a FreeRDP version that supports H.264 and attempt to run it on a system that has FreeRDP without H.264 support?
A compile-time check looks workable on FreeRDP 3: on the 3.15 Debian package, That's why I lean towards the runtime check: the same code works on both major I'm happy to switch to a configure.ac check if you'd prefer it. How would you want
I'd guess that mismatch is rare. A normal distribution package should be built and run against the same FreeRDP. |
Is this because it just lacks any acknowledgement that it's compiled with H.264 support? Or does FreeRDP 2.x even support H.264 encoding?
Right - which is why it seems better to do a compile-time check rather than a run-time check. I get that the cost is relatively small, but, still, seems like compile-time would be better. Unless FreeRDP 2.x can be compiled with H.264 and lacks a way of defining that... |
Problem
When the RDP Graphics Pipeline is enabled, guacd offers RemoteFX but never
H.264. Servers that implement the pipeline with H.264 only, such as KDE's KRDP,
refuse the connection ("Client does not support H.264 in YUV420 mode!").
Change
Adds an RDP parameter,
enable-h264, default false. When true and the pipelineis enabled, guacd also offers H.264, if FreeRDP can decode it. If not, guacd logs
a warning and offers RemoteFX alone. With the parameter unset, nothing changes.
It is opt-in because a server supporting both codecs may then choose H.264, and
guacd must decode it before re-encoding for the browser.
The parameter is not yet in the web admin form, which would need a small
companion PR to guacamole-client, if wanted.
Testing
On
mainatbb1ba8e, with FreeRDP 3.15 and 2.11.7 unless noted:A stock
xfreerdp33.15 also got no H.264 from that Windows server, so thatresult does not appear to come from this change. I did not find out why.
With the parameter true,
disable-gfxprevented H.264 on the shadow server, xrdpand Windows. A stub making
h264_context_new()return NULL (3.15) produced thewarning, and the desktop was drawn without H.264.
FreeRDP 3.15 builds need
-Wno-error=deprecated-declarations, with or withoutthis change.
Not tested: KRDP with a FreeRDP 2 build, GNOME Remote Desktop, and a FreeRDP
actually built without an H.264 backend.
Disclosure
Written with the help of an AI coding assistant (Claude, by Anthropic), and
reviewed and tested by me. The commit carries a
Generated-by:line, followingthe ASF generative tooling guidance.
🤖 Generated with Claude Code