# Decoder plugin problem

**URL:** <https://forums.developer.nvidia.com/t/decoder-plugin-problem/334342>\
**Category:** DeepStream SDK\
**Tags:** gstreamer\
**Created:** [May 26, 2025, 9:06am UTC](https://forums.developer.nvidia.com/t/decoder-plugin-problem/334342 "2025-05-26T09:06:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nxsf8023](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@nxsf8023](https://forums.developer.nvidia.com/u/nxsf8023)\
**Post date:** [May 26, 2025, 9:06am UTC](https://forums.developer.nvidia.com/t/decoder-plugin-problem/334342/1 "2025-05-26T09:06:35Z")

</div>

**I am currently working on hardware video encoding and decoding development using an NVIDIA RTX 4060 GPU. My system is Ubuntu 20.04, and I am using the GStreamer 1.20 framework.**

**I noticed that there are two H.264 decoder plugins available: `nvh264dec` and `nvv4l2decoder`. What are the differences between them, and which one should I use?**

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [May 27, 2025, 9:22am UTC](https://forums.developer.nvidia.com/t/decoder-plugin-problem/334342/3 "2025-05-27T09:22:58Z")

</div>

nvh264enc is contributed to GStreamer community, it is in the gst-plugins-bad, the quality is not guaranteed. And the input video GstBuffer of nvh264enc is normal system buffers.

nvv4l2h264enc is delivered with DeepStream SDK, which is maintained and will be validated before released to public. The input of nvv4l2h264enc is Nvidia hardware buffer which can be accessed by Nvidia GPU and other hardware directly. As a part of DeepStream SDK, the nvv4l2h264enc should be used together with the other elements and interfaces in DeepStream SDK.

You need to decide which element is compatible to your requirement by yourself since we don’t know your use case and scenario.

---

<div class="post-metadata">

**Author:** ![nxsf8023](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@nxsf8023](https://forums.developer.nvidia.com/u/nxsf8023)\
**Post date:** [May 28, 2025, 1:15am UTC](https://forums.developer.nvidia.com/t/decoder-plugin-problem/334342/4 "2025-05-28T01:15:29Z")

</div>

I’m wondering if the `nvv4l2decoder` plugin is able to utilize NVDEC hardware decoding on a discrete NVIDIA GPU.

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [May 28, 2025, 1:21am UTC](https://forums.developer.nvidia.com/t/decoder-plugin-problem/334342/5 "2025-05-28T01:21:03Z")

</div>

Yes, the nvv4l2decoder is using NVDEC hardware decoder on dGPU. Please refer to [Gst-nvvideo4linux2 — DeepStream documentation](https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvvideo4linux2.html)

---

<div class="post-metadata">

**Author:** ![yingliu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yingliu/32/136703_2.png) [@yingliu](https://forums.developer.nvidia.com/u/yingliu)\
**Post date:** [June 25, 2025, 4:40am UTC](https://forums.developer.nvidia.com/t/decoder-plugin-problem/334342/6 "2025-06-25T04:40:51Z")

</div>

**There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks**

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [July 9, 2025, 4:41am UTC](https://forums.developer.nvidia.com/t/decoder-plugin-problem/334342/7 "2025-07-09T04:41:29Z")

</div>

Closed on July 9, 2025, 4:41am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
