D3d11overlay linkink problem

Due to the comment here (D3d11videosink sync) I have been trying to use d3d11overlay element but I have some linking problems with 1.23.2 release. Example launchline:
\gst-launch-1.0.exe uridecodebin uri=rtsp://caminlocalnetwork ! queue2 ! d3d11overlay ! queue2 ! videocrop ! d3d11videosink

0:00:02.556232700 14688 0000022F919FE5C0 WARN basesrc gstbasesrc.c:3175:gst_base_src_loop: error: Internal data stream error.
0:00:02.562956200 14688 0000022F919FE5C0 WARN basesrc gstbasesrc.c:3175:gst_base_src_loop: error: streaming stopped, reason not-linked (-1)

if I remove d3d11overlay then it works… I couldn’t find the reason of this linking error, I tried increasing debug level but beyond 3 doesn’t really mean anything to me. Any help about debugging this is greatly appreciated…

d3d11overlay supports only RGBA or BGRA format. You need to configure d3d11convert (or d3d11colorconvert) in front of d3d11overlay like

... ! d3d11upload ! d3d11convert ! d3d11overlay ! ...

d3d11convert fixed the problem. Thanks a lot :slightly_smiling_face:

How can you draw on d3d11overlay?

You can check out the examples, they are very helpful: subprojects/gst-plugins-bad/tests/examples/d3d11 · main · GStreamer / gstreamer · GitLab