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 > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st February 2012, 19:34   #1  |  Link
wlndd6
Registered User
 
Join Date: Nov 2011
Posts: 7
AverageLuma: Invalid Arguments

I get a Script error: Invalid arguments to function "AverageChromaU" on this script. Does anyone know what the problem is?

If I display yvmask with info() it says that it is YV12.

Code:
LoadPlugin("C:\Users\1337\Desktop\video\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\1337\Desktop\soooyeon.d2v", info=3)
LoadPlugin("C:\Users\1337\Desktop\video\megui\tools\avisynth_plugin\ColorMatrix.dll")
Load_Stdcall_plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
ColorMatrix(hints=true, threads=0)
yadif()
crop(440,0,-440,0)
clip=last

vectors = clip.MSuper().MAnalyse(isb = false,truemotion=false)
mask=MMask(vectors,ml=50)
yvmask=mask.converttoyv12()

clip.subtitle(string(AverageChromaU(yvmask)),align=7)
edit: i got it to work with
Code:
ScriptClip(clip, "Subtitle(String(AverageChromaU(yvmask)))")
instead of
Code:
clip.subtitle(string(AverageChromaU(yvmask)),align=7)

Last edited by wlndd6; 21st February 2012 at 20:06.
wlndd6 is offline   Reply With Quote
Old 22nd February 2012, 02:54   #2  |  Link
elizabethmc
Registered User
 
Join Date: Feb 2012
Posts: 1
I have the same problem. Any help in this regard would be appreciated, thanks!
__________________
This is an ex
elizabethmc is offline   Reply With Quote
Old 22nd February 2012, 05:09   #3  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Did you see the edit in the first post? It has the solution. If that does not work for you, then post your script and tell us what error you get.
Guest 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 12:07.


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