HW encoder not working

• Hardware Platform (Jetson / GPU)
AGX Xavier
• DeepStream Version
6.0
• JetPack Version (valid for Jetson only)
4.6
• TensorRT Version
8.0.1.6
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
The hardware decoder creates segments with no PPS.
Follwing settings are provides
g_object_set (G_OBJECT (bin->encoder), “profile”, profile, NULL); [THIS IS 0]
g_object_set (G_OBJECT (bin->encoder), “iframeinterval”, config->iframeinterval, NULL); [THIS IS 4]
g_object_set (G_OBJECT (bin->encoder), “bitrate”, bitrate, NULL); [This is 2000000]
g_object_set (G_OBJECT (bin->encoder), “force-idr”, 1, NULL);

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

ffmpeg -i outxxx.ts will give follwoing error:
[h264 @ 0x558b9d0b90] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x558b9d0b90] decode_slice_header error
[h264 @ 0x558b9d0b90] no frame!

I dont get this problem if I use SW encoder.

Is there a configuration to use HW encoder that works?

the fps of camera is 30. I set profile =0, idrinterval=5, force-idr is ON, Insert-sps-pps is on. iframeinterval is also 5. But I still get broken segments

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hi,
It looks like the video file is invalid. You may try gstreamer command and see if video playback is good first. May try the command on Xavier developer kit:

$ gst-launch-1.0 filesrc location=test.ts ! tsdemux ! h264parse ! nvv4l2decoder ! nvoverlaysink

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