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 10th June 2019, 12:58   #1  |  Link
pwnsweet
Registered User
 
Join Date: Nov 2008
Posts: 101
Some help with an error? (mt_lutxy invalid arguments)

Hello, I am using a script that someone built for me but I can't get it to run.

Quote:
auga=ColorYUV(autogain=true)
hm=auga.slinesm(noedges=true,autogain=false)
DeHaloHmod(4,exdehalo=DeHalo_alpha_2BD(rx=1.8,ry=3,search_radi=1),extmask=hm)
sBlackerPixel(DeHaloHmod(exdehalo=abcxyz(4,yrad=3), extlmask=hm,extmask=auga.swlinesm(autogain=false).mt_inflate()),mdifffade=100,linflate=false)
Returns the error:
Quote:
Script Error: Invalid arguments to function 'mt_lutxy'.
sBlackerPixel is part of ddcomb (2018.09.04 mod) and the error occurs on line 125:

Quote:
113. function sBlackerPixel(clip "o", clip "filtered", float "maxdiff", float "thr", bool "linflate", float "mdifffade", clip "o2", val "averagewithwhiterPixel", int "averagewithwhiterPixelrep", bool "deeponly")
114. {
115. maxdiff = default(maxdiff, 32)
116. thr = default(thr, 40)
117. mdifffade = default(mdifffade, maxdiff*3/2.0) #should be more than the maxdiff
118. linflate = default(linflate, true)
119. whidorep = defined(averagewithwhiterPixelrep)
120.
121. doaverage = defined(averagewithwhiterPixel)
122. whiterPixelclip = doaverage ? isclip(averagewithwhiterPixel) ? averagewithwhiterPixel : isstring(averagewithwhiterPixel) ? eval(averagewithwhiterPixel) : swhiterPixel(o, filtered, maxdiff, 255-thr, linflate, mdifffade, o2, deeponly) : nop()
123.
124. dpmask = mdifffade!=0 ? VersionNumber() < 2.6 ? o.mt_lutxy(filtered,"y "+string(thr)+" > x y > & x y - "+string(maxdiff)+" < 255 x y - "+string(mdifffade)+" < ? 255 255 "+string(mdifffade)+" / x y - * - 0 ? 0 ?")
125. \ : o.mt_lutxy(filtered,"y "+string(thr)+" scalef > x y > & x y - "+string(maxdiff)+" scalef < range_max x y - "+string(mdifffade)+" scalef < ? range_max range_max "+string(mdifffade)+" scalef / x y - * - 0 ? 0 ?") : nop()
Can anyone help me get this running please? If it's any help, at this stage in the filter chain we are working in 16bits. Using masktools2 2.2.18 and Avisynth+ 0.1 r2772, MT, i386. I've got a feeling it has something to do with Reverse Polish Notation based on some research but I don't understand any of it.

Last edited by pwnsweet; 10th June 2019 at 13:18.
pwnsweet is offline   Reply With Quote
Old 10th June 2019, 16:44   #2  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
you should use 2 clip in sBlackerPixel (put last.sBlackerPixel will fix it) but anyway check the last update of DDComb
__________________
See My Avisynth Stuff

Last edited by real.finder; 10th June 2019 at 16:46.
real.finder is offline   Reply With Quote
Reply

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 10:10.


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