Measure FPS in gst-launch

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Xavier
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only) 4.5
• TensorRT Version 7.1.3

My 4 streams gst pipeline is as follows:
gst-launch-1.0 filesrc location = /home/dewei/algo_share/trafficYolo_deepstream/Short_clips_for_AI/t1.mp4 ! qtdemux ! h265parse ! nvv4l2decoder ! m.sink_0 filesrc location = /home/dewei/algo_share/trafficYolo_deepstream/Short_clips_for_AI/t2.mp4 ! qtdemux ! h265parse ! nvv4l2decoder ! m.sink_1 filesrc location = /home/dewei/algo_share/trafficYolo_deepstream/Short_clips_for_AI/t3.mp4 ! qtdemux ! h265parse ! nvv4l2decoder ! m.sink_2 filesrc location = /home/dewei/algo_share/trafficYolo_deepstream/Short_clips_for_AI/t4.mp4 ! qtdemux ! h265parse ! nvv4l2decoder ! m.sink_3 nvstreammux name=m width=1920 height=1080 batch-size=4 ! nvinfer batch-size=4 config-file-path= /home/dewei/algo_share/trafficYolo_deepstream/config_infer_primary_yoloV3.txt ! nvtracker tracker-width=416 tracker-height=416 ll-lib-file=/home/dewei/algo_share/gst-nvdstracker-iti/libnvds_customtracker.so ! nvvideoconvert ! nvmultistreamtiler rows=2 columns=2 width=1920 height=1080 ! nvdsosd ! nvegltransform ! nveglglessink sync=0

I want to measure fps of these streams and fpsdisplaysink is probably the element to measure it. But I don’t know where to insert it.

The following pipeline can work:

gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h265.mp4 ! qtdemux ! h265parse ! nvv4l2decoder ! m.sink_0 filesrc location=/opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h265.mp4 ! qtdemux ! h265parse ! nvv4l2decoder ! m.sink_1 filesrc location=/opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h265.mp4 ! qtdemux ! h265parse ! nvv4l2decoder ! m.sink_2 filesrc location=/opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h265.mp4 ! qtdemux ! h265parse ! nvv4l2decoder ! m.sink_3 nvstreammux name=m width=1920 height=1080 batch-size=4 ! nvinfer batch-size=4 config-file-path=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_infer_primary.txt ! nvtracker tracker-width=416 tracker-height=416 ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_mot_iou.so ! nvvideoconvert ! nvmultistreamtiler rows=2 columns=2 width=1920 height=1080 ! nvdsosd ! nvvideoconvert ! 'video/x-raw,format=I420' ! fpsdisplaysink sync=0