Log in

View Full Version : New Filter: GrainOptimizer (2.02 -- Bug fixed with certain temporal denoisers)


Pages : 1 2 3 [4]

Razorholt
9th January 2008, 00:10
Install this: http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&DisplayLang=en

salehin
10th January 2008, 11:35
Thanks Razorholt. :)

I just installed that tool again- now v 2.02 works. Possibly it wasn't working due to some windows update or it simply wasn't installed properly. Did anyone have this problem?

burfadel
10th January 2008, 12:31
Thanks Razorholt. :)

I just installed that tool again- now v 2.02 works. Possibly it wasn't working due to some windows update or it simply wasn't installed properly. Did anyone have this problem?

Windows Update doesn't show all updates! it also doesn't show runtimes except for .NET. VS 2005 (and later, there's 2008 out now). This is one request that people have said to Microsoft but still they haven't added it. The other thing not added to Windowsupdate is the bimonthly Directx runtime updates, they have to be installed manually.

Also in their wisdom, service packs do not include new versions of Directx, WMP, IE, etc etc. They should at least have it as an option to install it when running the service packs.

Anyways, you didn't miss anything, unfortunately is just expected at times that people will find Directx etc by themselves! (from the microsoft download site etc.)

squid_80
10th January 2008, 12:38
If you read the VS docs, it says if you're going to link dynamically to the runtime libraries you should distribute either the libraries themselves with your app (typically requires an installer package) or link to their download page so it can be installed from there - again requires an installer if you want it done automatically, else you have to rely on the user reading the documentation you provide.

Sasovics
16th February 2008, 19:24
Folks,

I am trying to run GrainOptimiser, but every time I tried to load my avs script I am getting error message:

Script error: Invalid argumets to function "GrainOptimizer"
(I:\Video.avs, line 5)

My avs script is as follows (based on Salehin script found here (http://forum.doom9.org/showthread.php?p=1084695#post1084695)):


SetMemoryMax(128)
clip1=DirectShowSource("Untitled.grf", fps=23.976, framecount=165876, audio=false)
a=clip1.crop(0, 144, 0, -136)
clip2=a.DeGrainMedian(limitY=2,limitUV=3,mode=1)
GrainOptimizer(clip2).LimitedSharpenFaster(Strength=50).Spline36Resize(1280, 536)

What am I doing wrong here ??

fyi - I am using the latest GrainOpt.dll v 2.02

salehin
16th February 2008, 19:32
What am I doing wrong here ??
See here (http://forum.doom9.org/showpost.php?p=1084772&postcount=151)

Sagekilla
16th February 2008, 19:40
Salehin, that's not the issue here.

He's calling GrainOptimizer with the arguments GrainOptimizer(clip2,clip2) It's using the same clip for input and denoised clip, since any filter will take the last call as the input. Which, in this case, was clip2. Here's the proper filter chain:

SetMemoryMax(128)
clip1=DirectShowSource("Untitled.grf", fps=23.976, framecount=165876, audio=false)
a=clip1.crop(0, 144, 0, -136)
clip2=a.DeGrainMedian(limitY=2,limitUV=3,mode=1)
GrainOptimizer(a,clip2).LimitedSharpenFaster(Strength=50).Spline36Resize(1280, 536)

Sasovics
16th February 2008, 20:04
Thanks Sagekilla! As always! ;)

salehin
16th February 2008, 20:09
Salehin, that's not the issue here.
thanks for point out my mistake, sage. sorry for that

Sagekilla
16th February 2008, 23:57
thanks for point out my mistake, sage. sorry for that

Not a problem, may have well been both being a problem at once!

It's what we're here to do, help :)

Sp00kyFox
27th February 2008, 00:08
i've also got some strange lines with your plugin..

http://img341.imageshack.us/img341/4845/linesrp6.png

here is my script:

DGDecode_mpeg2source("C:\XFILES_DISC6\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
mcbob().selecteven()
crop( 2, 2, -14, 0)

clip=last
denoisedclip=fft3dgpu(sigma=4)
GrainOptimizer(clip,denoisedclip)

Spline36Resize(704,576)

am I doing something wrong or is it a bug in your plugin?

Dark Shikari
27th February 2008, 01:14
i've also got some strange lines with your plugin..

http://img341.imageshack.us/img341/4845/linesrp6.png

here is my script:

DGDecode_mpeg2source("C:\XFILES_DISC6\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
mcbob().selecteven()
crop( 2, 2, -14, 0)

clip=last
denoisedclip=fft3dgpu(sigma=4)
GrainOptimizer(clip,denoisedclip)

Spline36Resize(704,576)

am I doing something wrong or is it a bug in your plugin?My filter wasn't designed for interlaced video... though it seems you're deinterlacing...

That is very odd, and the kind of artifacting you're seeing doesn't even make sense to me... very weird.

I'm not really maintaining this plugin anymore--I'll probably post the code eventually and someone else can mess with it.

Sp00kyFox
27th February 2008, 01:40
jup I'm deinterlacing with mcbob so that shouldn't be the problem.
yes indeed - very weird oO
well I tested it again and the problem seems to lie in your filter.

thetoof
2nd March 2008, 00:51
@Dark Shikari

I can't figure out which mode I should use when using this plugin with setmtmode()... since you wrote the code, do you know what would be the most appropriate mode?

Thx

Dark Shikari
2nd March 2008, 00:54
@Dark Shikari

I can't figure out which mode I should use when using this plugin with setmtmode()... since you wrote the code, do you know what would be the most appropriate mode?

ThxI have no idea, since I have no experience with MTmodes.

Its far too fast a plugin to need MT though, I think. The bottleneck in speed will always be the external denoiser.

LaTo
11th May 2008, 08:44
i've also got some strange lines with your plugin..

http://img341.imageshack.us/img341/4845/linesrp6.png

here is my script:

DGDecode_mpeg2source("C:\XFILES_DISC6\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
mcbob().selecteven()
crop( 2, 2, -14, 0)

clip=last
denoisedclip=fft3dgpu(sigma=4)
GrainOptimizer(clip,denoisedclip)

Spline36Resize(704,576)

am I doing something wrong or is it a bug in your plugin?

I got the same problem with progressive video...

http://img84.imageshack.us/img84/6067/bugoi4.th.png (http://img84.imageshack.us/my.php?image=bugoi4.png)

Here is my script:
v0=directshowsource("D:\vid.GRF",convertfps=true,fps=23.976,audio=false)
a0=directshowsource("D:\aud.GRF",video=false)
audiodub(v0,a0)

crop(0,92,0,-92)

ulevels(preset="op",gamma=1.5)

src=last
sharp=src.fft3dgpu(sigma=0,sigma2=2,sigma3=2,sigma4=0,plane=1,bt=1,precision=2).limitedsharpenfaster(strength=120)
soothe(sharp,src,80)

ttempsmooth()
gradfun2db(1.2)

orig=last
grain=orig.addgrain(50,0,0)
grainoptimizer(grain,orig)

addborders(0,92,0,92)

spline36resize(720,576)

removegrain(1)
limiter()

Chiba
13th May 2009, 13:57
I got the same problem with progressive video...

http://img84.imageshack.us/img84/6067/bugoi4.th.png (http://img84.imageshack.us/my.php?image=bugoi4.png)


I've test it with interlaced videos and it's work great but, i've used something like :


MPEG2Source("Full.d2v",cpu=0,idct=4,iPP=true,showQ=false,fastMC=false,info=3)
colormatrix(hints=true)
tfm(d2v="Full.d2v")
tdecimate(mode=1)
crop(0,92,0,-92)
limiter()
Spline36resize(704,576)

src=last
sharp=limitedsharpenfaster(smode=1,strength=120)
soothe(sharp,src,15)

a=last
b=a.MT("frfun3b()",threads=2,overlap=8)
SeeSaw(a, b, Sstr=0.9, Szp=12, SdampHi=20, bias=40,ssx=1.7)

grainy=last.MT(filter="GradFun2dbmod(1.3)",threads=2,overlap=8)
clean=MT(filter="KenKunNR(180,2,10)",threads=2,overlap=8)
grainoptimizer(grainy,clean,tdist=9999)

MT("Ttempsmooth(maxr=4)",threads=4,overlap=8)

addborders(0,92,0,92)


I've no problem with film and animes ^^

Thanks for this great plug DarkShikari

rkalwaitis
9th July 2009, 10:17
DarkShikari

Here is what I tried. Although Im not totally sure that it is working the way it should. Although the image is pleasing to me.

# Set DAR in encoder to 87 : 35. The following line is for automatic signalling
global MeGUI_darx = 87
global MeGUI_dary = 35
DGDecode_mpeg2source("C:\Users\Kalwaitis\Desktop\Movies Done\Crossing Over\VTS_05_1.d2v", cpu=4, info=3)
ColorMatrix(hints=true, threads=0)
setmtmode(2)
smoothlevels(preset="tv2pc")
Deblock_QED(uv=3)
source=last
denoised=fft3dgpu()
#denoised=DeGrainMedian(limitY=2,limitUV=3,mode=1).DeGrainMedian(limitY=2,limitUV=3,mode=1)
superfilt=MSuper()
forvec1 = MAnalyse(superfilt,isb=false, delta=1, truemotion=true, blksize=16, overlap=8, pelsearch=2, search=3, searchparam=2, DCT=0, global=true, chroma=false,sadx264=0)
forvec2 = MAnalyse(superfilt,isb=false, delta=2, truemotion=true, blksize=16, overlap=8, pelsearch=2, search=3, searchparam=2, DCT=0, global=true, chroma=false,sadx264=0)
forvec3 = MAnalyse(superfilt,isb=false, delta=3, truemotion=true, blksize=16, overlap=8, pelsearch=2, search=3, searchparam=2, DCT=0, global=true, chroma=false,sadx264=0)
bacvec1 = MAnalyse(superfilt,isb=true, delta=1, truemotion=true, blksize=16, overlap=8, pelsearch=2, search=3, searchparam=2, DCT=0, global=true, chroma=false,sadx264=0)
bacvec2 = MAnalyse(superfilt,isb=true, delta=2, truemotion=true, blksize=16, overlap=8, pelsearch=2, search=3, searchparam=2, DCT=0, global=true, chroma=false,sadx264=0)
bacvec3 = MAnalyse(superfilt,isb=true, delta=3, truemotion=true, blksize=16, overlap=8, pelsearch=2, search=3, searchparam=2, DCT=0, global=true, chroma=false,sadx264=0)
#denoised =MDegrain3(superfilt,bacvec1,forvec1,bacvec2,forvec2,bacvec3,forvec3,thSAD=300, thSCD1=400, thSCD2=100, plane=4, limit=200)
denoisedclip=MDegrain3(superfilt,bacvec1,forvec1,bacvec2,forvec2,bacvec3,forvec3,thSAD=400, plane=4, limit=200)
#denoised =MDegrain2(superfilt,bacvec1,forvec1,bacvec2,forvec2,thSAD=400, thSCD1=400, thSCD2=135, plane=4)
return denoised.crop( 0, 64, 0, -64)
source.grainoptimizer(denoisedclip,tdist=18)

lsfmod()
GradFun2DBmod()


any suggestions are welcomed. Also I can not find the setting examples for the plugin. Could you please point me in the right direction.

Thanks

Adub
13th July 2009, 23:00
Although the image is pleasing to me.
Then you are done. Don't question the little graces in life.

tormento
3rd March 2010, 07:49
@ Dark Shikari

Incredibly enough I have just discovered this plugin. Any version news?

Dark Shikari
3rd March 2010, 08:13
@ Dark Shikari

Incredibly enough I have just discovered this plugin. Any version news?No, it was a bad idea to begin with and I wrote it when I was still a clueless newbie ;)

If I wrote something similar again, it would work very differently.

Terka
3rd March 2010, 10:00
and would you?

osgZach
3rd March 2010, 16:48
There are no bad ideas, only bad implementations ;)

Just came across this myself.. So now I have to play around with it :p

tormento
10th June 2010, 07:08
I'm digging this thread up as I love this plugin, even if it was a bad idea to begin with ;)

Please, DARK SHIKARY, give us a newer version!

LaTo
10th June 2010, 09:02
I'm digging this thread up as I love this plugin, even if it was a bad idea to begin with ;)

Please, DARK SHIKARY, give us a newer version!

Yes, it would be great to fix the old "crop" bug...

OK:
src=last
den=src.FFT3Dgpu()

GrainOptimizer(src,den)

CRASH:
crop(8,4,-2,-6)

src=last
den=src.FFT3Dgpu()

GrainOptimizer(src,den)

BUG: (see the screenshot)
crop(16,16,-16,-16)

src=last
den=src.FFT3Dgpu()

GrainOptimizer(src,den)

http://img84.imageshack.us/img84/6067/bugoi4.th.png (http://img84.imageshack.us/my.php?image=bugoi4.png)

tormento
10th June 2010, 12:07
I use DGNVTools and the crop bug doesn't appear...

Gser
19th June 2010, 12:21
This looks ideal for Firefly. Now I just need a blu-ray drive :(

tormento
8th December 2010, 14:33
Dark Shikari, even if your plugin is bugged, old and anything else ;) could you please provide us a x64 test version? ;)

Thanks.

sonu patel
14th September 2014, 11:00
Grain Optimizer v2.02 downlaod fillter link is dead plz update it ....