Encoder option

I am using GStreamer on the Jetson Tx2 and my goal is to compress video using omxcodec.
And I want only intra coding. What should the value of iframeinterval be: iframeinterval = 0 or iframeinterval = 1?

I want the structure like I I I … I I I … I I I… not I P P…I P P…I P P.

Thank you.

We are deprecating omx plugins. Please try v42 plugins such as nvv4l2h264enc.