scharfis_brain
6th March 2004, 20:29
function TVdeint(clip clip, float kell)
{
clip=clip.addborders(0,4,0,4)
input=clip.converttoyuy2().separatefields()
blank=blankclip(selecteven(input))
even=interleave(selecteven(input),blank).weave()
odd =interleave(selectodd(input) ,blank).weave()
output=interleave(even,odd)
kell = (kell < 0 ) || (kell > 1) ? 0 : kell
(kell == 0) ? output : output.blur(0,kell).levels(0,1,255-int(128*kell),0,255)
crop(0,4,0,-4)
}
this thing separates the video into its fields,
and then fills them up with every other line black.
This gives the typical scanline-look
kell is the amout of vertical blur that is introduced
after scanlining to simulate some kind of unfocus.
kell=1 is very close to a simple bob
kell=0 gives the untouched scanine-look
every value between 0 and 1 varies the amount of blur.
values greater 1 or smaller zero are doing the same like kell=0
{
clip=clip.addborders(0,4,0,4)
input=clip.converttoyuy2().separatefields()
blank=blankclip(selecteven(input))
even=interleave(selecteven(input),blank).weave()
odd =interleave(selectodd(input) ,blank).weave()
output=interleave(even,odd)
kell = (kell < 0 ) || (kell > 1) ? 0 : kell
(kell == 0) ? output : output.blur(0,kell).levels(0,1,255-int(128*kell),0,255)
crop(0,4,0,-4)
}
this thing separates the video into its fields,
and then fills them up with every other line black.
This gives the typical scanline-look
kell is the amout of vertical blur that is introduced
after scanlining to simulate some kind of unfocus.
kell=1 is very close to a simple bob
kell=0 gives the untouched scanine-look
every value between 0 and 1 varies the amount of blur.
values greater 1 or smaller zero are doing the same like kell=0