Log in

View Full Version : Very bad VHS tape-little denoise filter comparation


Serbianboss
23rd September 2006, 13:50
I have very very bad VHS tape which i think is 10 years old. I try with convolution 3d, degrainmedian, peachsmoother and vague denoiser to clean this video.I also tryed little to sharpen video but it's very bad because source is realy worst.

So i have few pics to show you what i done.
And here is the link of original clip.Its captured with Canopus 110 in DV avi interlaced,Pal 720x576, its 10 second video. Video is captured using panasonic decoder so its RGB24.

Here is original clip(34 Mb):
http://rapidshare.de/files/34141924/dv_avi.avi

Convolution 3d strong settings:
http://img244.imageshack.us/img244/6505/convolutionnajaceaa7.jpg (http://imageshack.us)

Convolution 3dlow settings:
http://img162.imageshack.us/img162/3564/convolutionmanjetj1.jpg (http://imageshack.us)

Degrainmedia 6-7-1 double settings:
http://img84.imageshack.us/img84/7797/degrain671hg4.jpg (http://imageshack.us)

Peachsmoother and vague denoiser strong settings:
http://img164.imageshack.us/img164/239/peachvaguejakoqm0.jpg (http://imageshack.us)

Peachsmoother and vague denoiser strong and Limitedsharpen faster:

http://img159.imageshack.us/img159/7259/lsfwm3.jpg (http://imageshack.us)


So,if you have time, download clip and test your settings and upload pictures or clip to see results

kai0n7
23rd September 2006, 21:31
http://www.megaupload.com/?d=NRFYO89Y

Done with NeatVideo for Virtualdub, compressed in YUY2 by Lagarith.

I know it isn't Avisynth, but given how bad that source was, I just had to see if NeatVideo could clean it... I guess it works, eh? :lol:

Kai

halsboss
24th September 2006, 02:28
got a link for NeatVideo ? does it have a trial version download ?

Hmmm... a never-seen-before codec (which I didn't download) required to play the avi... advice on safety for me, anyone ?

foxyshadis
24th September 2006, 03:13
What, Lagarith? Or the original DV? Both are very well-known and much-used in video processing. Searching here would show you plenty of references.

kai0n7
24th September 2006, 03:23
got a link for NeatVideo ? does it have a trial version download ?

Hmmm... a never-seen-before codec (which I didn't download) required to play the avi... advice on safety for me, anyone ?

It's a 60 meg virus... while I am fairly competant at video processing, I am a very poor coder.

Seriously though, it's a lossless codec that is a fairly well known alternative to Huffyuv.

Kai

halsboss
24th September 2006, 03:28
Oh. Nice virus, must have a lot of functionality. :) Silly me, I should have searched for Lagarith... just had never come across it in a couple of years of minor video fiddling.

I wanted to do the magic mvdegrain2/seesaw thing on this to see how it goes, but it's interlaced (is it tff BTW ?)... any suggestions for this PAL source to work with that eg separatefields etc ?

ConvertToYV12(interlaced=FALSE)
L = LAST
backward_vec2 = L.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = L.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = L.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = L.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
a=L.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)
# Pookie originally says use this http://forum.doom9.org/showthread.php?p=865865#post865865
#b = a.RemoveGrain(mode=11) #try mode=25 for sharper or mode=17 for stronger - degrainmedian(mode=1) also works nicely
# then Pookies says instead use this http://forum.doom9.org/showthread.php?p=865906#post865906
#b = a.DeGrainMedian(mode=1)
# BKMAN says use this http://forum.doom9.org/showthread.php?p=865912#post865912
# But Pookie says in http://forum.doom9.org/showthread.php?p=865918#post865918
# If you read the SeeSaw thread, FFT3dfilter as the b=a.denoiser can result in a washed out target file
#b = a.FFT3DFilter(sigma=3, plane=4, bt=3, sharpen=0, interlaced=false) # BKMAN says use this at the web link above
#So the choice ? ... go with this to avoid a need for TWEAKing after FFT3DFilter
b = a.DeGrainMedian(mode=1)
Z2 = SeeSaw(a,b, NRlimit=5, NRlimit2=6,Sstr=1.5, Slimit=8, Spower=8, Szp=16,soothet=80)
# Pookie also says http://forum.doom9.org/showthread.php?p=861498#post861498
# ... DegrainMedian(mode=1) looks very nice with SeeSaw and is fast, but try a lower
# noise reduction setting like NRlimit=4, NRLimit2=5 or lower for newer movies

