I am trying to figure out how to process a special video for an application that I trying to build. After days of research, I cannot figure out how to achieve what I am trying to build:
The user passes in a video that is X minutes long. The video was produced was stitching together multiple videos of variable length(with a maximum length per video of K seconds, say 60). The purpose of the app is to detect when each video starts and ends within the larger video of X minutes.
For example, the user passes in a video that is 25(this is X) minutes long. We know that a single video cannot be more than 10(this is K) minutes. So the maximum number of videos that the user could have stitched together to produce the input video is 3 videos(Two ten minute videos and one 5 minute video). But this is not always case, another possible combination is(Five 5 minute videos, etc).
I've been researching this for days and cannot come up with any way mathematically to solve this(very possibly due to my limited math knowledge). Is it possible to solve this problem(where each of the stitched videos begin and end)?
Thank you for any help! It's sincerely appreciated.