Log in

View Full Version : Good method to playback anime?


molitar
13th March 2008, 07:51
Well just finally updated my computer and video card to a powerful enough system to look at using avisynth for my anime playback needs but...

Is the BlindDeHalo3_mt2.avs still a good avisynth script to use for Anime at this time? Or something else? Also when I try to use the avisynth script in ffdshow it always gives me a...

Ranguvar
13th March 2008, 12:44
I recommend DeHalo_alpha()...

Avoid using the term 'best'.

It gives you a what?

molitar
13th March 2008, 15:20
Thanks will do a search for it now :)

Ok I did a search and I can't seem to find where to get DeHalo_alpha() and a script for it.

Didée
13th March 2008, 15:56
Ok I did a search and I can't seem to find where to get DeHalo_alpha() and a script for it.
Using the forum search engine:

Key words: dehalo_alpha

Sort results by: Last posting / ascending order

Show results as: Posts


*First* hit of that search: http://forum.doom9.org/showthread.php?p=738264&highlight=dehalo_alpha#post738264


That wasn't difficult, was it? ;)

molitar
13th March 2008, 16:29
I been to that thread. I actually see no link for the actual download of dehalo_alpha at all. It talks all about it and most of the scripts are for general encoding so they will be slow not a general playback when just playing back say an anime dvd.

On another site that I have lost now their was a general script that was improved image quality but still quite playable by not using too many extremes designed for playback and not encoding purposes. But first problem is finding this Dehalo_Alpha() for actual download.

Comatose
13th March 2008, 16:54
function DeHalo_alpha(clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")
{
rx = default( rx, 2.0 )
ry = default( ry, 2.0 )
darkstr = default( darkstr, 1.0 )
brightstr = default( brightstr, 1.0 )
lowsens = default( lowsens, 50 )
highsens = default( highsens, 50 )
ss = default( ss, 1.5 )

LOS = string(lowsens)
HIS = string(highsens/100.0)
DRK = string(darkstr)
BRT = string(brightstr)
ox = clp.width()
oy = clp.height()
uv = 1
uv2 = (uv==3) ? 3 : 2

halos = clp.bicubicresize(m4(ox/rx),m4(oy/ry)).bicubicresize(ox,oy,1,0)
are = yv12lutxy(clp.expand(U=uv,V=uv),clp.inpand(U=uv,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
ugly = yv12lutxy(halos.expand(U=uv,V=uv),halos.inpand(U=uv,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
so = yv12lutxy( ugly, are, "y x - y 0.001 + / 255 * "+LOS+" - y 256 + 512 / "+HIS+" + *" )
lets = maskedmerge(halos,clp,so,U=uv,V=uv)
remove = (ss==1.0) ? clp.repair(lets,1,0)
\ : clp.lanczosresize(m4(ox*ss),m4(oy*ss))
\ .logic(lets.expand(U=uv,V=uv).bicubicresize(m4(ox*ss),m4(oy*ss)),"min",U=uv2,V=uv2)
\ .logic(lets.inpand(U=uv,V=uv).bicubicresize(m4(ox*ss),m4(oy*ss)),"max",U=uv2,V=uv2)
\ .lanczosresize(ox,oy)
them = yv12lutxy(clp,remove,"x y < x x y - "+DRK+" * - x x y - "+BRT+" * - ?",U=2,V=2)

return( them )
}

function m4(float x) {return(x<16?16:int(round(x/4.0)*4))}

Is what I have. It requires MaskTools v1.x

Didée
13th March 2008, 17:10
Finding the script(s) shouldn't be the problem (btw, the MT2 version (http://forum.doom9.org/showthread.php?p=777956#post777956) is faster) ... could be a case of PEBCAK.

molitar
13th March 2008, 17:46
Well the mt_script is the only one I got working for me at all but now I got another question for you.

Should I use resizing in ffdshow? My new screen resolution for my monitor is 1680x1080 which really makes you notice artifacts and such that I never noticed on my old CRT 1024x768 resolution but the DeHalo_alpha() script helps quite a bit but will resizing help and if so which type of resizing should I use? Secondly should I still use features like Post Processing or just the script?

TheRyuu
13th March 2008, 18:58
Dehalo_Alpha wins.
Just make sure to set the darkstr low.

Like:
darkstr=0.2-0.4 and brightstr=0.8-1.0

If your darkstr is too high you DESTROY lines.