# ZED Gstreamer fps is very low than expected

**URL:** <https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840>\
**Category:** Python\
**Created:** [January 7, 2025, 1:55pm UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840 "2025-01-07T13:55:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashfaq](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/858c86/32.png) [@ashfaq](https://community.stereolabs.com/u/ashfaq)\
**Post date:** [January 7, 2025, 1:55pm UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/1 "2025-01-07T13:55:55Z")

</div>

Hi,

I am using the following GStreamer pipeline:

gst-launch-1.0 zedsrc camera-resolution=3 camera-fps=30 stream-type=0 od-enabled=true od-detection-model=1 ! queue max-size-buffers=32 max-size-time=0 ! zedodoverlay ! queue max-size-buffers=32 max-size-time=0 ! autovideoconvert ! fpsdisplaysink sync=false

Setup Details:

Device: Jetson AGX Orin

JetPack Version: 6

ZED SDK Version: 4.2

GStreamer Version: 1.20

Observations:

1. Without object detection enabled, the pipeline achieves 30 FPS. However, enabling object detection reduces the FPS to 15.

2. If sync=true is set:

The FPS drops to 2, with dropped frames = 14.

1. If sync=false is used:

The FPS is capped at 15, with dropped frames = 0, despite setting camera-fps=30.

Questions:

1. Why does enabling object detection result in reduced FPS, even when camera-fps=30 is specified? Is there a way to optimize this pipeline for higher FPS with object detection enabled, what have to do in order to get 30 ?

2. In your documentation, it is stated that camera-resolution=2 corresponds to HD720. However, during my testing, I achieved HD720 resolution with camera-resolution=3. Could you please clarify this discrepancy?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [January 7, 2025, 2:12pm UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/2 "2025-01-07T14:12:32Z")

</div>

Hi @ashfaq  
What Object Detection model are you using?  
What is the power mode of your Jetson?

> [@ashfaq](#):
>
> Why does enabling object detection result in reduced FPS, even when camera-fps=30 is specified? Is there a way to optimize this pipeline for higher FPS with object detection enabled, what have to do in order to get 30 ?

Object Detection consumes processing power according to the selected OD model the host cannot provide enough processing power to guarantee full FPS

> [@ashfaq](#):
>
> In your documentation, it is stated that camera-resolution=2 corresponds to HD720. However, during my testing, I achieved HD720 resolution with camera-resolution=3. Could you please clarify this discrepancy?

From gst-inspect:

```auto
  camera-resolution : Camera Resolution
                        flags: readable, writable
                        Enum "GstZedSrcRes" Default: 6, "Default value for the camera model"
                           (0): HD2K (USB3) - 2208x1242
                           (1): HD1080 (USB3/GMSL2) - 1920x1080
                           (2): HD1200 (GMSL2) - 1920x1200
                           (3): HD720 (USB3) - 1280x720
                           (4): SVGA (GMSL2) - 960x600
                           (5): VGA (USB3) - 672x376
                           (6): Default value for the camera model - Automatic

```

Can you send me the link to the documentation to be fixed?

---

<div class="post-metadata">

**Author:** ![ashfaq](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/858c86/32.png) [@ashfaq](https://community.stereolabs.com/u/ashfaq)\
**Post date:** [January 7, 2025, 2:28pm UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/3 "2025-01-07T14:28:00Z")

</div>

Thank u for replying

Object detection model : I tried these and was same results

(0): Object Detection Multi class FAST - Any objects, bounding box based

(1): Object Detection Multi class MEDIUM - Any objects, bounding box based, compromise between accuracy and speed

(2): Object Detection Multi class ACCURATE - Any objects, bounding box based, more accurate but slower than the base model

> > > > > Power mode of my jetson is MAXn

1. The camera-resolution link here : [GStreamer - ZED Camera Source - Stereolabs](https://www.stereolabs.com/docs/gstreamer/20_zed-camera-source)

camera-resolution : Camera Resolution  
flags: readable, writable  
Enum “GstZedsrcResolution” Default: 7, “Default value for the camera model”  
(1): HD2K (USB3) - 2208x1242  
(3): HD1200 (GMSL2) - 1920x1200  
(2): HD1080 (USB3/GMSL2) - 1920x1080  
(4): HD720 (USB3) - 1280x720  
(5): SVGA (GMSL2) - 960x600  
(6): VGA (USB3) - 672x376  
(7): Default value for the camera

\*\*\* also I want to ask u, because I’m new with zed gstreamer. Can I make the detection only for persons and ignore any other objects direct with gstreamer pipeline ?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [January 8, 2025, 9:03am UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/4 "2025-01-08T09:03:51Z")

</div>

> [@ashfaq](#):
>
> The camera-resolution link here : [GStreamer - ZED Camera Source - Stereolabs](https://www.stereolabs.com/docs/gstreamer/20_zed-camera-source)

I’m going to update the documentation to match the latest GStreamer package modifications.

> [@ashfaq](#):
>
> I want to ask u, because I’m new with zed gstreamer. Can I make the detection only for persons and ignore any other objects direct with gstreamer pipeline ?

```auto
  od-conf-animal : Animal Detection Confidence Threshold
                        flags: readable, writable
                        Float. Range: -1 - 100 Default: 35 
  od-conf-bag : Bag Detection Confidence Threshold
                        flags: readable, writable
                        Float. Range: -1 - 100 Default: 35 
  od-conf-electronics : Electronics Detection Confidence Threshold
                        flags: readable, writable
                        Float. Range: -1 - 100 Default: 35 
  od-conf-fruit-vegetables: Fruit/Vegetables Detection Confidence Threshold
                        flags: readable, writable
                        Float. Range: -1 - 100 Default: 35 
  od-conf-people : People Detection Confidence Threshold
                        flags: readable, writable
                        Float. Range: -1 - 100 Default: 35 
  od-conf-sport : Sport Detection Confidence Threshold
                        flags: readable, writable
                        Float. Range: -1 - 100 Default: 35 
  od-conf-vehicle : Vehicle Detection Confidence Threshold
                        flags: readable, writable
                        Float. Range: -1 - 100 Default: 35 
  od-confidence : Minimum Detection Confidence
                        flags: readable, writable
                        Float. Range: 0 - 100 Default: 50 

```

Set the confidence value of the types that you do not need to -1

Concerning the FPS issue, can you please try to remove the `zedodoverlay` element from the pipeline to check if it’s a data rendering issue?

---

<div class="post-metadata">

**Author:** ![ashfaq](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/858c86/32.png) [@ashfaq](https://community.stereolabs.com/u/ashfaq)\
**Post date:** [January 8, 2025, 11:32am UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/5 "2025-01-08T11:32:09Z")

</div>

1. While object detection is true , with/without zedoverlay I got same result

2. I want to give u an update : i did this and fps acheived with average 21  
“Sudo nvpmodel -m 0  
Sudo jetson\_clocks”

3. Also if i put paper on front of cam lens the fps beinv 29 , if there is objects the fps mainly 21

4. I want to ask after a while mainly 15 minutes the stream stopping suddenly ?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [January 8, 2025, 11:52am UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/6 "2025-01-08T11:52:36Z")

</div>

> [@ashfaq](#):
>
> While object detection is true , with/without zedoverlay I got same result  
> Also if i put paper on front of cam lens the fps beinv 29 , if there is objects the fps mainly 21

This means that is not a rendering problem, but a processing power limitation

> [@ashfaq](#):
>
> I want to give u an update : i did this and fps acheived with average 21  
> “Sudo nvpmodel -m 0  
> Sudo jetson\_clocks”

This means that you were not working in full power mode

> [@ashfaq](#):
>
> I want to ask after a while mainly 15 minutes the stream stopping suddenly ?

Please add more information, a log, video. It’s not easy to solve this with no information.

---

<div class="post-metadata">

**Author:** ![ashfaq](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/858c86/32.png) [@ashfaq](https://community.stereolabs.com/u/ashfaq)\
**Post date:** [January 11, 2025, 8:29am UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/7 "2025-01-11T08:29:56Z")

</div>

> [@Myzhar](#):
>
> This means that you were not working in full power mode

Ok how to solve this ?

[/quote]  
Please add more information, a log, video. It’s not easy to solve this with no information.  
[/quote]  
Once I go to the office, I will provide u all info.

I have another question , when use th object detection, the depth mode must be neural ?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [January 11, 2025, 8:35am UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/8 "2025-01-11T08:35:08Z")

</div>

> [@ashfaq](#):
>
> I have another question , when use th object detection, the depth mode must be neural ?

No, it works with each depth mode option

---

<div class="post-metadata">

**Author:** ![ashfaq](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/858c86/32.png) [@ashfaq](https://community.stereolabs.com/u/ashfaq)\
**Post date:** [January 24, 2025, 6:02am UTC](https://community.stereolabs.com/t/zed-gstreamer-fps-is-very-low-than-expected/7840/9 "2025-01-24T06:02:00Z")

</div>

Hi again Mr. Myzhar

I check with Nvidia and Im enaure that my jetson works on MAXn power. I tried this only in one cam and isnt successfull?

Can you assist to detect the problem, please ?
