Gstreamer

For finding E2E Latency, we tried the following command:

export NVDS_ENABLE_LATENCY_MEASUREMENT=1, but we couldn’t find any log files created.

  1. Where will the log file be created?

  2. Is there anything else we should do for this?

The log is print on screen like the following:

BATCH-NUM = 286**
Source id = 0 Frame_num = 143 Frame latency = 41.793945 (ms)

BATCH-NUM = 287**
Source id = 0 Frame_num = 143 Frame latency = 41.835938 (ms)

BATCH-NUM = 288**
Source id = 0 Frame_num = 144 Frame latency = 35.960938 (ms)

BATCH-NUM = 289**
Source id = 0 Frame_num = 144 Frame latency = 36.003906 (ms)

BATCH-NUM = 290**
Source id = 0 Frame_num = 145 Frame latency = 35.894775 (ms)

BATCH-NUM = 291**
Source id = 0 Frame_num = 145 Frame latency = 35.935791 (ms)

BATCH-NUM = 292**
Source id = 0 Frame_num = 146 Frame latency = 35.935059 (ms)

Please be aware that the log can only be enabled with eglsink and fakesink.

We tried the following command :
$ sudo gst-launch-1.0 filesrc location=…/…/samples/streams/sample_1080p_h264.mp4 ! decodebin ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvinfer config-file-path= config_infer_primary_yoloV2.txt ! nvvideoconvert ! nvdsosd ! nveglglessink ! fakesink sync=true
But we were getting a warning:
erroneous pipeline: could not link eglglessink0 to fakesink0.
What should be done to remove the warning and execute the same successfully?

There is no source pad of sink plugin, so the sink plugin has no downstream.
The warning has told you the reason: could not link eglglessink0 to fakesink0.
These are two sink plugins.
https://gstreamer.freedesktop.org/documentation/tutorials/basic/index.html

We tried this command:
gst-launch-1.0 filesrc location=samples/streams/sample_1080p_h264.mp4 ! decodebin ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvinfer config-file-path=samples/configs/deepstream-app/config_infer_primary.txt ! nvvideoconvert ! nvdsosd ! nvvideoconvert ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=/home/bhmk/Desktop/script.mp4
After this we tried :
$export NVDS_ENABLE_LATENCY_MEASUREMENT=1
Still we are not getting the latency. What should be done for rectifying the same?

The NVDS_ENABLE_LATENCY_MEASUREMENT need to work with the nvds_measure_buffer_latency() api, currently, only deepstream-app and deepstream-nvdsanalytics-test samples can support this feature. If you want to use this feature, please refer to deepstream-app or deepstream-nvdsanalytics-test source codes and write your own deepstream application.

NVDS_ENABLE_LATENCY_MEASUREMENT can not work with “gst-launch-1.0” command line.