Log in

View Full Version : Noise remover help


zeus163
4th July 2003, 16:46
Link Updated and should work for everyone...

Last night I captured Stripperella and like the first week's capture, it appears to have some weird noise--I'm not sure how else to describe it. I spent several hours reading posts about noise remover and just think I'm doing something quite wrong. Normally I just capture bands on late night TV and run a simple fielddeinterlace() on them that appears to yield satisfactory results. My best attempt at making this capture better was this one:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3D.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
Avisource("E:\avis to work on\stripperella\test.avi")
FieldDeinterlace()
Convolution3d(0, 32, 128, 16, 64, 10, 0)
LanczosResize(720,480)
Letterbox(48,64,16,16)
AddAudio()
However, there appears to be some slight ghosting (that is also in the original--it seems). I think I'm missing something and hoping that somebody can help me out. If anybody is interested, I put up a test clip here (zipped about 7 megs and a little under 2 seconds):
http://home.comcast.net/~zeus163/test3.zip
If you are having problems with the link, you may have to ftp to the site with an ftp program and turn PASV (passive) off. I'm sorry about that, but I'm behind a router.
Edit..It appears that this file behind the router is proving troublesome. I apologize for that and no way did I intend for anybody to install a FTP client to download it.
Maybe I'm going at this all wrong.

This was a straight capture from my digital cable out to an advc100 to firewire.

Thanks! Back to reading to see if I can come up with anything.

Malevolent
4th July 2003, 19:28
Your convolution3d filter is runnig a bit high there... might want to lower it to something like 0,8,12,10,16,2,0 - and even that is overkill for a clean source. (even this will cause some ghosting)
Also i'd like to suggest Undot() , before resize.
Can't get the clip (no, i am NOT installing an FTP client just for it)

zeus163
4th July 2003, 19:45
Thanks for your suggestions. I will give them a try and add the UnDot() that was one of them I had in there at one time.

I'm not suggesting you install an FTP client for that, I thought everybody had one installed. Sorry about that. Maybe try a cut and paste in your Internet browser.

I tried your tip and came up with this:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3D.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
Avisource("E:\avis to work on\stripperella\test.avi")
FieldDeinterlace()
Convolution3d(0, 32, 128, 16, 64, 10, 0)
UnDot()
LanczosResize(720,480)
Letterbox(48,64,16,16)
AddAudio()

I know that the values for Convolution3D are high, but they appear to be giving the best results. I'm at a loss for this one personally.

Malevolent
4th July 2003, 20:37
Well, not knowing what kind of noise you want to remove, i can guess.
Basicly there are two noise types - blocks & ringing.

Heres a general script for blocks:

DCTFilter(1,1,1,1,1,1,.5,0)
UnDot()
Lumafilter(-2,0.9)
BlindPP(quant=4,cpu=6,moderate_h=10,moderate_v=20)
Unfilter(-1,-1)
Tweak(whatever to gain luminosity)

If you have only a few blocks in your clip, then:

BlindPP(quant=2,cpu=4,moderate_h=30,moderate_v=60)



Heres a general script for ringing - and remember that encoding creates ringing, so you can't remove what you create!


UnDot()
StMedianFilter(3,6,0,0)
Unfilter(-5,-5)
Convolution3d(Preset="AnimeHQ") #Or AnimeLQ/BQ depending on noise
TemporalSoften(4,4,6,8,2)

zeus163
4th July 2003, 21:40
Thanks for helping me out. I put up a link that should work for anybody and I hope it will work for you. I feel as if I'm getting somewhere now.

The type of noise in this appears to be grains with color. I'm getting decent results with the BQ VHS preset in Convolution3D, but then some slight ghosting appears. This is about where my knowledge of avisynth ends and the step into the unknown begin.

thanks.

Guest
5th July 2003, 01:59
Your ghosting is caused by failure to IVTC this 3:2 pulldown clip.
Do this before your noise filtering:

loadplugin("decomb500b15.dll")
avisource("test3.avi")
converttoyuy2()
telecide(order=0,guide=1,post=0)
decimate()

I prefer to serve this into VirtualDub and use 2dcleaner (optimized).

zeus163
5th July 2003, 04:55
Thanks for your response. So, I'm thinking that all my clips suffer from this (3:2 pulldown). I appreciate your help in looking at this. I'm playingwith this right now in Virtual Dub (I downloaded the 2D cleaner for it off of your site).

This is what I've pulled into Virtual Dub:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3D.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
Avisource("E:\avis to work on\stripperella\test.avi")
converttoyuy2()
telecide(order=0,guide=1,post=0)
decimate()
LanczosResize(720,480)
AddAudio()

And now I'm applying the 2D cleaner. I'm just playing with settings to get the version I like the best. Do you feel there is any need to apply any Convolution3D to this or UnDot of just leave the script as is and play with the 2D cleaner?

I truly appreciate your help!

Malevolent
5th July 2003, 10:36
Well, you can put Undot() in there, it doesn't really do anything noticeable or slow things down, but it increaces compressability - so i'd advice using it :)

Guest
5th July 2003, 14:19
Originally posted by zeus163
So, I'm thinking that all my clips suffer from this (3:2 pulldown). Actually, you should be grateful that they "suffer" from it! Pulldown can be removed often with no artifacts at all, while deinterlacing pure video is guaranteed to make a mess.

zeus163
7th July 2003, 01:33
Whew! I'm glad I can use the pulldown for this. I'm still working on the best settings for this and fill like I'm missing something. I'm going to keep working on it and may ask another question or two!

thanks!