Astra Stereo S: Can´t change fps in depth stream

I want to change the fps in the depth stream to something different than 30fps (for example 15 fps), with this code:

depthStream.start();
astra::ImageStreamMode depthMode;

depthMode.set_width(640);
depthMode.set_height(400);
depthMode.set_pixel_format(astra_pixel_formats::ASTRA_PIXEL_FORMAT_DEPTH_MM);
depthMode.set_fps(15);

depthStream.set_mode(depthMode);

The stream still has 30 fps after this, even though the “depthStream” shows 15 fps.
Anything else I can do to set the fps to 15 or 20 fps?

1 Like