Log in

View Full Version : Problem with degrainmedian


AVIL
31st March 2005, 22:06
Hi.

I found differences between the output of the Fizick's plugin degraimedian if operates in YUY2 or operates in YV12:

I have prepared a script :

c=avisource("bve_filtro.avi").crop(192,0,256,0,align=true).assumebff()
u=c.TDeint(order=-1,mode=1,field=1,type=0,sharp=true,mtnmode=0,mthreshL=3,mthreshC=3,cthresh=3,link=0)
x=u.degrainmedian(mode=1,limituv=0).converttoyv12()
z=u.converttoyv12()
y=z.degrainmedian(mode=1,limituv=0)
stackhorizontal(u.addborders(0,0,2,0),mvex(z,x).addborders(0,0,2,0),mvex(z,y))

Function mvex(clip c ,clip d){

YV12LUTxy(converttoyv12(c), converttoyv12(d),yexpr="x y - 4 * 128 +" , uexpr="128", vexpr="128",u=3,v=3 ).converttoyuy2()

}

I have attached a image of the difference.

The function mvex multiplies the luma by 4. If the filter operates in YUY2 and the conversion is made after (part 2 of the image) the output changes a lot than if the filter operates in YV12 (part 3 of the image).

Sorry for my english.

Wilbert
31st March 2005, 22:50
I don't see your attachment?

Fizick
1st April 2005, 20:54
why not ask in degrainmedian thread?

AVIL
1st April 2005, 22:06
Hi all:

I continue the trhead in the grainmedian thread ( sorry, Fizick ) :

http://forum.doom9.org/showthread.php?s=&threadid=80834&perpage=20&pagenumber=3

This move not has enhance my inhability.