Can I extract SEI from l_frame.data

Please provide complete information as applicable to your setup.

• Hardware Platform Jetson
• DeepStream Version 6.3
• JetPack Version 5.1.2
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I find below code inside deepstream_test_3.py. And I want to know can I extract SEI data from this l_frame.data? If not, how can I get the h264 frame data?

def pgie_src_pad_buffer_probe(pad,info,u_data):
frame_number=0
num_rects=0
got_fps = False
gst_buffer = info.get_buffer()
if not gst_buffer:
print("Unable to get GstBuffer ")
return
# Retrieve batch metadata from the gst_buffer
# Note that pyds.gst_buffer_get_nvds_batch_meta() expects the
# C address of gst_buffer as input, which is obtained with hash(gst_buffer)
batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
l_frame = batch_meta.frame_meta_list
data = l_frame.data

SEI is the header information inside the H264 raw data. H.264 : Advanced video coding for generic audiovisual services (itu.int)

You need to get it from the h264 ES stream.

I think this topic is duplicated with How to get the SEI payload in Deepstream pipeline - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums.

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