omxh264enc insert SPS PPS not working


I’m trying to use the insert-sps-pps option of omxh264enc gstreamer plugin. Even after setting this to true, SPS PPS is not inserted after every I frame. Only the first I frame has SPS PPS preceding it, which is the case even if this option is not set.

This is the command I used

gst-launch-1.0 filesrc location=input.yuv ! videoparse format=i420 width=1920 height=1080 framerate=30 ! omxh264enc insert-sps-pps=true ! filesink location=out.h264

Sorry, I was using a wrong tool for verifying. SPS PPS are getting inserted when this option is set. There is no issue.