MATLAB: How to splice together videos, of different frame rates

combining videosvariable frame rates

Hi,
Has anyone tried to splice together two or more videos, into a single video, using MATLAB? For example: video1 is composed of frames f1, f2, f3, f4 at frame rate 10 frames per second; video2 is composed of frames f4, f5, f6, f7 at frame rate 15 frames per second. I would like to splice video1 and video2 into a single video, which I will call, video3. video3 will thus be composed of frames f1, f2, f3, f4, f5, f6, f7 with frame rate 10fps on frames [f1,f2,f3,f4] and frame rate 15 fps on frames [f4,f5,f6,f7]. Please help? Thanks.

Best Answer

Replicate each of the first frames 15 times, and replicate each of the other frames 10 times, and declare that the frame rate is 150.
Related Question