Log in

View Full Version : Deblocking/Denoising Suggestions?


MajinNinja
28th May 2006, 14:15
Hi All,
I've been having ALOT of trouble with my latest ripping project, but I think I've finally got the interlacing licked. Here's the script (showing some of the things I've tried):

LoadPlugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\dgdecode.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
LoadPlugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\tivtc.dll")
#LoadPlugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\tdeint.dll")

# mfToon PLUGINS
#Loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\aWarpSharp.dll")
#Loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\MaskTools.dll")
#Loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\WarpSharp.dll")
#Loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\masktools-v2.0a18\mt_masktools.dll")

# Other Plugins
#LoadPlugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\VagueDenoiser.dll")
#loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\TweakColor.dll")
#Loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\DeCross\DeCross.dll")
#Loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\Deen.dll")
#Loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\SmoothD.dll")
Loadplugin("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\fft3dfilter.dll")

#import("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\mfToon\mfToon-v0.52.avs")
#import("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\vmToon\vmtoon-v0.74.avs")
#import("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\FastLineDarken.avs")
#import("C:\Program Files\Ripping Tools\AVS Scripts and Plugins\LimitedSharpen.avs")

# SOURCE
mpeg2source("C:\Temp\FMP Eps 1\VTS_02_1.d2v")

# Remove Chroma Noise
#decross()

# Deinterlacing
tfm(order=1,mode=0,pp=7,field=0,chroma=true,d2v="C:\Temp\FMP Eps 1\VTS_02_1.d2v")
tdecimate(mode=1)

# CROPPING
crop(8,0,706,480)

# RESIZING
Lanczos4Resize(640,480)

# LINE DARKENING
#FastLineDarken()
#mfToon()
#vmToon()

# DENOISING: choose one combination (or none)
#VagueDenoiser(threshold=1.5,method=1,nsteps=6,chromaT=2.0)
#Convolution3d(preset="animeHQ")
#Undot()
#SmoothD()
#FFT3DFilter(sigma=6,interlaced=true)

# SHARPENING
#LimitedSharpen()

# Tweek Colour
#ColorYUV(gain_u=12)

Unfortunately the method I'm using (while removing all ghosting) introduces some small artifacts. These can be seen in the following image.
http://www.ids.org.au/~jad/FMPTest(blocky).png
Essentially there are two things I need help with. The strange colouration (probably due to my removal of the top field) and the blockiness.
Any suggestions are greatly appreciated.

:thanks:

foxyshadis
28th May 2006, 15:40
Problem #2 is generic ringing, a smoothing filter can handle that. (eg, Deen, frfun7, tbilateral, fft3dfilter...) If you have actual square blocks you can try Deblock, Deblock_QED, BlindPP, etc.

Problem #1 is probably from artifacts in the source, but it's impossible to say without a sample of the original.

MajinNinja
29th May 2006, 01:48
Hi All,
I couldn't work out how to split up a vob to give the scence I wanted, but here is the smallest section I could produce using dvd decrpt.
http://www.ids.org.au/~jad/VTS_02_CHAPTER_01_1.VOB
Also, the following images shows why I decided to use only the bottom field.
http://www.ids.org.au/~jad/fmp%20test%203%20(decomb)0.png
This image was produced using the standard Telecide.Decimate settings.
Additionally the artifacts visible in the image in my original post (not the blockiness) are not present when using Auto field selection in TFM.
Any thoughts?

Cheers

Guest
29th May 2006, 02:20
The screenshot you gave in the last post is not contained in the VOB you posted. That means I am unable to duplicate your issue. Please correct that if you want me to assist you.

MajinNinja
29th May 2006, 02:23
Hi neuron2,
Yeah sorry about that. I don't know how to split the vob file. Currently it's 450mb which is larger than my website can handle. I will try to figure out how to use vobedit to do it and post the file immediately.

Cheers
:thanks:

Guest
29th May 2006, 02:27
Use ChopperXP.

Or set a range in DGIndex and demux the video for that range.

MajinNinja
29th May 2006, 08:10
Hi neuron2,
ChopperXP is awesome, it'll come in handy in future projects. Ok, so here is the appropriate clip.
http://www.ids.org.au/~jad/FMP%20Example.vob
The transfer should be quite fast as it's hosted on a great server.

Thanks heaps for having a look.

Cheers :)