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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th August 2008, 19:09   #61  |  Link
Seraphic-
Forum Member
 
Join Date: May 2006
Posts: 698
Hi,

What function is related to "spline64resize"?
I'm getting a no function named error for "spline64resize".
Not sure why as the script was working the other day.
Seraphic- is offline   Reply With Quote
Old 11th August 2008, 20:02   #62  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,687
Did you recently uninstall and reinstall avisynth?

It is an internal function, but I don't think it comes in avisynth 2.57. I believe it was implemented in 2.58.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 11th August 2008, 20:07   #63  |  Link
Seraphic-
Forum Member
 
Join Date: May 2006
Posts: 698
Quote:
Originally Posted by Merlin7777 View Post
Did you recently uninstall and reinstall avisynth?

It is an internal function, but I don't think it comes in avisynth 2.57. I believe it was implemented in 2.58.
Ah, yes I did. Must have installed the wrong version there. Thanks

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.
Seraphic- is offline   Reply With Quote
Old 11th August 2008, 21:27   #64  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,687
For what? There are filters that can do this, yes, but many don't.

Normally, the way to run filters multithreaded is to use MT. Just run a search and you will find it.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 28th August 2008, 01:45   #65  |  Link
thetoof
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.
thetoof is offline   Reply With Quote
Old 28th August 2008, 07:57   #66  |  Link
egrimisu
Registered User
 
egrimisu's Avatar
 
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
egrimisu is offline   Reply With Quote
Old 28th August 2008, 09:36   #67  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
Join Date: Feb 2008
Location: Russia
Posts: 724
Quote:
sDD = (MT) ? sD.MVDegrainMulti(allv,idx=14) : (MT==false) ? sD.MVDegrain2(bv1,fv1,bv2,fv2,idx=14) : NOP()
o_0 ??? With what condition would that NOP() work?
__________________
...desu!
Mystery Keeper is offline   Reply With Quote
Old 28th August 2008, 12:02   #68  |  Link
thetoof
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)
thetoof is offline   Reply With Quote
Old 28th August 2008, 16:45   #69  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
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!
Mystery Keeper is offline   Reply With Quote
Old 29th August 2008, 04:55   #70  |  Link
thetoof
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)
thetoof is offline   Reply With Quote
Old 14th December 2008, 07:38   #71  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Quote:
Originally Posted by Didée View Post
@ MysteryKeeper: you've had a 1/2-pel registration error between the original (a) and antialiased (b) clip, due to EEDI2. Corrected by the blue parts.
May I ask you what is the purpose/theory/explanation behind 2*w+.001,2*h+.001?

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())
Note that I used -0.5,-0.5 to make it work and that you recommended
Quote:
Originally Posted by Didée View Post
0.5,-0.5
Am I missing something?
__________________
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.
thetoof is offline   Reply With Quote
Old 14th December 2008, 14:15   #72  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,421
Quote:
Originally Posted by thetoof View Post
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())
Note that I used -0.5,-0.5 to make it work and that you recommended 0.5,-0.5. Am I missing something?
Didée's version did the eedi upsizing in a different order:
Code:
b=a.Warpsharp(depth=100).TurnLeft().EEDI2().TurnRight().EEDI2()
Since his horizontal resizing was done on a left-turned version, and yours on a right-turned one, the horizontal shift correction is reversed.

Last edited by Gavino; 14th December 2008 at 14:32.
Gavino is offline   Reply With Quote
Old 14th December 2008, 20:37   #73  |  Link
thetoof
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)
thetoof is offline   Reply With Quote
Old 14th December 2008, 22:46   #74  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,421
Quote:
Originally Posted by thetoof View Post
Now about the 2*w+.001,2*h+.001 thingy...
No, I don't get that bit either.

It may have been intended to force resampling to be done (avoiding the no-op optimisation for same-size resizing), but using a non-zero crop position does that already.
Gavino is offline   Reply With Quote
Old 15th December 2008, 06:36   #75  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,393
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!)
Didée is offline   Reply With Quote
Reply

Tags
anime, antialiasing, avisynth

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:01.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.