Deepstream processing dat from Logitech 930e with only 5FPS

Hello ,

I am running custom Tiny Yolo V3 via Deepstream and its runs ok.

The problem that i see that it processes the frames in only 5 fps.

How can i run it in bigger rate e.g : 30fps ?

This is my camera v4l2-ctl --list-formats-ext details :

$ v4l2-ctl --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.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 160x120 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 176x144 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 320x180 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 320x240 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 352x288 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 424x240 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 480x270 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 640x360 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 800x448 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 800x600 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 848x480 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 960x540 

        Interval: Discrete 0.067s (15.000 fps) 

        Interval: Discrete 0.100s (10.000 fps) 

        Interval: Discrete 0.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 1024x576 

        Interval: Discrete 0.067s (15.000 fps) 

        Interval: Discrete 0.100s (10.000 fps) 

        Interval: Discrete 0.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 1280x720 

        Interval: Discrete 0.100s (10.000 fps) 

        Interval: Discrete 0.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 1600x896 

        Interval: Discrete 0.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 1920x1080 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 2304x1296 

        Interval: Discrete 0.500s (2.000 fps) 

    Size: Discrete 2304x1536 

        Interval: Discrete 0.500s (2.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.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 160x120 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 176x144 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 320x180 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 320x240 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 352x288 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 424x240 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 480x270 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 640x360 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 800x448 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 800x600 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 848x480 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 960x540 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 1024x576 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 1280x720 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 1600x896 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps) 

    Size: Discrete 1920x1080 

        Interval: Discrete 0.033s (30.000 fps) 

        Interval: Discrete 0.042s (24.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.133s (7.500 fps) 

        Interval: Discrete 0.200s (5.000 fps)

And this is the deepstream_app_config_yolov3_tiny.txt :

==============================
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=streamscl

[tiled-display]
enable=1
rows=1
columns=1
width=1920
height=1080
gpu-id=0
#(0): nvbuf-mem-default - Default memory allocated, specific to particular platform
#(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory, applicable for Tesla
#(2): nvbuf-mem-cuda-device - Allocate Device cuda memory, applicable for Tesla
#(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory, applicable for Tesla
#(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson
nvbuf-memory-type=0

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=1
uri=file://…/…/samples/streams/sample_1080p_h264.mp4
num-sources=1
gpu-id=0

(0): memtype_device - Memory type Device

(1): memtype_pinned - Memory type Host Pinned

(2): memtype_unified - Memory type Unified

cudadec-memtype=0
camera-width=1920
camera-height=1080

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=2
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0

[osd]
enable=1
gpu-id=0
border-width=1
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0

[streammux]
gpu-id=0
##Boolean property to inform muxer that sources are live
live-source=0
batch-size=1
##time out in usec, to wait after the first buffer is available
##to push the batch even if the complete batch is not formed
batched-push-timeout=40000

Set muxer output width and height

width=1920
height=1080
##Enable to maintain aspect ratio wrt source, and allow black borders, works
##along with width, height properties
enable-padding=0
nvbuf-memory-type=0

config-file property is mandatory for any gie section.

Other properties are optional and if set will override the properties set in

the infer config file.

[primary-gie]
enable=1
gpu-id=0
model-engine-file=model_b1_fp16.engine
labelfile-path=labels.txt
batch-size=1
#Required by the app for OSD, not a plugin property
bbox-border-color0=1;0;0;1
bbox-border-color1=0;1;1;1
bbox-border-color2=0;0;1;1
bbox-border-color3=0;1;0;1
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary_yoloV3_tiny.txt

[tests]
file-loop=0

Hi,

Which platform do you use?
If you are using Jetson, please remember to maximize the device performance first.

$ sudo nvpmodel -m 0
$ sudo jetson_clocks

Thanks.

Hi AastaLLL,

few details to add:

1.I am running it on nano jetson
2. I have ran $ sudo nvpmodel -m 0
$ sudo jetson_clocks - No change
3. When running from file i get 25FPS , just from camera i get 5FPS

Hi,

Thanks for your update.
We are trying to reproduce this issue. Will update more information with you later.

Thanks.

Hi,

Could you update the config with v4l2 source to see if helps first?

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=1
camera-width=1920
camera-height=1080
camera-fps-n=30
camera-fps-d=1
camera-v4l2-dev-node=0

Thanks.

Hi i have changed it as you asked , But with no changed

[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=streamscl

[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720
gpu-id=0
#(0): nvbuf-mem-default - Default memory allocated, specific to particular platform
#(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory, applicable for Tesla
#(2): nvbuf-mem-cuda-device - Allocate Device cuda memory, applicable for Tesla
#(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory, applicable for Tesla
#(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson
nvbuf-memory-type=0

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=1
#uri=file://…/…/samples/streams/sample_1080p_h264.mp4
uri=file:out.mp4
num-sources=1
gpu-id=0

(0): memtype_device - Memory type Device

(1): memtype_pinned - Memory type Host Pinned

(2): memtype_unified - Memory type Unified

cudadec-memtype=0
camera-width=1920
camera-height=1080
camera-fps-n=30
camera-v4l2-dev-node=0
camera-fps-d=1

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=2
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0

I have also tried to refer to this post : Changing the stream from IYUV to Mjpeg still not changed and i have 5fps for 19201080 resolution and 9fps for 1280720

This is the post : How to change source pixel format from YUYV to MJPG - #6 by DaneLLL

Hi,

We are going to reproduce this issue today.
Will update more information later.

Thanks.

Hi,

We can reproduce this issue in our environment.
The YOLOv3_tiny sample run 24.5 fps with a video file and 11.8 fps with our 1080p Logitech camera.

This issue is passed to our internal team.
Will let you know once we got a feedback.

Thanks.

Hi,

Could you try to run the following GStreamer to check the FPS of camera?

$ gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! jpegdec ! video/x-raw ! nvvideoconvert ! 'video/x-raw(memory:NVMM)' ! fpsdisplaysink text-overlay=0 video-sink=nvoverlaysink -v

We found the bottleneck is from the camera source itself rather than Deeptream.
Thanks.

Hello AastaLLL,

10x to your fast response.

I have ran and the command :

gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! jpegdec ! video/x-raw ! nvvideoconvert ! ‘video/x-raw(memory:NVMM)’ ! fpsdisplaysink text-overlay=0 video-sink=nvoverlaysink -v

Setting pipeline to PAUSED …

Pipeline is live and does not need PREROLL …

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0: sync = true

Setting pipeline to PLAYING …

New clock: GstSystemClock

/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive

/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive

/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive

/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive

/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:4:0:0, framerate=(fraction)30/1

/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:4:0:0, framerate=(fraction)30/1

/GstPipeline:pipeline0/Gstnvvideoconvert:nvvideoconvert0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)I420

/GstPipeline:pipeline0/GstCapsFilter:capsfilter2.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)I420

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)I420

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)I420

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)I420

