# Frame drop issue while using sample\_camera code from Driveworks

**URL:** <https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754>\
**Category:** DRIVE AGX Orin General\
**Tags:** driveworks-cameras\
**Created:** [January 3, 2024, 1:26pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754 "2024-01-03T13:26:42Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![khushabu.talele1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@khushabu.talele1](https://forums.developer.nvidia.com/u/khushabu.talele1)\
**Post date:** [January 3, 2024, 1:26pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/1 "2024-01-03T13:26:42Z")

</div>

Please provide the following info (tick the boxes after creating this topic):  
**Software Version**  
 DRIVE OS 6.0.6  
 DRIVE OS 6.0.5  
 DRIVE OS 6.0.4 (rev. 1)  
 DRIVE OS 6.0.4 SDK  
 other

**Target Operating System**  
 Linux  
 QNX  
 other

**Hardware Platform**  
 DRIVE AGX Orin Developer Kit (940-63710-0010-300)  
 DRIVE AGX Orin Developer Kit (940-63710-0010-200)  
 DRIVE AGX Orin Developer Kit (940-63710-0010-100)  
 DRIVE AGX Orin Developer Kit (940-63710-0010-D00)  
 DRIVE AGX Orin Developer Kit (940-63710-0010-C00)  
 DRIVE AGX Orin Developer Kit (not sure its number)  
 other

**SDK Manager Version**  
 1.9.2.10884  
 other

**Host Machine Version**  
 native Ubuntu Linux 20.04 Host installed with SDK Manager  
 native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers  
 native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers  
 other

Hello Team,

I am currently working on implementing the `sample_camera` application from DriveWorks, and I have encountered an issue when attempting to use multiple cameras simultaneously. Specifically, I am experiencing frame drops despite my efforts to address the problem.

To resolve this issue, I have experimented with threading within the `onRender()` function and also attempted to separate the processing for each camera. Unfortunately, these attempts have not yielded the desired results, and I am still facing frame drop challenges.

I am reaching out to seek your guidance on how to effectively resolve this frame drop issue when utilizing multiple cameras with the `sample_camera` application. Additionally, I am keen to know if there are specific strategies or best practices that can help maintain a consistent frame rate, preferably around 30 FPS.

Thanks and regards,  
Khushabu

---

<div class="post-metadata">

**Author:** ![SivaRamaKrishnaNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sivaramakrishnanv/32/14043_2.png) [@SivaRamaKrishnaNV](https://forums.developer.nvidia.com/u/SivaRamaKrishnaNV)\
**Post date:** [January 3, 2024, 1:51pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/2 "2024-01-03T13:51:50Z")

</div>

Dear @khushabu.talele1,  
Firstly, could you check with nvsipl\_camera application for your camera configuration and check if you are getting expected FPS?  
Could you share the DRIVE OS version, camera module and connection details?

---

<div class="post-metadata">

**Author:** ![khushabu.talele1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@khushabu.talele1](https://forums.developer.nvidia.com/u/khushabu.talele1)\
**Post date:** [January 3, 2024, 5:14pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/3 "2024-01-03T17:14:39Z")

</div>

Hiii @SivaRamaKrishnaNV,

Yes actually I have tried Nvsipl\_camera code but still i could see frame drop Also as we have to disable gdm to make it working i dont want to do that. Hence I am trying sample\_camera code with multi-threading.  
DRIVE OS version - 6.0.8  
Camera - Valeo with GMSL interface

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [January 3, 2024, 6:17pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/5 "2024-01-03T18:17:13Z")

</div>

Please refer to [Frame rate drops as we increase the number of cameras on Orin](https://forums.developer.nvidia.com/t/frame-rate-drops-as-we-increase-the-number-of-cameras-on-orin/262137) and see if running multiple cameras with [Recording Tools](https://developer.nvidia.com/docs/drive/drive-os/6.0.6/public/driveworks-nvsdk/dwx_recording_tools.html) has no similar frame-dropping issues.

---

<div class="post-metadata">

**Author:** ![khushabu.talele1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@khushabu.talele1](https://forums.developer.nvidia.com/u/khushabu.talele1)\
**Post date:** [January 4, 2024, 7:22am UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/6 "2024-01-04T07:22:10Z")

</div>

Recording tool code is not provided Even I followed the same by creating multiple threads but I am not successful yet. So I more question Can CGF be useful to adress this frame drop issue?

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [January 5, 2024, 6:26pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/9 "2024-01-05T18:26:06Z")

</div>

Could you confirm if you’re using DRIVE OS 6.0.8.1? Which Valeo camera module listed on [https://developer.nvidia.com/drive/ecosystem-hw-sw#cameras](https://developer.nvidia.com/drive/ecosystem-hw-sw#cameras) are you using?  
Please be aware that there is a bandwidth limitation on the camera group B, as mentioned on [the “Maxim Integrated GMSL SERDES” page](https://developer.nvidia.com/docs/drive/drive-os/6.0.8.1/public/drive-os-linux-sdk/common/topics/nvmedia_sample_apps/Maxim-Integrated-GMSL-SERDES50.html).

---

<div class="post-metadata">

**Author:** ![khushabu.talele1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@khushabu.talele1](https://forums.developer.nvidia.com/u/khushabu.talele1)\
**Post date:** [January 8, 2024, 9:26am UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/10 "2024-01-08T09:26:43Z")

</div>

Yes @VickNV,  
i am using DRIVEOS 6.0.8 also i am using Valeo cameras which are mentioned on that page so here i am using 30 degree , 70 degree and 120 degree.

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [January 8, 2024, 4:29pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/11 "2024-01-08T16:29:03Z")

</div>

Please confirm that the 8.3 MP cameras are not connected to group B.

---

<div class="post-metadata">

**Author:** ![khushabu.talele1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@khushabu.talele1](https://forums.developer.nvidia.com/u/khushabu.talele1)\
**Post date:** [January 9, 2024, 5:28am UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/12 "2024-01-09T05:28:59Z")

</div>

Yes…I have not connected any cameras to Port B. 4 Cameras are connected to Port A and 2 to Port C. So May I know how much FPS we can expect when more than 8 camerasare connected to Orin and trying to run sample\_camera application from driveworks?

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [January 9, 2024, 4:54pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/13 "2024-01-09T16:54:20Z")

</div>

Could you please confirm whether the recording tools mentioned earlier are functioning without any frame rate issues with your camera connections?

---

<div class="post-metadata">

**Author:** ![khushabu.talele1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@khushabu.talele1](https://forums.developer.nvidia.com/u/khushabu.talele1)\
**Post date:** [January 15, 2024, 12:29pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/14 "2024-01-15T12:29:23Z")

</div>

can you please provide recording tool code? as it is not provided just binary is there.

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [January 16, 2024, 4:53pm UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/15 "2024-01-16T16:53:22Z")

</div>

The source code for the recording tools isn’t currently provided. Please confirm whether you are experiencing any frame-dropping issues with the recording tools.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 13, 2024, 5:50am UTC](https://forums.developer.nvidia.com/t/frame-drop-issue-while-using-sample-camera-code-from-driveworks/277754/17 "2024-02-13T05:50:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
