Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th February 2015, 22:20   #1  |  Link
Alex-Kid
Antronio's DV ambassador
 
Alex-Kid's Avatar
 
Join Date: Mar 2006
Location: Santiago, Chile
Posts: 115
Advice needed to reduce this kind of noise

Hi everybody, I did some night footage and, as I've seen on many consumer-level camcorders like mine, it shows a lot of noise. I've tested many filters and combinations of them, but I can't find an acceptable reduction of this noise. Here's a sample frame:



Searching with Google for references, I think it could be ISO noise, but my knowledge is little so I can easily be wrong.

Here's a 25 seconds sample of the original video (1080p, 60 fps, 79 MB): http://www.mediafire.com/download/1j...zmws/PUCON.MTS

Thanks in advance. Cheers

By ALEX-KID
Alex-Kid is offline   Reply With Quote
Old 21st February 2015, 03:31   #2  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
A more-or-less generic MDegrain call seems to provide a pretty good start (see code below). You could add CNR2 or some other function prior to MDegrain2 to work more on the chroma noise.

Here is the result of this script:




Code:
SetMemoryMax(768)

Loadplugin("C:\Program Files\AviSynth 2.5\plugins\MVTools\mvtools2.dll")
Loadplugin("C:\Program Files\AviSynth 2.5\plugins\Film Restoration\Script_and_Plugins\removegrain.dll")

SetMTMode(5,6)
source=AVISource("E:\fs.avi").AssumeTFF().ConvertToYV12(interlaced=false).killaudio()
SetMTMode(2)

output=MDegrainProg(source,16,4,0)
return output

#-------------------------------------
#Denoising function, progressive video
function MDegrainProg(clip source, int "blksize", int "overlap", int "dct")
{
  overlap=default(overlap,0) # overlap value (0 to 4 for blksize=8)
  dct=default(dct,0) # use dct=1 for clip with light flicker
  preNR = source.fft3dfilter(sigma=4,interlaced=false)

  preNR_super = preNR.MSuper(pel=2, sharp=1)
  src_super =   source.MSuper(pel=2, sharp=1,levels=1)

  backward_vec2 = MAnalyse(preNR_super,isb = true,  delta = 2, blksize=blksize, overlap=overlap, dct=dct)
  backward_vec1 = MAnalyse(preNR_super,isb = true,  delta = 1, blksize=blksize, overlap=overlap, dct=dct)
  forward_vec1 =  MAnalyse(preNR_super,isb = false, delta = 1, blksize=blksize, overlap=overlap, dct=dct)
  forward_vec2 =  MAnalyse(preNR_super,isb = false, delta = 2, blksize=blksize, overlap=overlap, dct=dct)

  MDegrain2(source,src_super, backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=800)
}
johnmeyer is offline   Reply With Quote
Old 21st February 2015, 06:54   #3  |  Link
Alex-Kid
Antronio's DV ambassador
 
Alex-Kid's Avatar
 
Join Date: Mar 2006
Location: Santiago, Chile
Posts: 115
Thanks for the script, I had similar results but with more blur

It gets clearer but the noise is still present, especially on low-contrast areas. Could it be possible to improve the picture in those areas?

I'll do some more testing tomorrow.
Alex-Kid is offline   Reply With Quote
Reply

Tags
avisynth, footage, night, noise

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:54.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.