Closed VasuAgrawal closed 5 years ago
I do not have an answer for why you are having problems at 6 and 60 FPS specifically (one of the Intel guys may be able to help you with that). I did want to fill in some background information that may be helpful to you though.
Intel's white paper on multiple cameras has a chart for approximate bandwidth use on a 4-port USB hub without hardware sync. It shows that 90 FPS may be possible with a 4-camera setup under certain settings. In the paper, Intel tested with a 4-port AmazonBasics hub.
The specification of the computing hardware can have a bearing on performance too. Intel's September webinar session on multiple cameras recommended that the computing device's specification be increased as the number of cameras added is increased (for example, an i7 processor may be appropriate for a 4-camera setup). Jetson Xavier (the board you use) is a powerful board though, so that may not be the cause of your problem.
Intel said in the webinar that at a future date, x3 compression of data will be enabled. This will allow more channels and more cameras to be supported. Also, a new 'Modified Huffman' lossless compression will enable the streaming of higher resolution and FPS on USB2, and more channels in multi-camera configurations.
Regarding your request for a 25 FPS framerate to be supported, this is a request that other users have made too, as it is seen as being ideal for using the camera with movie-related work. I do not have any information on whether there are currently plans to implement support for this FPS though. For now, 25 FPS is supported only in the Y16 IR mode (with IR only active, no depth stream), which is an unrectified channel meant for use in camera calibration rather than everyday use in applications. This mode also only supports a couple of resolutions.
Hi @MartyG-RealSense ,
Thanks for the answer. The numbers we're seeing for framerates are lower than what's quoted in the whitepaper, but I suppose there could be some host side hardware differences that explain that (x86 architecture vs ARM, or maybe different host controllers).
It would be nice to have the compression features enabled soon, but last I remember (from @dorodnic ) wasn't able to give us an official ETA on when that will be coming out. It's not clear to me if a variable frame rate is in the pipeline right now.
Is there anyone from Intel who might be able to explain the weird behaviors at 6 and 60 fps?
[Realsense Customer Engineering Team Comment] Hi @VasuAgrawal,
It looks Nvidia AGX Xavier platform used. So far, I don't have that to have a further check. Per my previous understanding on Jetson TX2, is there a script like "jetson_clocks.sh" to disable auto-frequency adjustment and see how it works?
[Realsense Customer Engineering Team Comment] Hi @VasuAgrawal, Were you able to test the 4 camera for 640x360 at 30 fps using a powered USB hub?
Issue Description
I have 4 RealSense D435 cameras that I'm trying to run at the same time, streaming both depth and RGB information. I have the 4 cameras plugged into a USB hub, which is then plugged in to one of the USB C ports on the Xavier.
I was trying to determine the maximum frame rates and resolutions I could run the 4 cameras at, and started by testing a single camera. It seems that there's a bug somewhere which is preventing the cameras from generating the correct depth information when the RGB camera is activated, at both 6 and 60 fps. At 15 and 30 FPS, there doesn't seem to be any problems.
This bug makes a lot more sense with some photos / videos, so I took a screen recording of the procedure of determining which configurations of depth and RGB work and which don't (with a single camera). Here are the results:
While streaming 4 cameras at 60 FPS is impossible given USB 3 bandwidth limits, I do have a use case for streaming the cameras at high resolutions at 6 FPS. Does anyone have any idea what could be causing the failures at 6 and 60 FPS?
To see whether I could stream 4 cameras at 6 FPS at 720p, I repeated the same experiments as above, except with 4 cameras (testing only the working configurations). Unfortunately, 4x 720p seems to be just slightly too much bandwidth, and the 848 x 480p configuration doesn't work (per above).
You can see the procedure here.
Perhaps this is also the place to bundle in a related feature request - would it be possible to add additional framerates? Specifically, I would very much like to run the 4 camera 640 x 360 configuration at a functional frame rate between 15 and 30, e.g. 25.