Log in

View Full Version : Help me to clean a very noisy (snowy) clip with a script


Pages : 1 [2]

Delta2
11th September 2008, 21:48
Oh sorry, I misspelled "MVAnalyze()", correct is MVAnalyse(). Try that again.

Well, with so many trying to replace filters I didn't notice the bad english word

It works, but Denoisers.avs that I gave another link to download gives the same error

CAVIStreamSynth: System exception - Access Violation at 0x20f2edc, writing to 0x48

I updated to AVISynth last version, also without sucess

I think it is useless, gosh

Didée
11th September 2008, 22:12
No not useless. Just a bit tricky, you clobbered together some whacky stuff.

First, your version of MVTools is causing problems. Too lazy to hunt hashsums to identify what your verion is ... go here (http://avisynth.org.ru/mvtools/mvtools.html), get the latest version (1.10.2.1), use that.

Also, you have an older version of LimitedSharpenFaster that indeed makes use of LimitedSupport.dll ... that should be actualised. ... Oops, it *must* be changed. I'm getting an exeption with LSF, too, when using your script+plugins.


But first, get MVTools v1.10.2.1, and see if the script with TemporalDegrain and without LimitedSharpenFaster does run.

Delta2
11th September 2008, 22:42
Finally it works, Didée

I changed your LimitedSharpenFaster to ( a modded version, 29 Oct 2005 )

And installed the suggested MVTools version ( 1.10.2.1 )

Et voilá, works even with DirectShowSource without a problem

What are the dependencies for LimitedSharpenFaster ?

many thanks

Didée
11th September 2008, 22:55
Hooray!

However, your script is not good, yet. The input must be deinterlaced before TemporalDegrain and LSF (or any other denoising/sharpening filters) do their work.

Do you know how to deinterlace? Options there are plenty ... from a simple blur(0,1) [or soft downsizing], over several adaptive deinterlacers like eg. FieldDeinterlace, TDeint, Yadif, etc.pp., up to the big weapons of mocomp-deinterlacers ...

Delta2
11th September 2008, 23:01
Hooray!

However, your script is not good, yet. The input must be deinterlaced before TemporalDegrain and LSF (or any other denoising/sharpening filters) do their work.


Applying to all ?! even a progressive generic movie ?

And does that apply to your LimitedSharpenFaster scripts also ?



Do you know how to deinterlace? Options there are plenty ... from a simple blur(0,1) [or soft downsizing], over several adaptive deinterlacers like eg. FieldDeinterlace, TDeint, Yadif, etc.pp., up to the big weapons of mocomp-deinterlacers ...


Yes, and there is plenty of them, which do you suggest ? one that is not so slow

Can you give a full code example to this case study ?

Didée
11th September 2008, 23:08
For progressive sources, of course you don't need to deinterlace.

In had in mind processing the clip "TV.mpeg" of medp7060, which is interlaced. It seems you are loading that very clip in your script, too, so I was referring to that one.

medp7060
11th September 2008, 23:16
I compared them from LaTo and Didée:

Udegrain_v1alpha(settings="insane")


Keep your tongue. Using TemporalDegrain (which is a comparably *simplistic* script) :
TemporalDegrain(degrain=2,sigma=16,hq=0,SAD1=9999,SAD2=640) # no need for 50 temporal frames ... 2 suffice.
limitedsharpenfaster(ss_x=1.0,ss_y=1.0,strength=60,soft=40,overshoot=0)


...#as above, plus
bb=removegrain(11).removegrain(20).removegrain(11)
merge(bb,0.2).mt_lutxy(bb,"x y > x 1 - x y < x 1 + y ? ?",U=3,V=3)



Source---------------------------------------------------------------------- LaTo (2nd)
http://latoninf.free.fr/udegrain/SRC.pnghttp://latoninf.free.fr/udegrain/UD.png

Didée (1st ------------------------------------------------------------------- 2nd):
http://img379.imageshack.us/img379/5198/temporaldegrainlsgq9.png (http://imageshack.us)http://img384.imageshack.us/img384/7840/temporaldegrainlssmoothjq3.png (http://imageshack.us)

I think they are comparable with Didée 2nd clearer, comapred with the sourrce.

Can you post the whole scripts here so I can have a go to tweak?

Delta2
11th September 2008, 23:24
For progressive sources, of course you don't need to deinterlace.


Misunderstandings, but it means that I must deinterlace before any sharpen or denoiser, right ?

I usually use Decomb/FieldDeinterlace for that purpose



In had in mind processing the clip "TV.mpeg" of medp7060, which is interlaced. It seems you are loading that very clip in your script, too, so I was referring to that one.


This is a case study, I'm trying to use a generic script to use in bad grainy sources...either progressive or interlaced

But I feel a little disappointed because there is DLLs dependencies that should be installed in System32 folder...which is a handicap for use this :(

medp7060
11th September 2008, 23:24
I had a go, might not be perfect, but i can be happy with this:

http://rapidshare.com/files/144442476/TV_2.mpg.html

Your views please :D

I just watched it and I must say that I am stunned at the result. You seemed to have restored the real colours with noises removed to the extreme!

Can you post your script for me? Thanks.

Didée
11th September 2008, 23:43
That's very denoised, and very soft. Smells like NeatVideo. (?)

medp7060
12th September 2008, 00:18
I will see if I can replicate the result from Undead Sega with his script for which I have requested.

Samples: source vs denoised by Undead Sega
http://img66.imageshack.us/img66/9413/tvsourcegu3.pnghttp://img76.imageshack.us/img76/1327/tvdenoisedud7.png

Jeremy Duncan
12th September 2008, 04:10
http://thumbnails5.imagebam.com/1313/812ad413120304.gif (http://www.imagebam.com/image/812ad413120304)

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\repairsse2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dfttest.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")

DirectShowSource("C:\Users\Donkey\Desktop\TV.mpg")

setmemorymax(1024)

converttoyv12()
DeHalo_alpha(brightstr=1.7, darkstr=1.7)
Spresso(limit=1, limitC=1, bias=85, biasc=85, rgmode=13, rgmodec=13)
Spresso(limit=1, limitC=1, bias=85, biasc=85, rgmode=16, rgmodec=16)
Spresso(limit=1, limitC=1, bias=85, biasc=85, rgmode=13, rgmodec=13)
dfttest(tbsize=1)
LimitedSharpenFaster(ss_x=1.0, ss_y=1.0, Smode=3, strength=175, overshoot=0, soft=60)

Undead Sega
12th September 2008, 18:01
It was Neat Video, and it was abit rushed and a tiny bit washed, but i did it in short time and probably can improve the results a tiny bit. Also what is not noticable after the high bitrate reencode, is that even though i cleaned all the noise, i did in Adobe Premiere Pro added noise, which did improve it visually.

i would say my example is very clean, but as i said, i tiny bit of tweaking would and more noticable added would be better. Also again, it is slightly sharpened.

medp7060
13th September 2008, 06:43
Thanks, Undead Sega. The visual quality was already very good now. Can you tell me what configuration you used in Neat Video? There are soo many options in the filter. I tried a few preset ones, but failed to get it improved as much as you did. There is also a plugin for Virtualdub in addition to Adobe Premiere. The option profiles are quite similar.


Didée: I followed you and used this


#LoadPlugin("MVTools.dll")
#LoadPlugin("RemoveGrain.dll")
#LoadPlugin("hqdn3d.dll")
#LoadPlugin("FFT3DFilter.dll")
#LoadPlugin("mt_masktools.dll")
#LoadPlugin("repair.dll")

mpeg2source("D:\TV.d2v")
TDeint()

TemporalDegrain(degrain=2,sigma=16,hq=0,SAD1=9999,SAD2=640) # no need for 50 temporal frames ... 2 suffice.
limitedsharpenfaster(ss_x=1.0,ss_y=1.0,strength=60,soft=40,overshoot=0)

bb=removegrain(11).removegrain(20).removegrain(11)
merge(bb,0.2).mt_lutxy(bb,"x y > x 1 - x y < x 1 + y ? ?",U=3,V=3)

I have managed to get it work, but I found there was a short "surging" effect, I will put a sample result here.

Edited: here is the sample http://rapidshare.com/files/147590474/TV_Didee.avi

New problem

The brightness is not not even, increased diagonally from bottom left corner to top right corner. This promlem is in the original clip, become more obvious after cleaning the noises.

I tried Level, or Tweek, all cannot get it equalized. Are there any filter can compensate the brightness diagonally?

Jeremy Duncan
17th September 2008, 08:04
try mine and see if you still get that.
how did it get so ugly, is it from a 15 year old vrc tape?

medp7060
23rd September 2008, 03:53
Thanks, will try yours.