RESOLVED FIXED 255912
[GStreamer] DMABUF sink not available for GStreamer 1.20 runtime
https://bugs.webkit.org/show_bug.cgi?id=255912
Summary [GStreamer] DMABUF sink not available for GStreamer 1.20 runtime
Kdwk
Reported 2023-04-25 01:23:09 PDT
When watching a video on youtube.com, the following line is printed: `** (WebKitWebProcess:2): WARNING **: 16:18:40.081: WebKit wasn't able to find the DMABuf video sink dependencies. Hardware-accelerated zero-copy video rendering won't be achievable with this plugin.` CPU usage is through the roof.
Attachments
Kdwk
Comment 1 2023-04-25 01:23:55 PDT
This can be observed on Epiphany Technology Preview 44.0-39-g93250d36f+/ WebKitGTK 2.41.3
Kdwk
Comment 2 2023-04-25 01:24:30 PDT
This cannot be observed on Gnome Web 44.2/ WebKitGTK 2.40.1
Philippe Normand
Comment 3 2023-04-25 05:55:29 PDT
Your runtime doesn't ship GStreamer 1.22 I guess. You can check by loading webkit://gpu The sink is disabled for older versions. I might work for older versions, or it might not. It's untested. bool webKitDMABufVideoSinkProbePlatform() { return webkitGstCheckVersion(1, 22, 0) && isGStreamerPluginAvailable("app"); }
Kdwk
Comment 4 2023-04-25 06:23:58 PDT
If it doesn't work for GStreamer 1.20.x perhaps DMABUF sink could be disabled there.
Philippe Normand
Comment 5 2023-04-25 06:25:25 PDT
Who said it doesn´t?
Kdwk
Comment 6 2023-04-25 06:26:42 PDT
Can confirm: this message does not appear with WEBKIT_GST_DMABUF_SINK_ENABLED=1 in Tech Preview
Michael Catanzaro
Comment 7 2023-04-25 06:45:17 PDT
Probably should not print the error message if GStreamer version is less than 1.22?
Philippe Normand
Comment 8 2023-04-25 08:26:16 PDT
(In reply to kdwkleung from comment #6) > Can confirm: this message does not appear with > WEBKIT_GST_DMABUF_SINK_ENABLED=1 in Tech Preview I'm confused now. WEBKIT_GST_DMABUF_SINK_ENABLED was afaik replaced by WEBKIT_GST_DMABUF_SINK_DISABLED in 2.41. To sum-up, again, the sink is opt-in in versions < 2.40 and opt-out in > 2.40.
Kdwk
Comment 9 2023-04-25 19:23:24 PDT
Oh now that I test it again the message shows up even with WEBKIT_GST_DMABUF_SINK_ENABLED=1 on Tech Preview.
Philippe Normand
Comment 10 2023-04-26 00:54:36 PDT
(In reply to kdwkleung from comment #9) > Oh now that I test it again the message shows up even with > WEBKIT_GST_DMABUF_SINK_ENABLED=1 on Tech Preview. That env var is not used by 2.41, in case it wasn't clear from previous comments.
Philippe Normand
Comment 11 2023-04-27 08:51:18 PDT
EWS
Comment 12 2023-04-27 09:47:30 PDT
Committed 263459@main (4c8196fde7da): <https://commits.webkit.org/263459@main> Reviewed commits have been landed. Closing PR #13240 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.