/GstPipeline:pipeline0/GstCapsFilter:capsfilter2.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)I420

/GstPipeline:pipeline0/Gstnvvideoconvert:nvvideoconvert0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:4:0:0, framerate=(fraction)30/1

/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:4:0:0, framerate=(fraction)30/1

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0: sync = true

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 5, dropped: 2, fps: 9.64, drop rate: 3.86

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 13, dropped: 2, current: 15.24, average: 12.46

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 22, dropped: 2, current: 17.89, average: 14.22

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 30, dropped: 2, current: 15.09, average: 14.45

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 38, dropped: 2, current: 15.06, average: 14.57

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 46, dropped: 2, current: 14.98, average: 14.64

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 54, dropped: 2, current: 15.05, average: 14.70

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 62, dropped: 2, current: 15.06, average: 14.75

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 70, dropped: 2, current: 15.00, average: 14.77

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 78, dropped: 2, current: 15.07, average: 14.80

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 86, dropped: 2, current: 15.14, average: 14.83

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 94, dropped: 2, current: 15.04, average: 14.85

Hi,
Please try the setting

[streammux]
live-source=1
batched-push-timeout=80000

[sink0]
type=5
sync=0

The source is 15fps in your environment, and batched-push-timeout has to be tuned accordingly. Also using nvoverlaysink can save some GPU resource. Please run with sudo jetson_clocks

And please also check the power supply:

Insufficient current may trigger performance drop.

And please ensure you apply the patch of MJPEG decoding and execute the self-built deepstream-app. The default app would select YUYV format and only can run in 1920x1080 5fps.

Hi DaneLLL,

I
have changed :

1
. [streammux] live-source=1 batched-push-timeout=80000

Apply the MJPEG patch

3 * sudo
jetson_clocks *

But still i get only 9FPS (1 stream only)

Zvika Shtorch

Hi,
Please disable the model and check if the framerate matches with the source.

[primary-gie]
enable=0

If this gets expected framerate, the bottleneck should be in the model.

After disabling :

**PERF: FPS 0 (Avg)

**PERF: 29.15 (29.15)

**PERF: 29.63 (29.41)

**PERF: 29.98 (29.61)