View Full Version : Using filters that do not support interlacing (on interlaced material)
ariga
19th September 2007, 15:14
Is it possible to apply filters that do not support interlacing on interlaced material?
For interlaced PAL-DV, I am guessing:
SeparateFields()
top=SelectEven()
bottom=SelectOdd()
top=top.Filter1()
bottom=bottom.Filter1()
top=top.Filter2()
bottom=bottom.Filter2()
...
Interleave(top,bottom)
Weave()
Or is there a better/simpler way ?
Any filters that wouldn't work correctly this way, other than resizing?
R3Z
19th September 2007, 15:51
Easiest way i know is to dumb bob (without Motion compensation);
Bob(0,0.5)
Apply filters
Then re-interlace;
SeparateFields().SelectEvery(4,0,3).Weave() # bff
or
SeparateFields().SelectEvery(4,1,2).Weave() # tff
Thanks go to Didee for teaching me this.
foxyshadis
19th September 2007, 16:02
One option is to use:
function myfilters(clip c) {
c.stuff().morestuff()....
}
separatefields
interleave(selecteven.myfilters,selectodd.myfilters)
weave
Besides resizing, I can't think of anything that causes strange artifacts when always using its own fields, though denoising may occasionally be a little too strong.
Leak
19th September 2007, 18:35
One option is to use:
Besides resizing, I can't think of anything that causes strange artifacts when always using its own fields, though denoising may occasionally be a little too strong.
Well, since you're working on half-height fields that way the filter's radius will be twice as high vertically. That might be something to consider...
np: Tocotronic - Superpitcher/Wassermann Maxi Mix (Pure Vernunft Darf Niemals Siegen / Remixe)
ariga
20th September 2007, 07:46
Thanks for the replies.
One option is to use:
Besides resizing, I can't think of anything that causes strange artifacts when always using its own fields, though denoising may occasionally be a little too strong.Well, since you're working on half-height fields that way the filter's radius will be twice as high vertically. That might be something to consider...
Would bobbing as suggested by R3Z above help to reduce such artifacts?
foxyshadis
20th September 2007, 14:53
Sure, but the only reason you split into even/odd like this is speed, and bobbing removes that advantage. I don't think double-height denoising can cause "artifacts" unless you use extremely strong settings, it just changes the nature of the effect sometimes. Different can be good or bad or irrelevant, give it a shot and see if it bothers you.
Serbianboss
20th September 2007, 15:22
Sorry for maybe offtopic, but can we use filters like frfun7,peachsmoother and other non interlaced filters with this script:
AVISource("C:\movie.avi")
ConvertToYuY2(interlaced=true)
SeparateFields()
odd=SelectOdd.##here goes frfun7, peachsmoother,convolution3d,fluxsmooth or other non interlaced filter
evn=SelectEven.##here goes frfun7, peachsmoother,convolution3d,fluxsmooth or other non interlaced filter
Interleave(evn,odd)
Weave()
This script is actual for convolution 3d, so can be this used for another non interlaced filter on interlaced material.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.