Video using Arducam Mega 5mp using spi

I am trying to take a video using nrf52833dk.
I know that the only way is to take multiple pictures using takeMultiPictures(camera, mode, pixel_format, 1000); function where 1000 is the number of pictures to be taken.
I want to take 3 photos per second.
How can I change the to make a video for 5 minutes with the 1000 pictures.
how to do so?
Thanks in advance.