Log in

View Full Version : Duplicate frames after IVTC


langman10
4th April 2008, 20:27
Hello,

I've got footage that was edited together using telecined footage. When I run TFM() and TDecimate() with defaults, I end up with some duplicated frames because the cadence of the telecine/pulldown changed at scene changes. How do I avoid these? I've tried varying changes in TFM and TDecimate settings like mode, hybrid, etc. I'd be happy with simply blending a couple frames around that duplicate frame in order to overcome the jerkiness of a duplicate frame. Maybe I need a function following these two which blends any duplicates. Help! Thanks in advance.

Langman

langman10
4th April 2008, 23:40
Well, wrote my first AviSynth function. It's clunky but it works. I found all the duplicates using DeDup's first pass, then each of those frame numbers to this:

function BlendwithPreviousFrame(clip c, int fstart)
{
myrange = trim(c,fstart-1,-2)
separatefields(myrange)
trim(2,-1) + trim(1,-1)
weave()
fielddeinterlace()
c.trim(0,fstart-2) + myrange.trim(0,-1) + last + myrange.trim(1,-1) + c.trim(fstart+2,0)

}

Langman