# vulkanh265dec gstreamer plugin not working correctly on RPI 5

**URL:** https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766
**Category:** General Discussion
**Created:** [December 16, 2024, 8:31am UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766 "2024-12-16T08:31:05Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![zeeshanaziz001](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/zeeshanaziz001/32/1031_2.png) [@zeeshanaziz001](https://discourse.gstreamer.org/u/zeeshanaziz001)
#### Post date: [December 16, 2024, 8:31am UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766/1 "2024-12-16T08:31:05Z")

</div>

I am trying to utilize hardware accelerated decoding on RPI 5 using gstreamer. I have an RTP stream encoded with **x265enc** plugin available in gstreamer and trying to decode it with **vulkanh265dec** plugin. With some research on google i came to know that **vulkan** along with **mesa** and **LunarG** libraries might help utilizing the video core VII GPU capabilities. So I have followed a guide and compiled these libraries on RPI 5 successfully.

But when i try to run gstreamer pipeline to receive RTP stream on port 5000 with UDP sink. I received errors:

Receiving pipeline:

**gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, encoding-name=H265 ! rtph265depay ! vulkanh265dec ! autovideosink**

I get following error:

**Failed to create/retrieve vulkan H.265 decoder queue**

when I inspect **vulkanh265dec** element with gst-inspect-1.0 command it shows vulkanh265dec element. **vkcube** , **vulkaninfo** , **vkvia** and **glxinfo -B** command also runs without any errors. I tried to google that error but doesn’t find anything helpful. Kindly help me understand what might be an issue. What i am missing?

---

<div class="post-metadata">

### Author: ![vjaquez](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/vjaquez/32/35_2.png) [@vjaquez](https://discourse.gstreamer.org/u/vjaquez)
#### Post date: [December 17, 2024, 10:10pm UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766/2 "2024-12-17T22:10:42Z")

</div>

Sorry, RPi Vulkan driver currently doesn’t support Vulkan video extensions.

You can verify it with `vulkaninfo` command.

Right now, Vulkan video elements in GStreamer are enabled in compilation time, it doesn’t mean that even if they are registered and shown with `gst-inspect-1.0` it means that they actually works with any Vulkan driver.

---

<div class="post-metadata">

### Author: ![zeeshanaziz001](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/zeeshanaziz001/32/1031_2.png) [@zeeshanaziz001](https://discourse.gstreamer.org/u/zeeshanaziz001)
#### Post date: [December 18, 2024, 3:23am UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766/3 "2024-12-18T03:23:08Z")

</div>

Thanks for the response. That is not a good news. What would be the alternative for decoding if I want to use GPU accelerated decoding on rpi 5. Kindly suggest possible solutions.

---

<div class="post-metadata">

### Author: ![vjaquez](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/vjaquez/32/35_2.png) [@vjaquez](https://discourse.gstreamer.org/u/vjaquez)
#### Post date: [December 18, 2024, 4:31am UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766/4 "2024-12-18T04:31:05Z")

</div>

Try with v4lcodecs elements. Though, as far as I known, h.265 isn’t there because the color format it uses. I guess your best option for now it to use h.264 with video4linux

---

<div class="post-metadata">

### Author: ![philn](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/philn/32/13_2.png) [@philn](https://discourse.gstreamer.org/u/philn)
#### Post date: [December 18, 2024, 9:39am UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766/5 "2024-12-18T09:39:14Z")

</div>

Additional discussions over there: [v4l2: Support for Raspberry Pi4 H265/HEVC Decoding (#1488) · Issues · GStreamer / gstreamer · GitLab](https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1488)

---

<div class="post-metadata">

### Author: ![zeeshanaziz001](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/zeeshanaziz001/32/1031_2.png) [@zeeshanaziz001](https://discourse.gstreamer.org/u/zeeshanaziz001)
#### Post date: [December 22, 2024, 9:54am UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766/6 "2024-12-22T09:54:54Z")

</div>

Hi! I have tried to compile and gstreamer from source with v4l2codecs but upon successful compilation and build. I am unable to find **v4l2h265dec** in gstreamer plugins.  
Compilation command used:  
**meson setup build -Dgst-plugins-bad:v4l2codecs=enabled -Dgst-plugins-good:v4l2=enabled -Dgst-plugins-good:v4l2-gudev=enabled**

**ninja -C build**  
Kindly guide what thing I am missing.

---

<div class="post-metadata">

### Author: ![vjaquez](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/vjaquez/32/35_2.png) [@vjaquez](https://discourse.gstreamer.org/u/vjaquez)
#### Post date: [December 23, 2024, 6:15am UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766/7 "2024-12-23T06:15:22Z")

</div>

You ought to check the issue that @philn mentioned: h265 decoder in rpi is still a work in progress, so you need to add unmerged changes and it’s still fragile.

---

<div class="post-metadata">

### Author: ![zeeshanaziz001](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/zeeshanaziz001/32/1031_2.png) [@zeeshanaziz001](https://discourse.gstreamer.org/u/zeeshanaziz001)
#### Post date: [April 15, 2025, 6:39am UTC](https://discourse.gstreamer.org/t/vulkanh265dec-gstreamer-plugin-not-working-correctly-on-rpi-5/3766/8 "2025-04-15T06:39:32Z")

</div>

I am trying to utilize hardware accelerated decoder plugin **v4l2slh265dec** on RPI 5 using gstreamer on ubuntu 24.10.

Receiving pipeline:

_gst-launch-1.0 udpsrc port=5000 ! “application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H265, payload=(int)96” ! rtpjitterbuffer latency=200 ! rtph265depay ! v4l2slh265dec ! queue max-size-buffers=10 ! glcolorconvert ! glimagesink_\*

I get following error:

**Decoding frame 0 took too long**

And PI got crashed. I will have to hard reboot the pi hardware in order to resume normal operation. Kindly help me understand why I am getting this error? Screesnhot is attached for reference.

 ![1](https://discourse.gstreamer.org/uploads/default/original/2X/5/53a293700a7c48fa4b5b5c5f5b696190db2a898f.png)
