View Full Version : Correct order of filters?
DarkT
27th January 2007, 00:43
Hi,
I am pretty new to encoding - but after stumbling around, I came up with the following script:
Import("C:\Program Files\AviSynth 2.5\plugins\mfToon.avs")
1DGDecode_mpeg2source("C:\NEW\VTS_01_1.d2v", info=3)
ColorMatrix(hints=true, interlaced=true)
crop( 8, 0, -8, -0)
TFM(order=1,mode=2,PP=7,slow=2,ovr="C:\NEW\ovr.txt")
Tcomb(mode=2,fthreshl=12, othreshl=19)
undot()
Deen("a3d",1,2,5)
BiFrost()
SSIQ(diameter=11,strength=100,interlaced=false)
Convolution3d (preset="animeLQ")
TIsophote()
mftoon(strength=25)
msharpen(75)
Tweak(cont=1, sat=1.3,bright=-12, hue=-1)
Now, I've heared that the order of filters can not only affect quality, but also compressibility, unfortunately, I haven't gotten my hands on any detailed resource which explains exactly the why's, and the how's...
Any help would be greately appritiated.
Edit:
Note, the video on which this script is applied is Full Metal Panic? Fumoffu! - heavy on rainbows and dot crawl, also washed colour - and generally known as a crappy source(R1) - I made no decimation, since it makes it appear "jerky" (tried different modes, didn't help) - and without decimation it seems somewhat better... Though the dvd source looks better, in all honesty... And Gspot shows the DVD source as ~30fps, while even without decimation, the megui output is ~24fps... Dunno why though...
Pookie
27th January 2007, 00:48
Hi there. :) Way, way, way too many plugins. It'll slow you down and the end result won't be very great. Just about everything below your TFM statement might be overkill.
Post a short 10-20 sec segment of your source file somewhere and we'll help you go through the process.
Edit: MugFunky might know a bit about that particular title.
http://forum.doom9.org/archive/index.php/t-96718.html
BTW, the order of your plugins isn't wrong -- IVTC/DEINT --> DENOISE --> SHARPEN
Easy way to Start looking for artifacts on cartoon sources
Greyscale()
That'll help you determine which portion of the noise is chroma or luma related.
DarkT
27th January 2007, 01:19
Heya :), I did see that thread in the past... I did see anotehr one, from which I stole shamelessly the Tcomb line :), previously I was doing just Tcomb(), didn't even know it can handle rainbowing/dot crawl... Silly me :).
Anyways,
Here are some pics to demonstrate why I belive those filters ARE neccesairy there :-).
Images:
Up to TFM(including):
http://i3.tinypic.com/4g5oxas.jpg
Up to TFM(including)+tweak line:
http://i10.tinypic.com/2ztlf7a.jpg
Everything:
http://i16.tinypic.com/2exc8sm.jpg
Everything minus Tisophote:
http://i14.tinypic.com/2rlz2o3.jpg
Pretty much the only one I am thnking of dropping, or atleast making weaker, is the Tisophote... Nibbles on the lines too much... Though it does reduce that damn dotcrawl... Mhmhmh, I'll have to see about that...
Pookie
27th January 2007, 01:23
Yup, you've really reduced the artifacts.
DarkT
27th January 2007, 01:25
Yeah, I sure did reduce them artifacts - and made the clouds look like sperm in the proccess :).
Ah well, them clouds :).
Pookie
27th January 2007, 01:34
Well, start with the suggestion of Greyscale() and look for the filter culprits that are smoothing things out too much.
Address the problems that you're having with the Inverse Telecine. Amazing how a good IVTC can improve the overall look of the film.
DarkT
27th January 2007, 01:39
I know the culprits :), I've been redoing the script... Quite a few times :), I'm still taken aback that I didn't notice that Tisophote kills so much...
The IVTC is done ok I think... Next step would prolly be YATTA, and I'm just not crazy enought to touch that one... YET :).
I did however spend a few hours to write the overrides, sometimes it wants me to use PP 5(blend) and sometimes field 0 works better... Meh... Sometimes it didn't notice it needs ter fo it at all... Funny stuff :).
Anyway, it all doesn't really matter, I was just wondering if the order was cool... So if that's cool, we're cool :).
Edit:
Well, I suppose it's not so much IVTC if I don't decimate, eh? Mhmhm, dunno... And what for anyway? so it goes down from 33k frames to 27k frames? Meh, it's what? 6k frames? what? like, ~18%, right? so let's say filesize=200mb, if I decimate it'll go down to 160mb... Meh, doesn't matter that much to me, Well, it does - but I don't wanna sacrafice jerkyness, not for some lousy 40mb...
foxyshadis
27th January 2007, 07:22
It's not so much about extra frames, ivtc is entirely about restoring natural fluidity. If your source is so trashed that you can't properly ivtc a telecine, you're better off deinterlacing it as best you can, even if it means extra blending/smearing - and maybe performing vfr ivtc for the sections that are easily ivtc'able.
TFM w/ PP=7 is practically what I mean anyway, although it may be slightly jerky from repeated good frames, and simple blend-deinterlace might be smoother. As wrong as it is, sometimes that's the best you can do. Smoothdeinterlace() is also really good for these situations.
DarkT
27th January 2007, 23:01
aaaah, well, remember that override file I have there? Around 50% of it is PP 5 (blend) - because pp 7 simply trashes the frame...
And now I've also found out something really elite :), my whole video was utterly messed up - and I don't mean source-quality, I will explain:
In AVSP, it was showing I have 23.9x frames, even though I didn't do ANY decimation... It looked weird to me, as Gspot says the VOB file is 30FPS...
Anyway, I downloaded latest version of DGindex, and voila, it shows the original is 29.970 :), and has 44k frames! while I was seeing, with no decimation, 23.97x and 36k frames!
Now after decimation I have 33k frames :) and 23.97x frames, but that's all bullshit and is unimportant - here's the important part: I HAVE FLUIDITY! FLUIDITY! No more jerkyness!
True, I have to re-do my override file :) and that'll be lots of fun :) - I know you can use Yatta for it? I do it manually frame by frame... 44k frames :) hahahahaha, ah well, mostly I run through it, since I know what to watch out for and in which places to look.... Still... some 3 hours of work I'd guess...
But I'm as happy as a little kitten :).
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.