Nvv4l2h265enc & nvv4l2decoder Latencies on Jetson Nano Board

Hi,

I am trying to measure the latencies of nvv4l2h265enc & nvv4l2decoder elements on Jetson Nano board, and i have observed that latency of nvv4l2h265enc is ~4 msec and latency of nvv4l2decoder is ~3 msec.

I am using below pipeline.

GST_DEBUG=“GST_TRACER:7” GST_TRACERS=“interlatency” GST_DEBUG_FILE=camerasrc_nvv4l2h265enc_nvv4l2decoder_fakesink.log
gst-launch-1.0 nvarguscamerasrc num-buffers=900
! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1’
! nvv4l2h265enc preset-level=1 MeasureEncoderLatency=1 maxperf-enable=1
! nvv4l2decoder enable-max-performance=1 disable-dpb=true
! fakesink

I have attached the log files of encoder and decoder latencies.

Could you please confirm whether the latencies are proper ?
Are these the expected results ?

If no, let me know the expected results of latencies for both nvv4l2h265enc and nvv4l2decoder.

NOTE: i am using Rasberri Pi NoIR camera for capture element.

Thanks,
Damodercamerasrc_nvv4l2h265enc_nvv4l2decoder_fakesink.log (797.9 KB) camerasrc_nvv4l2h265enc_nvv4l2decoder_fakesink_MeasureEncoderLatency.log (52.3 KB)

Hi,
We don’t have much experience in using gstreamer latencytracer. Usuallu we check frame rate like:

$ gst-launch-1.0 videotestsrc num-buffers=1800 ! video/x-raw,width=640,height=480 ! nvvidconv ! 'video/x-raw(memory:NVMM),width=1920,height=1080' ! nvv4l2h264enc maxperf-enable=1 ! nvv4l2decoder enable-max-performance=1 ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v

Since you have set max performance to encoder and decoder, it should give minimum latency.