This is the function that builds the video from an array of images. The images are taken using camera and I\'m taking them in portrait mode but the video is generated in lan