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?
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.
I’m wondering if the nvv4l2decoder plugin is able to utilize NVDEC hardware decoding on a discrete NVIDIA GPU.
Yes, the nvv4l2decoder is using NVDEC hardware decoder on dGPU. Please refer to Gst-nvvideo4linux2 — DeepStream documentation
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