Checking Reported Latency of the Pipeline - 2023.1 English

H.264/H.265 Video Codec Unit v1.2 Solutions LogiCORE IP Product Guide (PG252)

Document ID
PG252
Release Date
2023-05-16
Version
2023.1 English

To check the reported latencies, run the following command:

Pipeline

$GST_DEBUG="basesink:5" GST_DEBUG_FILE="/run/reported_serial_4k_avc.txt" gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video0 num-buffers=1000 '!' video/x-raw, width=3840, height=2160, format=NV12, framerate=60/1 '!' omxh264enc control-rate=low-latency target-bitrate=20000 filler-data=0 prefetch-buffer=TRUE num-slices=16 '!' video/x-h264, alignment=nal '!' queue max-size-buffers=0 '!' omxh264dec low-latency=1 '!' queue max-size-bytes=0 '!' fpsdisplaysink name=fpssink text-overlay=false 'video-sink=kmssink bus-id=a0070000.v_mix plane-id=32 hold-extra-sample=1 show-preroll=false sync=true' sync=true -v

Check Reported Latency

grep -inr "latency set" serial_4k_avc.txt
335:0:00:00.393117490 19139  0x558a470470 DEBUG        basesink 
gstbasesink.c:4487:gst_base_sink_send_event:<kmssink0> latency set to 
0:00:00.000000000
603:0:00:00.404372324 19139  0x558a470470 DEBUG        basesink 
gstbasesink.c:4487:gst_base_sink_send_event:<kmssink0> latency set to 
0:00:00.000000000
892:0:00:00.633146383 19139  0x558a470470 DEBUG        basesink 
gstbasesink.c:4487:gst_base_sink_send_event:<kmssink0> latency set to 
0:00:00.000000000
6239:0:00:00.979049764 19139  0x7f800041e0 DEBUG        basesink 
gstbasesink.c:4487:gst_base_sink_send_event:<kmssink0> latency set to 
0:00:00.016000000

Pipeline reported latency = Non-zero value assigned to the latency set field in above string=16 ms