Thread: MVTools
View Single Post
Old 15th August 2008, 07:58   #1005  |  Link
mikeytown2
Resize Abuser
 
mikeytown2's Avatar
 
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
Quote:
Originally Posted by josey_wells View Post
Boulder, since you have a lot more testing than I do. What value of iDct seems to give the best denoise and detection of scene change. I normally use iDct=1 but was wondering what other experience is.
I wrote a little YUY2 test script
Code:

Function mover(clip a)
{
	KenBurnsEffect(a, startZoomFactor=50, startAlign=1, endAlign=5)
}
b = ColorBars(640,480).ConvertToYUY2()
b.Trim(0,29).mover()


vectors=mvtools_MVAnalyseMulti(blksize=16, overlap=8, divide=2, refframes=1, idx=1, dct=4, truemotion=true, pel=2)
bw1_vec1=vectors.mvtools_MVMultiExtract(0)
fw1_vec1=vectors.mvtools_MVMultiExtract(1)

#~ bw1_vec1=mvtoolsOLD_MVAnalyse(isb=true,  blksize=16, overlap=8, divide=2, idx=2, dct=4, truemotion=true, pel=2)
#~ fw1_vec1=mvtoolsOLD_MVAnalyse(isb=false, blksize=16, overlap=8, divide=2, idx=2, dct=4, truemotion=true, pel=2)


c=mvtoolsOLD_MVFlowFps(last, bw1_vec1, fw1_vec1, num=60000,den=1001)
b= mover(b.Trim(0,58)).AssumeFPS("ntsc_double")
Compare(c, b)
StackHorizontal(b)
StackVertical(StackHorizontal(Overlay(b,c,opacity=0.5), StackComparer(c,b,""))).Trim(2,56)

Function StackComparer(clip x, clip y, string s)
{
	sb1=Subtract(x,y)
	sb1=Overlay(sb1.Levels(128,1,130,0,255), 
	\ sb1.Levels(126,1,128,0,255).PointResize(640*4,480*4).ConvertToYUY2().Invert("y").ConvertToRGB32().PointResize(640,480)
	\ ,mode="add").Levels(34,1,255,0,255).Subtitle("Black pixels means less/no change")
	sb1
}
for YUY2 dct=4 is the best (PSNR 53.11), followed by dct=1 (PSNR 53.10)

This gave me the best (PSNR 53.11) results with MVFlowFps.
(blksize=16, overlap=8, divide=2, idx=1, dct=4, truemotion=true, pel=2)



EDIT:
search=3 & dct=1 gives better (PSNR 53.36) results...
baised off of my PSNR tests, I'll use
(blksize=16, overlap=8, divide=2, idx=1, dct=4, truemotion=true, pel=2, search=0)
It's what I like to call best bang for your buck (PSNR 53.12).

Going to pel=4 i get PSNR=48.62
Going to pel=1 i get PSNR=49.50

Edit2:
(blksize=16, overlap=8, divide=2, idx=1, dct=4, truemotion=true, pel=2, search=0, searchparam=0, lambda=2700, sadx264=7, pnew=9)
PSNR=53.29

Last edited by mikeytown2; 15th August 2008 at 10:41.
mikeytown2 is offline   Reply With Quote