Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
11th August 2008, 20:07 | #63 | Link | |
Forum Member
Join Date: May 2006
Posts: 698
|
Quote:
Also, is there anyway to something like "threads=4" to take advantage of four CPU cores? Last edited by Seraphic-; 11th August 2008 at 20:16. |
|
28th August 2008, 01:45 | #65 | Link |
Sleepy overworked fellow
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
|
As requested by PM, here my modded version with a new "MT" parameter. It will be used as aa=4 in the next version of animeivtc and will be included in animeivtc.avsi
I may add other parameters (such as overlap, pel, search...) later. True = use josey_wells' multithreaded MVTools with the new syntax (default) False = Old syntax, "official" development is up-to-date, but no MT Also added tradius parameter if you want to use more frames to degrain. Default is 2 since SharpAAMC() uses MVDegrain2. Code:
function SharpAAMC(clip orig, int "aastr", float "ds", int "ShPre", int "ShPost", int "SmPost", bool "MC", bool "MT", int "tradius") { aastr=default(aastr,255) #antialiasing strength ds=default(ds,0.2) #strokes darkening strength ShPre=default(ShPre,80) #Presharpening ShPost=default(ShPost,300) #Postsharpening SmPost=default(SmPost,100) #Postsmoothing MC=default(MC, true) #Motion Compensation MT=default(MT,true) # Use josey_wells' branch of MVTools Tradius=default(Tradius,2) # 2 = MVDegrain2 / 3 = MVDegrain3 /// 28 = MVDegrain 28 a=orig w=width(a) h=height(a) m=logic( a.DEdgeMask(0,255,0,255,"5 10 5 0 0 0 -5 -10 -5", divisor=4,Y=3,U=3,V=3) \ ,a.DEdgeMask(0,255,0,255,"5 0 -5 10 0 -10 5 0 -5", divisor=4,Y=3,U=3,V=3) \ ,"max").greyscale().levels(0,0.8,128,0,255,false) b=a.Toon(ds).Warpsharp(depth=ShPre) b=b.spline64resize(w*2,h*2).TurnLeft().SangNom(aa=aastr).TurnRight().SangNom(aa=aastr) b=b.spline64resize(w,h).LimitedSharpenFaster(edgemode=1,strength=ShPost,overshoot=1,soft=SmPost) MaskedMerge(a,b,m,Y=3,U=3,V=3) sD=mt_makediff(a,last) fv2 = a.MVAnalyse(isb=false,delta=2,idx=13) fv1 = a.MVAnalyse(isb=false,delta=1,idx=13) bv1 = a.MVAnalyse(isb=true, delta=1,idx=13) bv2 = a.MVAnalyse(isb=true, delta=2,idx=13) allv = a.MVAnalyseMulti(refframes=tradius,idx=13) sDD = (MT) ? sD.MVDegrainMulti(allv,idx=14) : sD.MVDegrain2(bv1,fv1,bv2,fv2,idx=14) reduc = 0.4 sDD = mt_lutxy(sD,sDD,"x 128 - abs y 128 - abs < x y ?").mergeluma(sDD,1.0-reduc) return MC ? a.mt_makediff(sDD,U=2,V=2) : b }
__________________
AnimeIVTC() - v2.00 -http://boinc.berkeley.edu/- Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p) Last edited by thetoof; 30th August 2008 at 21:32. |
28th August 2008, 07:57 | #66 | Link |
Registered User
Join Date: Jan 2008
Location: Romania - neighbor of Dracula
Posts: 327
|
what aa is aa4 ?
__________________
I7 920 @ 3.60GHz + Thermalright Ultra 120 Extreme Asus P6T Deluxe, 6GB Corsair XMS3 1600MHZ 8-8-8-24 2x1TB Samsung + 1x500GB Samsung, Corsair 520W, Thermaltake Soprano DX GeForge GTX280 |
28th August 2008, 12:02 | #68 | Link |
Sleepy overworked fellow
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
|
haha, you're right... dunno what I was thinking when I wrote that *edited the first post*
__________________
AnimeIVTC() - v2.00 -http://boinc.berkeley.edu/- Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p) |
28th August 2008, 16:45 | #69 | Link |
Beyond Kawaii
Join Date: Feb 2008
Location: Russia
Posts: 724
|
By the way, thetoof. There's NNEDI antialiasing in your script which you say is my suggestion, modified by you. I suggested using EEDI2. What made you change it to NNEDI? NNEDI is more ACCURATE interpolation. 'Tis not as good for antialiasing as EEDI2.
__________________
...desu! |
29th August 2008, 04:55 | #70 | Link |
Sleepy overworked fellow
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
|
Woah, that's some bad mistake I made back then... I simply thought "nnedi is more accurate, so it must be better", changed it without testing and took it for granted afterwards.
I just tested it on the image we had in the "Denoise of tv-anime" thread and it's uber obvious that nnedi is ineffective where eedi2 works like wonders. It will be changed in the next version animeivtc.
__________________
AnimeIVTC() - v2.00 -http://boinc.berkeley.edu/- Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p) |
14th December 2008, 07:38 | #71 | Link | |
Sleepy overworked fellow
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
|
Quote:
edit: I also compared a random original and aaed clip by using the following script to find which values were appropriate (the image did not move in any direction after ediaa) Code:
function ediaa(clip a) {return a.EEDI2(field=1).TurnRight().EEDI2(field=1).TurnLeft().spline36resize(a.width,a.height,-0.5,-0.5,2*a.width+.001,2*a.height+.001)} interleave(source, source.ediaa())
__________________
AnimeIVTC() - v2.00 -http://boinc.berkeley.edu/- Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p) Last edited by thetoof; 14th December 2008 at 08:00. |
|
14th December 2008, 14:15 | #72 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
Code:
b=a.Warpsharp(depth=100).TurnLeft().EEDI2().TurnRight().EEDI2() Last edited by Gavino; 14th December 2008 at 14:32. |
|
14th December 2008, 20:37 | #73 | Link |
Sleepy overworked fellow
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
|
Oh, you're right. Thanks!
Now about the 2*w+.001,2*h+.001 thingy...
__________________
AnimeIVTC() - v2.00 -http://boinc.berkeley.edu/- Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p) |
15th December 2008, 06:36 | #75 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,389
|
It's for backward compatibility with Avisynth 2.5.6. That version would have the resizer going NOP without the +.001 thingy, indeed.
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
Tags |
anime, antialiasing, avisynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|