View Full Version : DeRainbow & DeIntelace Animation Source
MADAJ
28th May 2008, 21:49
hi there,
I have an animation source, and I need your advices :)
Well, this is a sample of my source. HERE (http://www.mediafire.com/?yjyrtwibnfy)
yea, it is awful.
my avs script is
loadplugin("C:\Documents and Settings\BAKA\Desktop\dgmpgdec150rc5\DGDecode.dll")
mpeg2source("C:\Documents and Settings\BAKA\Desktop\dgmpgdec150rc5\001.d2v")
BlindPP(cpu=6, quant=8)
coloryuv(off_u=2)
tweak(cont=1,bright=1,sat=1.6)
BiFrost()
Vinverse()
aWarpSharp(depth=16,cm=1)
Deblock()
ConvertToYUY2()
AssumeFieldBased()
SmoothDeinterlace(tff=true, doublerate=false, blend=true)
tfm(clip2=tdeint, nnedi())
LimitedSharpen()
tdeint(mode=2)
Crop(8,0,-16,0)
LanczosResize(640,480)
ConvertToYV12()
it didn't really help me. still there are some interlace and rainbow.
and if it possible to get better image, please instruct me :cool:
thx in advance!
Blue_MiSfit
28th May 2008, 22:02
um... wtf are you doing with that script? :) You have seemingly thrown together a bunch of random filters ROFL!!
Hang on, and I'll help you with a reasonable script.
~MiSfit
Blue_MiSfit
28th May 2008, 22:23
MPEG2Source("C:\doom9\Anime\MADAJ\001.d2v", cpu=4)
# Source is NTSC 29.97i with hard pulldown
# Fairly noisy, some rainbowing
Checkmate() #Dot Crawl Cleanup
tfm.tdecimate.vinverse #Inverse Telecine + Vinverse post-processing
#Denoise
fft3dfilter(plane=0, sigma=4) #clean luma
fft3dfilter(plane=3, sigma=17, bw=32, bh=32, bt=4) #clean chroma
#Color correction
coloryuv(off_u=2)
tweak(cont=1,bright=1,sat=1.4) #sat 1.6 seemed extreme to me
GradFun2db(2.0) #Dither
This seemed to work well for me. All your convoluted attempts to deinterlace are unnecessary, and in fact incorrect. This is a 29.97i NTSC source with telecine. Inverse telecine with some combing cleanup restores the original 24p nicely.
This script doesn't quite address the rainbowing perfectly. I had a nice combo for that stashed away somewhere, but I cant seem to find it.. So, good luck with that one on your own.
A few notes
1) Find out what your source material really is before you start hitting it with deinterlacers :) This is usually done by setting DGIndex to "honor pulldown flags" and stepping through one frame at a time. If you see a pattern of 2 combed frames, and 3 progressive frames, your source is likely telecined.
2) Dot crawl and rainbow removal must be done BEFORE inverse telecine
3) Vinverse is a deinterlacing / inverse telecine post-processor. It needs to be done AFTER inverse telecine to clean up residual combing.
4) Try to organize your scripts a little more. A bit of formatting goes a long way towards making your stuff readable to us and to yourself later:)
5) Good luck!
~MiSfit
Where does one find Checkmate()?
Didée
28th May 2008, 23:39
Look here (http://mf.creations.nl/avs/filters/).
Blue_MiSfit
28th May 2008, 23:41
A lovely little filter indeed!
MADAJ
28th May 2008, 23:44
Blue_MiSfit, thank you very much for the script and the notes :)
I should master AVS commands like you :cool:
foxyshadis
28th May 2008, 23:54
Blue Misfit, the only thing I'd point out is running vinverse on the TFM output before TDecimate - combed frames can throw off the duplicate detection. Otherwise, good show.
Blue_MiSfit
28th May 2008, 23:56
No worries, but I'm no master :) There are lots of real masters on this forum. Try writing scripts that use MaskTools and MVTools, then you're a real master. I've yet to figure out what a LUT does! I stick to simple stuff.
The only hard part is learning which filters do what. Once you've got that knowledge boxed away in your head, you can open the boxes at will and try them out :D
I use fft3dfilter a lot (and its GPU accelerated cousin fft3dgpu). It's very good at removing noise. It can certainly kill details, and reveal banding that was hidden by noise, but it's very tweakable. DeGrainMedian is another filter I use a lot...
The Inverse Telecine stuff is just a pain. You're lucky yours IVTC'd relatively cleanly!
@foxyshadis
But foxy... I didn't do that, I promise! :D Right?
~MiSfit
foxyshadis
29th May 2008, 06:17
That's what I mean, it'd be better to do it before TDec. :p I guess I left out 'you should be' somewhere there~
Blue_MiSfit
29th May 2008, 09:18
Ah-hah! Makes perfect sense actually!
Scintilla
29th May 2008, 11:32
Look here (http://mf.creations.nl/avs/filters/).
Anyone have any kind of documentation for this (I don't see any in MF's filedump)? Does it have any parameters?
Didée
29th May 2008, 11:46
Sneaking in with a hex-editor reveals the following parameters for CheckMate:
"thr" [integer], "max" [integer], "tthr2" [integer]
Defaults are unknown (to me).
For plugins from the (assumed) author, you ought not to know about what the filter is doing in detail. If you want to tweak, you just throw numbers at it until you're satisfied with the output.
Blue_MiSfit
29th May 2008, 20:41
It seems to work very well at default settings for most dot crawl situations I've had to deal with. It's acceptably fast, too.
~MiSfit
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.