W2=Z2.width()/2
#Crop(L,left, top, -right, -bottom, true)
O1 = L.Crop(0,0,W2,-0, true)
O1 = O1.ScriptClip("""subtitle("Original " + string(current_frame),size=20)""")
O2 = Z2.Crop(0,0,W2,-0, true)
O2 = O2.ScriptClip("""subtitle("1. MVDegrain2+Degrainedmedian " + string(current_frame),size=20)""")
stackhorizontal(O1,O2)

Pookie
24th September 2006, 03:33
Looks like you're denoising before separating fields/deinterlacing/etc.

halsboss
24th September 2006, 03:44
OK. Wasn't sure if a simple separatefields and weave (like I've seen done with Convolution3d) would work with the mvdegrain2/seesaw on each of odd/even ... didn't want to jump straight into a TDEINT with the noisy source without advice... BTW is there a spell checker in this forum posting mechanism (save me some embarrasment) ?

Pookie
24th September 2006, 04:16
Oh, sorry halsboss, I was refering to Serbianboss and the pics he posted.

Yes indeed, a tough one. Lotsa flickering as well. I know there's a filter for that horizontal noise, can't remember who wrote it (Fizick?)

Something that noisy might only be worth restoring if your immediate family member was starring in it.:p

Upsampling, denoising, then downsampling might work pretty well on this - at least the artifacts from heavy denoising won't be as noticeable. If you get a chance, try:

tdeint(mode=-1,type=3).turnleft().tdeint(mode=-1,type=3).turnright()#thanks Didee
removedirt().fft3dfilter(plane=3,sigma=6,degrid=1,bt=4)
bicubicresize(720,576)

http://fileserver1.jpghosting.com/images/ssamplex_d75e80fef5fbe9b61dc487a2bfd3ac7f.png (http://www.jpghosting.com/showpic.php?image=ssamplex_d75e80fef5fbe9b61dc487a2bfd3ac7f.png)

That would only be the start - you'll still need to stabilize the fluctuations.

Serbianboss
24th September 2006, 08:54
Looks like you're denoising before separating fields/deinterlacing/etc.

First i am using script for convolution 3d.I denoised after separate fields. This is the script:


LoadPlugin("Convolution3d.dll")
avisource("C:\Documents and Settings\Desktop\Video 1.avi")
ConvertToYuY2(interlaced=true)
SeparateFields()
odd=SelectOdd.Convolution3D (1, 32, 128, 16, 64, 10, 0)
evn=SelectEven.Convolution3D (1, 32, 128, 16, 64, 10, 0)
Interleave(evn,odd)
Weave()


And all the other script was:

LoadPlugin("VagueDenoiser.dll")
LoadPlugin("PeachSmoother.dll")
LoadPlugin("LeakKernelDeint.dll")
avisource("C:\Documents and Settings\Desktop\Video 1.avi")
crop(8,4,-8,-12)
ConvertToYuY2(interlaced=true)
AssumeBFF()
LeakKernelBob(Order=0,threshold=3)
PeachSmoother(NoiseReduction = 80, Stability = 30, Spatial = 200)
VagueDenoiser(threshold=4, method=1, nsteps=6)
AssumeBFF()
SeparateFields()
SelectEvery(4,0,3)
Weave()
AddBorders(8,8,8,8)


Is this ok.

I try with peachsmoother and vague to remowe a lot noise.But results are not so good.I will upload clip with peach/vague to see results.

If anybody have time you could ti upload pics or video to see diference.

This is little sample(its not good, this is just peachsmoother)
http://rapidshare.de/files/34246162/Peachsmoother.mpg.html