Log in

View Full Version : Deleting frames with Donald’s Decomb/IsCombed() function?


drgonzo62
9th October 2006, 18:10
Hi,

I’m trying to delete interlaced frames that where created during a 16 to 25fps
Telecine transfer.

Decomb’s IsCombed() function does a fine job of detecting those interlaced frames,
But how do I get rid of them?

Here is my (pretty simple) script so far:

imagesource("D:\Dirt\Movie 2\Clip_1_%04d.png",0,172)

ConvertToYV12()

clip1=Subtitle(LAST,"Interlaced.")
clip2=Subtitle(LAST,"Not Interlaced.")
ConditionalFilter(last, clip1, clip2, "IsCombed()", "=", "true")

I’d like to have only the progressive frames to make dirt removal easier.
Since there isn’t a consistent pattern, non of the decimate() functions I know
Of will work. I’ll even take an output to a text file of the frame status and run
It through a VB program to nuke the interlaced frames.

Any ideas?

IanB
10th October 2006, 08:45
I take it that in an average 25 frame sequence about 16 frames are original and thus about 9 are somehow transitional and IsCombed() does an adequate job of detecting them.

I say about because due to jitter issues you are actually getting 8,9 or 10 Combed frames per arbitary 25 frames. Am I correct?

As long as the combed frames occur singly you could use the ConditionalFilter to replace them with the previous frame thus producing duplicate frames instead of combed frames, then use FDecimate() (http://neuron2.net/fdecimate/fdecimate.html) or MultiDecimate() (http://neuron2.net/multidecimate/multidecimate.html) to strip the duplicates.imagesource("D:\Dirt\Movie 2\Clip_1_%04d.png",0,172)
ConvertToYV12()

clip1=Last
clip2=DuplicateFrame(0)
ConditionalFilter(last, clip1, clip2, "IsCombed()", "=", "true")

MultiDecimate(.....)Or you could use...
WriteFileIF("MapFrameFile.txt", "IsCombed() ? False : True", "Current_Frame")This should directly give you a list of frames to use with Stickboys frame remapping from a file plugin. JDL_(re)map_Frames or something (it's on http://www.avisynth.org/stickboy when its up)

drgonzo62
10th October 2006, 18:49
Thanks for the tips, Ian.

I'll try that right away.