Jetson nano Python Deepstream test-3 application for multi-USB camera inferance pipeline Low FPS Issue

Hi @Fiona.Chen , @kayccc ,

I modified the python DS test3 script for multiple USB cameras. I have attached the source bin script below. I am getting a very low FPS (<10). Please help me to achieve a higher FPS.

Device : Jetson nano - Jetpack 4.4
**• DeepStream Version 5.01
**• TensorRT Version 7.1.3

    def create_source_bin(index,uri):
    print("Creating source bin")

# Create a source GstBin to abstract this bin's content from the rest of the
# pipeline
bin_name="source-bin-%02d" %index
print(bin_name)
nbin=Gst.Bin.new(bin_name)`Preformatted text`
if not nbin:
    sys.stderr.write(" Unable to create source bin \n")

usb_cam_source=Gst.ElementFactory.make("v4l2src", "source")
usb_cam_source.set_property("device",uri)



caps_v4l2src = Gst.ElementFactory.make("capsfilter", "v4l2src_caps")
if not caps_v4l2src:
    sys.stderr.write(" Unable to create v4l2src capsfilter \n")

# videoconvert to make sure a superset of raw formats are supported
vidconvsrc = Gst.ElementFactory.make("videoconvert", "convertor_src1")
if not vidconvsrc:
    sys.stderr.write(" Unable to create videoconvert \n")


nvvidconvsrc = Gst.ElementFactory.make("nvvideoconvert", "convertor_src2")
if not nvvidconvsrc:
    sys.stderr.write(" Unable to create Nvvideoconvert \n")

caps_vidconvsrc = Gst.ElementFactory.make("capsfilter", "nvmm_caps")
if not caps_vidconvsrc:
    sys.stderr.write(" Unable to create capsfilter \n")
    
caps_v4l2src.set_property('caps', Gst.Caps.from_string("video/x-raw, framerate=30/1"))
caps_vidconvsrc.set_property('caps', Gst.Caps.from_string("video/x-raw(memory:NVMM), format=NV12"))

print('adding element to source bin')
Gst.Bin.add(nbin,usb_cam_source)
#Gst.Bin.add(nbin,jpegDec)

Gst.Bin.add(nbin,caps_v4l2src)
Gst.Bin.add(nbin,vidconvsrc)

Gst.Bin.add(nbin,nvvidconvsrc)
Gst.Bin.add(nbin,caps_vidconvsrc)

print('linking elemnent in source bin')
usb_cam_source.link(caps_v4l2src)
caps_v4l2src.link(vidconvsrc)
vidconvsrc.link(nvvidconvsrc)

nvvidconvsrc.link(caps_vidconvsrc)

pad = caps_vidconvsrc.get_static_pad("src")
ghostpad = Gst.GhostPad.new("src",pad)
bin_pad=nbin.add_pad(ghostpad)
if not bin_pad:
    sys.stderr.write(" Failed to add ghost pad in source bin \n")
    return None
return nbin

My camera specifications are given below,

logitech c270 camera

(base) ajithbalakrishnan@AB:~$ v4l2-ctl -d /dev/video2 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index       : 0
Type        : Video Capture
Pixel Format: 'YUYV'
Name        : YUYV 4:2:2
Size: Discrete 640x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x176
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 544x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 752x416
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x544
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1184x656
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
	Interval: Discrete 0.133s (7.500 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
	Interval: Discrete 0.133s (7.500 fps)
	Interval: Discrete 0.200s (5.000 fps)

Index       : 1
Type        : Video Capture
Pixel Format: 'MJPG' (compressed)
Name        : Motion-JPEG
Size: Discrete 640x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x176
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 544x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 752x416
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x544
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1184x656
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)

Index       : 2
Type        : Video Capture
Pixel Format: 'RGB3' (emulated)
Name        : RGB3
Size: Discrete 640x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x176
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 544x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 752x416
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x544
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1184x656
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)

Index       : 3
Type        : Video Capture
Pixel Format: 'BGR3' (emulated)
Name        : BGR3
Size: Discrete 640x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x176
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 544x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 752x416
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x544
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1184x656
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)

Index       : 4
Type        : Video Capture
Pixel Format: 'YU12' (emulated)
Name        : YU12
Size: Discrete 640x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x176
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 544x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 752x416
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x544
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1184x656
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)

Index       : 5
Type        : Video Capture
Pixel Format: 'YV12' (emulated)
Name        : YV12
Size: Discrete 640x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x176
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 544x288
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 752x416
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x544
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1184x656
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
	Interval: Discrete 0.033s (30.000 fps)
	Interval: Discrete 0.040s (25.000 fps)
	Interval: Discrete 0.050s (20.000 fps)
	Interval: Discrete 0.067s (15.000 fps)
	Interval: Discrete 0.100s (10.000 fps)
	Interval: Discrete 0.200s (5.000 fps)

You are using the model in test3 for inference, right?

Yes. Deep-stream python apps test3 default models only ( resnet ).

Any update?

Can you refer to Troubleshooting — DeepStream 5.1 Release documentation?

Hi @Fiona.Chen,@kayccc, @amycao ,

I made some modification as per the documentation(Solution3 &4). FPS has increased to 15. But its still less only. I saw some suggustions regarding the use of h-w accelerated decoding might help to increate the FPS. I tried to integrate " Gst-nvvideo4linux2" pluggin. But I couldnt. Please help me to integrate if it is a correct solution. I am attaching the script here. test_v2.py (14.4 KB)

nvv4l2decoder is for H264, H265 and MJPEG decoding(decompression). We don’t know anything about your camera. You need to try to setup the pipeline with gst-launch-1.0 tool first, and then write your python script according to the success pipeline.

Please read my first commit on this issue. I have given all the details about my camera and it’s supported formats.

So what do you want? You already know the camera formats. You can use gst-launch to try the pipeline.

My question is why am getting 15 FPS with USB camera? When I was checking the source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt sample code, from recorded videos I was getting 30 FPS even though I connected with 4 sources.

How many USB cameras in your pipeline? Your camera support multiple resolutions and format while in your test_v2.py script only framerate is assigned, so it is hard to know which format and resolution is used in your case.

How many USB cameras in your pipeline?
only 2 cameras.
so it is hard to know which format and resolution is used in your case.
I wanna use 640*480. So what all chnages should i do for that?

The pipeline may look like:
gst-launch-1.0 v4l2src device=/dev/video0 ! ‘image/jpeg,width=640,height=480,fps=30/1’ ! nvv4l2decoder mjpeg=1 ! nvvideoconvert ! ‘video/x-raw(memory:NVMM),format=NV12’ ! mux.sink_0 nvstreammux batch-size=1 live-source=1 width=640 height=480 name=mux ! nvinfer config-file-path=xxxx ! queue ! nvdsosd ! nvegltransform ! nveglglessink