How to get frame-type in gstreamer and pass it into python cv2 VideoCapture?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Tx2
• JetPack Version (valid for Jetson only) 4.6.2
• Issue Type( questions, new requirements, bugs) questions

I found a gstreamer example code like bellow:

$ gst-launch-1.0 filesrc \
     location=<filename_h264.mp4> ! \
     qtdemux ! queue ! h264parse ! nvv4l2decoder \
     enable-frame-type-reporting=1 ! nv3dsink -e

Which does print out the frame-type of each frame in terminal.
So I want to use this information within my python cv2 code for cv2.VideoCapatue($gst-piplne).

How to pass frame and frame-type infomation in my pthon cv2 Code?
(For the purpose of performing yolo detector on I-Frame )

1 please refer to deepstream-test1, GitHub - NVIDIA-AI-IOT/deepstream_python_apps: DeepStream SDK Python bindings and sample applications, you can find how to pass frame.
2 nvv4l2decoder dose not output frame type. please refer to Gst-nvvideo4linux2 — DeepStream 6.1 Release documentation.

@aa349276 if only inference I frame, please set nvv4l2decoder’s skip-frames to 2, please refer to Gst-nvvideo4linux2 — DeepStream 6.1 Release documentation

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