# Lost frames with FLIR usb3.0 camera

**URL:** <https://aravis-project.discourse.group/t/lost-frames-with-flir-usb3-0-camera/207>\
**Category:** Using Aravis\
**Created:** [January 28, 2021, 2:45pm UTC](https://aravis-project.discourse.group/t/lost-frames-with-flir-usb3-0-camera/207 "2021-01-28T14:45:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fwanghuan](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fwanghuan](https://aravis-project.discourse.group/u/fwanghuan)\
**Post date:** [January 28, 2021, 2:45pm UTC](https://aravis-project.discourse.group/t/lost-frames-with-flir-usb3-0-camera/207/1 "2021-01-28T14:45:21Z")

</div>

Hi,

The usb3.0 bandwidth is almost 350MB/s, but I use aravis to capture the usb stream, I found the max bandwidth is only almost 140MB/s, when the speed of real streamis more than 140MB/s, it lost the frames.

When I turn on the chunkdata and then capture the FLIR BFS usb3.0 camera stream.  
For example, set the region pixel is 2448\*2048, the format is bayer rggb, if fps is less than 30fps, it works well.  
But if the fps is more than 35fps, such as 40fps, than I found the frames always lost by check the ChunkFrameID.

In the new-buffer callback method, I can check the newest ChunkFrameID and ChunkTimestamp, when the ChunkFrameID is not continuous, I can think the frame is lost. But at the sametime, I cannot got the control-lost signal and call the arv\_stream\_get\_statistics(), both the n\_failures and n\_underruns are zero.

So it seems that when the frame lost , the aravis still think it works well.

Please help me to fix the issue, thks.

PS: I used arv\_camera\_set\_chunks to turn on the chunkdata as below:  
arv\_camera\_set\_chunks (m\_pArvImpl-\>m\_Camera, “FrameID,Timestamp”, NULL);

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/emmanuel/32/198_2.png) [@Emmanuel](https://aravis-project.discourse.group/u/Emmanuel)\
**Post date:** [February 8, 2021, 6:10am UTC](https://aravis-project.discourse.group/t/lost-frames-with-flir-usb3-0-camera/207/2 "2021-02-08T06:10:24Z")

</div>

Hi,

Please open an issue on github.

USB3 performance is not optimal yet, there is an ongoing work to use libusb asynchronous API that is know to work way better at least on underpowered platform like Nvidia Jetson. I don’t have time to work on it myself, so any help is appreciated.

An alternative/complimentary approach would be to try to use the National Instruments kernel modules. Any help welcome here as well.

In your report, please give informations about the platform you are using.

Thanks,

```
Emmanuel.
```
