View Full Version : Eliminating random dupe frames


LoKi128
26th April 2003, 06:39
I have a clip a friend of mine sent me... it has a whole bunch of dupe frames. I tried using decimate, but the thing is that the dupes don't occur in cycles all the time.

Most of they time, I get 7 good frames, then 3 dupes. But sometimes I only get as little as 5 good frames, and then a series of 5 dupes. Tried using decimate(cycle=6, mode=2) and it got rid of a whole bunch, but it is still kinda jittery.

Is there a plugin that will just go thru the whole clip and if it detects a dupe, remove it, no matter where it is? I just started messing around with AviSynth today, so I'm still learning.

Thanks!

sh0dan
26th April 2003, 12:11
This would get you a variable fps movie, which isn't possible.

Decimate is probably the only way to go. You could try uploading a critical section of the file somewhere, for us to help you more.

You could also use the Dup-filter - that way the duplicate frames will be exactly the same, and take up almost no space when you compress them.

Guest
26th April 2003, 13:44
Originally posted by sh0dan
This would get you a variable fps movie, which isn't possible.If the duplicates are not too badly distributed the resulting AVI may play OK with an appropriate frame rate set.

I've been wondering about how to implement this for some time. Is it possible to set the frame rate and count in the filter's destructor, where we know how many duplicates we have?

sh0dan
26th April 2003, 13:56
@neuron: I'll follow up in development.

trbarry
26th April 2003, 18:42
I've been wondering about how to implement this for some time. Is it possible to set the frame rate and count in the filter's destructor, where we know how many duplicates we have?

It may be necessary to already have that info at open time for Vdub and also during processing to properly interleave audio. Imagine if all the dups were at the end of an 8 hour run.

- Tom

Guest
26th April 2003, 19:00
Followups to the Development forum, please. Thread closed.