Dark-Cracker
14th April 2004, 14:40
hi,
i have waste a few hour to try to change and old avisynth script using the chr.dll (needed to the write function) with the latest avisynth function writefilestart.
here is my old script :
--------------
LoadPlugin("E:\SAUVEG~1\Project\AutoIVTC\bin\script\MPEG2D~1.DLL")
LoadPlugin("E:\SAUVEG~1\Project\AutoIVTC\bin\script\decomb.dll")
LoadPlugin("E:\SAUVEG~1\Project\AutoIVTC\bin\script\chr.dll")
file="E:\SAUVEG~1\Project\AutoIVTC\interlace.log"
percentmovie=10
sep="."
combedthreshold=25
#---
function IsMoving() {return (diff < 1.0) ? false : true}
function GetPercent(clip x, float percent) {return SelectRangeEvery(x, floor(16./(percent/100.)), 16)}
#---
a = mpeg2source("E:\SAUVEG~1\Project\AutoIVTC\50mb.d2v")
c = GetPercent(a,percentmovie)
global clip = c
c = FrameEvaluate(c,"Write(file,string(IsCombed(combedthreshold)) + sep + string(IsMoving()),append=true)")
c = FrameEvaluate(c,"global diff = 0.50*YDifferenceFromPrevious(clip) + 0.25*UDifferenceFromPrevious(clip) + 0.25*VDifferenceFromPrevious(clip)")
return c
------------------
i have try to change it using the function "writefile" but without success, i have change the "write" function with "writefilestart" this generate me a file but it don't like my separator, apparently it doesn't understand the result (a boolean) is a string and not a funcion (because it the separator is a dot ".")
=> Script error: there is no function named "false"
i have change the separator but without success, it doesn't take the space separator, and if a add some character to separate the 2 boolean it return me :
=> I don't know what "isfalse" means
can someone could help me to correct it ?
thx :)
++
i have waste a few hour to try to change and old avisynth script using the chr.dll (needed to the write function) with the latest avisynth function writefilestart.
here is my old script :
--------------
LoadPlugin("E:\SAUVEG~1\Project\AutoIVTC\bin\script\MPEG2D~1.DLL")
LoadPlugin("E:\SAUVEG~1\Project\AutoIVTC\bin\script\decomb.dll")
LoadPlugin("E:\SAUVEG~1\Project\AutoIVTC\bin\script\chr.dll")
file="E:\SAUVEG~1\Project\AutoIVTC\interlace.log"
percentmovie=10
sep="."
combedthreshold=25
#---
function IsMoving() {return (diff < 1.0) ? false : true}
function GetPercent(clip x, float percent) {return SelectRangeEvery(x, floor(16./(percent/100.)), 16)}
#---
a = mpeg2source("E:\SAUVEG~1\Project\AutoIVTC\50mb.d2v")
c = GetPercent(a,percentmovie)
global clip = c
c = FrameEvaluate(c,"Write(file,string(IsCombed(combedthreshold)) + sep + string(IsMoving()),append=true)")
c = FrameEvaluate(c,"global diff = 0.50*YDifferenceFromPrevious(clip) + 0.25*UDifferenceFromPrevious(clip) + 0.25*VDifferenceFromPrevious(clip)")
return c
------------------
i have try to change it using the function "writefile" but without success, i have change the "write" function with "writefilestart" this generate me a file but it don't like my separator, apparently it doesn't understand the result (a boolean) is a string and not a funcion (because it the separator is a dot ".")
=> Script error: there is no function named "false"
i have change the separator but without success, it doesn't take the space separator, and if a add some character to separate the 2 boolean it return me :
=> I don't know what "isfalse" means
can someone could help me to correct it ?
thx :)
++