How to set tx2-nx decoder and encoder low delay

I read the yuv20 720p30 file from the hard disk and encode ->decode. I found that the decoder capture the first frame when encoder capture the third frame. So the encoder is 3 frames faster than the decoder from now on.
Do tx2-nx decoder and encoder have low delay?Or how to make it narrow?

Hi,
We support gstreamer and jetson_multimedia_api on Jetson platforms. For low-latency, you can enable the properties in nvv4l2decoder:

  disable-dpb         : Set to disable DPB buffer for low latency
                        flags: readable, writable
                        Boolean. Default: false
  enable-max-performance: Set to enable max performance
                        flags: readable, writable
                        Boolean. Default: false

and the properties in nvv42l2h64enc/nvv4l2h265enc:

  maxperf-enable      : Enable or Disable Max Performance mode
                        flags: readable, writable, changeable only in NULL or READY state
                        Boolean. Default: false
  poc-type            : Set Picture Order Count type value
                        flags: readable, writable, changeable only in NULL or READY state
                        Unsigned Integer. Range: 0 - 2 Default: 0

You can see the same properties in jetson_multimedia_api.