Log in

View Full Version : Filter idea: HideCombs and ShowCombs


mf
19th June 2003, 13:21
I just had an idea. For interlaced material processing where you want your output to be interlaced, you usually use SeperateFields() and Weave(), but that means all filtering will ignore valuable information from the 2nd field in a frame. So I've come up with a little idea, which could probably easily be adapted from a Smart Bobber (if DGBob() had a way to show combs as black in on a white background, I'd have written a crude AVISynth function for it to test the concept).
HideCombs: Works like a smart bob, but instead of interpolating combed field areas, it simply duplicates them like PointResize.
ShowCombs: Using the comb information from HideCombs, it averages the noncombed areas (which should be exactly the same between frame pairs but might have been altered by filtering), and weaves the combed areas back, halving the framerate to its original rate.

So normally, you'd do:
AVISource("interlacedpwnz.avi")
HideCombs()
Filters(are="fun")
Especially(if="they")
Run(at="1fps")
ShowCombs()
Now there is one thing. Because ShowCombs would use comb information from HideCombs, resizes are impossible because the frame size needs to stay the same. Is that so? :D
My workaround :rolleyes::
AVISource("interlacedpwnz_hires.avi")
HideCombs()
Filters(are="fun")
Especially(if="they")
Run(at="1fps")
ShowCombs()

HideCombs()
LanczosResize(640, 480)
PointResize(640, 240)
Weave()

What about it? Worth doing?