I would like to create a new video (2560 x 1440 px) that consists of a section of my current video (240 fps; 1280 x 720 px) on a white background. But, I want to put my current video at a certain spot within this new video (i.e., pixel location 100 x 100). Does anyone know how to do that?
I am currently using this script to extract the section of the video that I want:
vid1 = VideoReader(LeftVideo,'CurrentTime',TimeOffset_L);
img1 = readFrame(vid1);
step(videoPlayer, imgt);%play video
writeVideo(outputVideo, imgt); %record new video