Log in

View Full Version : Help with separatefields/weave etc.


Number6
30th December 2005, 21:00
Hi guys, hope you all had a nice Christmas.

I've read the guides/threads on processing interlaced/progressive material a thousand times but I still can't get my head round it. I've understand that you should use:

separatefields()
somefilter()
weave()

on spacial filters and:

separatefields()
even = SelectEven(last).somefilter()
odd = SelectOdd(last).somefilter()
Interleave(even, odd)
weave()

on temporal filters, but what I don't understand is whether you have to do this when the original material is progressive, interlaced or both. Can someone enlighten me please?

Also, with a line like:

even = SelectEven(last).somefilter()

how would I write it if I wanted to apply several filters, or one with too many parameters to fit on one line?

Thanks

John.

stickboy
31st December 2005, 01:29
It's for interlaced footage. The point of SeparateFields().SomeFilter().Weave() is to prevent spatial filters from blurring even/odd scanlines that corresponds to different points in time.

For temporal filters, you don't need to use SeparateFields/SelectEven/SelectOdd/Interleave/Weave at all; just apply the filter directly. The second section of code you cited is for spatial-temporal filters.
with a line like:

even = SelectEven(last).somefilter()

how would I write it if I wanted to apply several filters, or one with too many parameters to fit on one line?
even = SelectEven(last).SomeFilter().SomeOtherFilter().YetAnotherFilter().Etc()
oreven = SelectEven(last).SomeFilter()
even = even.SomeOtherFilter()
even = even.YetAnotherFilter()
even = even.Etc()orfunction MyFilter(clip c)
{
c
SomeFilter()
SomeOtherFilter()
YetAnotherFilter()
Etc()
return last
}

even = SelectEven(last).MyFilter()If you want to split up long lines, you also can use the line-continuation character ( \ ):
someClip = SomeFilter(a, b, c, d, e,
\ f, g, h, i, j,
\ k, l, m, n, o)

Number6
31st December 2005, 02:01
Ahh... I see. Thanks a lot stickboy, I finally understand it now. It’s so much clearer when you can see specific examples like those you gave. The guides here are good but for some reason it just was clicking with me.

Cheers

John.

trolltuning
1st January 2006, 14:34
Is there any way to put Stickboy's last post in a sticky or FAQ where everyone can find it easily? I think it's the first time I've seen all three methods neatly in one place.