Opinion: Correct sequence?

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Opinion: Correct sequence?

Post by Ayanefan » Thu Feb 07, 2008 9:48 pm

I just need to know if this would be the best sequence for my script. Looks good but I don't know if I'm making any errors or it could be better.

Script:

Code: Select all

SetMTMode(2)
MPEG2Source("C:\AMV_Project\FireFight\VOBs\K_S_Vol1\K_S_Vol1.d2v", cpu=6)
Crop(8,0,-8,-0)
TFM()
TDecimate(mode=1)
ConvertToYV12()
UnDot()
Deen("w3d",3,4,6)
Tweak(cont=1.1,sat=1.4,bright=0,hue=.2)
vmtoon(100)
TemporalSoften(6,4,8,15,2)
Lanczosresize(720,544)
ConvertToRGB32()
Result:
Image
Thanks for your time!

Ayanefan
Image
Image

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Post by Zarxrax » Thu Feb 07, 2008 10:18 pm

Looks alright I suppose. I think the ConvertToYV12 line isn't doing anything, as the source ought to be yv12 already.
I also think the SetMTMode(2) line isn't really doing anything. I have never experimented with multithreading in avisynth though, so I may be wrong.
I also doubt that undot is really accomplishing anything, since you have deen right after it, but its probably not hurting anything either.

User avatar
Kionon
I ♥ the 80's
Joined: Fri Mar 02, 2001 10:13 pm
Status: Ayukawa MODoka.
Location: I wonder if you know how they live in Tokyo... DRIFT, DRIFT, DRIFT
Contact:
Org Profile

Post by Kionon » Thu Feb 07, 2008 10:57 pm

Looks good to me :up:
ImageImage
That YouTube Thing.

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Thu Feb 07, 2008 11:01 pm

I actually did a bit of testing with a few plugins/filters that pop up in anime filtering

http://www.savefile.com/files/1367181

the filters I didn't use the default settings for (and the values I used)

Code: Select all

Mpeg2Source("D:\Goddess\disk1.d2v",cpu=4)
TFM(d2v="D:\Goddess\disk1.d2v",order=-1,mode=5,PP=7,field=-1,slow=2)
vaguedenoiser(threshold=2,method=1,nsteps=6,Wiener=true,chromaT=2.0)
removegrain(mode=5)
deen("a3d",3,4,4)
limitedsharpenfaster(edgemode=1,wide=true,strength=250,smode=1)
vmtoon(strength=25)
crop(120,0,-120,0)

I didn't run tests for setMTmode(2,0) on all of them because it looked like the same thing over and over (slight to no performance loss for most)

resizers like lanczos4resize don't work even if you don't change the height or width. This applies for MT.dll version 0.1-0.7 (maybe later versions as well)

fastLineDarken doesn't work on my desktop. I always get a greenscale image after I run the filter (like greyscale/black & white but green)
I've tried getting masktools 1.5.1 again and again(instead of using 1.5.8, which says in its properties that it's really 1.5.1) and then it'l give me an error saying that there is no such function as expand()

I realized after I had done all the non-MT testing that I had lagarith set to multithreaded mode. This could have skewed some of the values for the non-MT tests.

generally speaking, when the non-MT outperformed or performed on par with the MT() values the cpu utilization was at 100% for the non-MT test.
Image
Image

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Thu Feb 07, 2008 11:05 pm

oh yeah, in the file:
the top-left line is without MT
the bottom-left is setMTmode(1,0)
the right column is setMTmode(2,0)
Image
Image

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Post by LantisEscudo » Fri Feb 08, 2008 12:06 am

Kariudo wrote:fastLineDarken doesn't work on my desktop. I always get a greenscale image after I run the filter (like greyscale/black & white but green)
I've tried getting masktools 1.5.1 again and again(instead of using 1.5.8, which says in its properties that it's really 1.5.1) and then it'l give me an error saying that there is no such function as expand()
FastLineDarken(), as of the last version I know of, had an incorrect parameter in the last line, resulting in the weird green screen (it should be u=4,v=4, not u=2,v=2). I reworked it a bit to fix the problem and to use MaskTools v2 instead of 1.5.1, so that all the needed stuff was included in the AMVApp 3.0beta (except the actual FLD script).

User avatar
Corran
Joined: Mon Oct 14, 2002 7:40 pm
Contact:
Org Profile

Post by Corran » Fri Feb 08, 2008 1:10 am

How does it look in a bright scene or a scene with a lot of detail or clouds in the background? It might look good in that particular example but if you've tailored your script only to the scene used in the example, other scenes may suffer.

I don't know about that saturation either... If I recall correctly that is the scene where they are sword fighting out on the boat. It is stormy and dark yet your screenshot makes it look as though it takes place out in the sun.

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Post by Ayanefan » Fri Feb 08, 2008 8:44 am

Thanks for the replies everyone!!

@Zarx - I'll remove the YV12 reference and see if it works I'll take it off if all is fine. Thank you for this tip. For the MT mode, I find that I get double the processing performance when exporting to a file (lagarith, Huffy...). In this example, if I remove the MT mode, the conversion when saving is about 2fps, with MT it's 4fps. Keeps me from going for coffee ;).

@Kionon - Thank you. Believe it or not, I've worked about 5 hours on that script (maybe because I haven't done any editing for 8 months and I started to forget. *sad*)

@ Kariudo - However I like your code. I'm keeping it and will test a few lines, especially the vaguedenoiser and the removegrain, that looks like nice stuff. :) You know, it almost looks like a crosspost.

@Corran - I did try a few scenes and found this:
If I use this with scenes where you see small characters, there is a small amount of noise in between black lines. Dropping the vmtoon to 50 helps but then I get a bit of fuzzyness in the lighter shades. Then I have to use the deen a little but then the dark lines become less pronounced (because of vmtoon most likely) , so there's no real solution unless I have 3 different filters.
For the bright scenes. That is a good question because there is a scene with 3 girls in almost a flashback scene where there is a white haze on the scene. This seems to not touch anything on the scene. The washed out colors stay washed out. Sounds like I'm lying but I'm not. I hate seeing that because I really want the colors to be punchy and have a bit of saturation.
I'll do a few extra screenshots tonight and post them.
Image
Image

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Fri Feb 08, 2008 1:46 pm

Ayanefan wrote: You know, it almost looks like a crosspost.
I posted that in this forum a while back, but the link was dead and the thread long since locked.

also, min and max are encoding speeds in fps
Image
Image

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Post by Ayanefan » Fri Feb 08, 2008 9:31 pm

Xvid makes everything look grainy but the MP4 is good. Here's an example of what I would look like:
Before and after.
ftp://cust:xrxcust@ftp-east.xerox.com/J ... oaring.mp4

Kairudo, I found that the script you had did very little to enhance the quality but removed interlacing well.
Image
Image

Locked

Return to “Video & Audio Help”