Log in

View Full Version : Problems with mfToon


MajinMarc
3rd September 2003, 01:08
I recently tried using the params for mftoon in my script. it was always unable to load the preview if I used params and if I tried to encode vdubmod's status window never popped up and my computer lagged horribly. I was wondering if maybe this is a result of my using params that are too high, or did I make an error in my script.

SetWorkingDir("C:\Documents and Settings\Marc\My Documents\My Downloads\Encoder\filters")
LoadPlugin("Warpsharp.dll")
LoadPlugin("awarpsharp.dll")
LoadPlugin("MaskTools.dll")
AVIsource("C:\PICCOLO_JR_SAGA2_DISC2\VIDEO_TS\english2.avi")
Import("mfToon-v0.32.avs")
mfToon(strength=100,wdepth=25.0,wblur=10,wthresh=0.7,ssw=25,ssh=25)

Thank you for your time.

Wilbert
3rd September 2003, 12:33
I changed your title a bit! I hope mf can help you ...

Kurosu
3rd September 2003, 14:59
mfToon(strength=100,wdepth=25.0,wblur=10,wthresh=0.7,ssw=25,ssh=25)

Hell yes!
Have you actually looked at your memory usage !?
You're increasing image size by 25 in both directions: a frame weighs 25*25=625 times the original. And this filter can already use several tens of MB in normal settings, just imagine once it is 625 more! And you are often in RGB32 colorspace... You'd need a swap file of probably 10GB. And don't even mention the processing time...
Just use ssw=4 and ssh=4, and that's already slow and memory-hungry...

I'm dizzy just at the thought of a comp crawling to achieve that request :D

mf
3rd September 2003, 15:03
Your settings are awfully high! Let's take ssw and ssh as an example: if your video is 640x480, mfToon would supersample to the amazing resolution of 16000x12000! In default operating mode, mfToon would take about 50MB of memory (according to my crappy calculation). With ssw and ssh set at 25 it would take 316MB of memory! I'd suggest trying a bit lower settings, and the defaults are already pretty aggressive on CPU speed and memory.
Edit: damn! Kurosu beat me to it :D.