Alcacia
1st June 2004, 22:31
I have a piece of video (AVI) with a very clear pattern of frames:
1-2-3-4-5-6-7-8-10-11-12-12-
1-2-3-4-5-6-7-8-10-11-12-12-
...and so on.
Every 12th frame is a duplicate, and there is a skipped frame 4 frames before each duplicate.
I realize it is very easy to get rid of the duplicate frames with Decimate(). But I would also like to insert a blended frame 4 frames before each duplicate. Is there any way to accomplish this with AviSynth?
I also realize that if this were an absolutely strict pattern, then I could accomplish both goals (dupe removal and blend insertion) using SelectEvery(). But I would rather use a command that will detect and reference the duplicate frames, in case the pattern isn't strict.
Any ideas?
1-2-3-4-5-6-7-8-10-11-12-12-
1-2-3-4-5-6-7-8-10-11-12-12-
...and so on.
Every 12th frame is a duplicate, and there is a skipped frame 4 frames before each duplicate.
I realize it is very easy to get rid of the duplicate frames with Decimate(). But I would also like to insert a blended frame 4 frames before each duplicate. Is there any way to accomplish this with AviSynth?
I also realize that if this were an absolutely strict pattern, then I could accomplish both goals (dupe removal and blend insertion) using SelectEvery(). But I would rather use a command that will detect and reference the duplicate frames, in case the pattern isn't strict.
Any ideas?