no python gstreamer api extract h264 sei

hi,I would like to extract SEI information from an H.264 stream. Can you provide a relevant Python gstreamer demo?

It depends which SEI type you want to watch, but for user data unregistered, they are attached as meta data by the parsers. You can create a pipeline with a parser and an appsink. Pull then samples into python and read theninfo.

https://gstreamer.freedesktop.org/documentation/video/gstvideosei.html?gi-language=python

For the rest of SEI, you’d have to use the parser library. I’ve never considered using that API outside of C, it may not even have bindings.

https://gstreamer.freedesktop.org/documentation/gst-plugins-bad-codecparsers/gsth264parser.html?gi-language=python

Other options, check pyav project, or h26x-extractor.