Velocity 7
12th January 2007, 03:45
I'm trying to use this avisynth script for delogo but it's not working; keeps giving me a "FCALL_UNKNOWN_STR" error. Could anyone help out?
Here's the script I'm using:
function VD_DeLogo(clip clip, bool "on_frames", string "range", string "file_deblend", string "file_alpha",
\ string "file_color", string "file_repair", float "depth", float "power", int "par_X", int "par_Y", bool "interlaced")
{
LoadVirtualdubPlugin("delogo.vdf", "_VD_DeLogo")
X = round(10*depth)
Y = round(10*power)
# theoretically: z = 100*log10(par_X/par_Y), as approximation I took a minimax-approximation (calculated with Maple):
v = - 48.96556825 + 63.18825967*par_X - 16.00966389*par_X*par_X + 2.473556539*par_X*par_X*par_X - .2133268695*par_X*par_X*par_X*par_X
\ + .009456579673*par_X*par_X*par_X*par_X*par_X - .0001675297934*par_X*par_X*par_X*par_X*par_X*par_X
w = - 48.96556825 + 63.18825967*par_X - 16.00966389*par_X*par_X + 2.473556539*par_X*par_X*par_X - .2133268695*par_X*par_X*par_X*par_X
\ + .009456579673*par_X*par_X*par_X*par_X*par_X - .0001675297934*par_X*par_X*par_X*par_X*par_X*par_X
z = round(v) - round(w)
return clip._VD_DeLogo(default(on_frames,false)?1:0, default(range,""), default(file_deblend,""), default(file_alpha,""),
\ default(file_color,""), default(file_repair,""), default(X,15), default(Y,40), default(interlaced,false)?1:0, z)
}
function delogo (clip clp) {
logo=clp.crop(0,0,104,64)
bottom=clp.crop(0,64,-0,-0)
right=clp.crop(104,0,-0,64)
ConvertToRGB(logo)
log1=VD_DeLogo(false, "", "ZDF_deblend.bmp", "ZDF_alpha.bmp", "ZDF_color.bmp", "ZDF_repair-t.bmp", 2.0, 4.0, 1, 1, false).ConvertToYV12()
log2=VD_DeLogo(false, "", "ZDF_deblend.bmp", "ZDF_alpha.bmp", "ZDF_color.bmp", "ZDF_repair-o.bmp", 2.0, 4.0, 1, 1, false).ConvertToYV12()
mergeluma(log2,log1,1.0)
top=stackhorizontal(last,right)
return ( stackvertical(top,bottom) )
}
My current code to call it is simply:
delogo(vid)
P.S. I would PM Didee but his PM inbox is full. :p
Here's the script I'm using:
function VD_DeLogo(clip clip, bool "on_frames", string "range", string "file_deblend", string "file_alpha",
\ string "file_color", string "file_repair", float "depth", float "power", int "par_X", int "par_Y", bool "interlaced")
{
LoadVirtualdubPlugin("delogo.vdf", "_VD_DeLogo")
X = round(10*depth)
Y = round(10*power)
# theoretically: z = 100*log10(par_X/par_Y), as approximation I took a minimax-approximation (calculated with Maple):
v = - 48.96556825 + 63.18825967*par_X - 16.00966389*par_X*par_X + 2.473556539*par_X*par_X*par_X - .2133268695*par_X*par_X*par_X*par_X
\ + .009456579673*par_X*par_X*par_X*par_X*par_X - .0001675297934*par_X*par_X*par_X*par_X*par_X*par_X
w = - 48.96556825 + 63.18825967*par_X - 16.00966389*par_X*par_X + 2.473556539*par_X*par_X*par_X - .2133268695*par_X*par_X*par_X*par_X
\ + .009456579673*par_X*par_X*par_X*par_X*par_X - .0001675297934*par_X*par_X*par_X*par_X*par_X*par_X
z = round(v) - round(w)
return clip._VD_DeLogo(default(on_frames,false)?1:0, default(range,""), default(file_deblend,""), default(file_alpha,""),
\ default(file_color,""), default(file_repair,""), default(X,15), default(Y,40), default(interlaced,false)?1:0, z)
}
function delogo (clip clp) {
logo=clp.crop(0,0,104,64)
bottom=clp.crop(0,64,-0,-0)
right=clp.crop(104,0,-0,64)
ConvertToRGB(logo)
log1=VD_DeLogo(false, "", "ZDF_deblend.bmp", "ZDF_alpha.bmp", "ZDF_color.bmp", "ZDF_repair-t.bmp", 2.0, 4.0, 1, 1, false).ConvertToYV12()
log2=VD_DeLogo(false, "", "ZDF_deblend.bmp", "ZDF_alpha.bmp", "ZDF_color.bmp", "ZDF_repair-o.bmp", 2.0, 4.0, 1, 1, false).ConvertToYV12()
mergeluma(log2,log1,1.0)
top=stackhorizontal(last,right)
return ( stackvertical(top,bottom) )
}
My current code to call it is simply:
delogo(vid)
P.S. I would PM Didee but his PM inbox is full. :p