View Single Post
Old 11th May 2004, 23:07   #5  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
Do you mean this:

Code:
function mvdeint(clip x, float "moblur")
	{
	mbl=default(moblur,0.1)

	x.separatefields()

	evn0=selecteven().converttoyv12()
	odd0=selectodd().converttoyv12()

	# compensate the even field to the temporal position of the odd field
	evn1a=evn0.mvinterpolate(nb = 5,bl = 0.5-mbl, el = 0.5+mbl, wf = "hat")
	evn1b=evn0.duplicateframe(1).reverse().mvinterpolate(nb = 5,bl = 0.5-mbl, el = 0.5+mbl, wf = "hat").reverse()
	evn1=overlay(evn1a,evn1b,opacity=0.5)

	# compensate the odd field to the temporal position of the even field
	odd1a=odd0.mvinterpolate(nb = 5,bl = 0.5-mbl, el = 0.5+mbl, wf = "hat")
	odd1b=odd0.duplicateframe(1).reverse().mvinterpolate(nb = 5,bl = 0.5-mbl, el = 0.5+mbl, wf = "hat").reverse()
	odd1=overlay(odd1a,odd1b,opacity=0.5)

	# chain original and compensated field
	evn2=interleave(evn1,evn0).trim(1,0)
	odd2=interleave(odd1,odd0)

	# reinterlace the strea,
	interleave(evn2,odd2)
	weave()
	}
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote