compare two video then cut the different
A Clip(C) is a sequence of frames, each frame(f) consists of video and audio frames, the duration(t) of each frame is constant and is determined by the frame rate.
For the i th clip(Ci), it is defined as (fi_n) n∈ℕ
back to your question, the idea is to find the result of
⊕Cj , where j ∈ {0,…,19}
Since the sizes of all Cj are not the same, the elements or frames of ⊕Cj are not guaranteed to be monotonic increasing. Therefore, different frames, with expected sequence, cannot be identified in this problem.
=======
IF you can guarantee the sizes of all Cj to be the same,
a video frame can be extracted by ffmpeg to a png file and a audio frame can be extracted by the t second of wav file. The ⊕ operation can be handled by image diff and easily be found in Google.