I am creating a raspberry pi timelapse camera encoding video with CV2 videowriter Each image captured with picamera is added to the videowriter and once the intended number