The code below stores all frames from a video and then selects and stores frames of interest which in this case is a frame per 90 frames.
import cv2 import nu