1 of 1 people found this helpful
I would imagine that on line 30 of the script, you would change i < 30 to i < 60. This tells the 'For Loop' to keep processing until it reaches the 60th frame, and then go no further and return to the start to begin the loop again and check another 60 frames.
for (auto i = 0; i < 30; ++i) pipe.wait_for_frames();
for (auto i = 0; i < 60; ++i) pipe.wait_for_frames();
Based on what I have heard from other users about saving PNGs, the program is likely to run very slow if you try to save every frame, and will disrupt the playing of the stream because of this processing lag. The notes in the script indicate that it is storing up a collection of frames before saving the final frame to give the auto-exposure time to settle.
If you really want to try to save every frame though .. if I were programming this script, I would try deleting lines 37,38 and 56, which seem to set up the 'If' check for whether it is the last frame of the sequence.