# D3d11overlay linkink problem

**URL:** <https://discourse.gstreamer.org/t/d3d11overlay-linkink-problem/1013>\
**Category:** Application Development\
**Created:** [February 19, 2024, 10:11am UTC](https://discourse.gstreamer.org/t/d3d11overlay-linkink-problem/1013 "2024-02-19T10:11:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bka](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/bka/32/1226_2.png) [@bka](https://discourse.gstreamer.org/u/bka)\
**Post date:** [February 19, 2024, 10:11am UTC](https://discourse.gstreamer.org/t/d3d11overlay-linkink-problem/1013/1 "2024-02-19T10:11:06Z")

</div>

Due to the comment here ([D3d11videosink sync](https://discourse.gstreamer.org/t/d3d11videosink-sync/299)) 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…

---

<div class="post-metadata">

**Author:** ![seungha](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/seungha/32/44_2.png) [@seungha](https://discourse.gstreamer.org/u/seungha)\
**Post date:** [February 19, 2024, 12:04pm UTC](https://discourse.gstreamer.org/t/d3d11overlay-linkink-problem/1013/2 "2024-02-19T12:04:59Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![bka](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/bka/32/1226_2.png) [@bka](https://discourse.gstreamer.org/u/bka)\
**Post date:** [February 19, 2024, 2:19pm UTC](https://discourse.gstreamer.org/t/d3d11overlay-linkink-problem/1013/3 "2024-02-19T14:19:22Z")

</div>

d3d11convert fixed the problem. Thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![dvtuanhn](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/d/91b2a8/32.png) [@dvtuanhn](https://discourse.gstreamer.org/u/dvtuanhn)\
**Post date:** [February 11, 2025, 7:15am UTC](https://discourse.gstreamer.org/t/d3d11overlay-linkink-problem/1013/4 "2025-02-11T07:15:46Z")

</div>

How can you draw on d3d11overlay?

---

<div class="post-metadata">

**Author:** ![bka](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/bka/32/1226_2.png) [@bka](https://discourse.gstreamer.org/u/bka)\
**Post date:** [February 11, 2025, 8:07am UTC](https://discourse.gstreamer.org/t/d3d11overlay-linkink-problem/1013/5 "2025-02-11T08:07:15Z")

</div>

You can check out the examples, they are very helpful: [subprojects/gst-plugins-bad/tests/examples/d3d11 · main · GStreamer / gstreamer · GitLab](https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/main/subprojects/gst-plugins-bad/tests/examples/d3d11?ref_type=heads)
