PDA

View Full Version : How to spot identical frames between movies ?


iparout
25th February 2004, 12:21
Hi.

My problem is this : I have a few videos which are split in parts, however there is an overlap between them, meaning that the last say 2 seconds of a video are the same as the first 2 seconds of the next video in the order, so if I join them, those 2 seconds play twice...

Is there any way to edit out the last 2 seconds of the first video (or the first 2 seconds of the seconds video) in order to join those 2 parts flawlessly ?

I was thinking that if there was a way to spot IDENTICAL frames between those 2 videos, then it would be easier for me to know where to cut...

Any ways to achieve that ?

Thank you.

Asmodian
26th February 2004, 00:34
The only way I know of is to step through each frame in VirtualDub(mod). I would use two instances of virtualdub to find exact frame matches.

Sorry but I don't think there is an automated solution.

mustardman
1st March 2004, 22:40
You can detect two identical frames in a row with AVISynth. However, detecting overlap would be either not worth it, or extremely computationally intensive (have to individually check each frame against every other frame).

The way I deal with this problem is to capture with a slight overlap (as you are doing) and then individually trim each clip to the nearest scene change. When rejoined, each join is at a scene change.