Blankman
8th May 2003, 16:59
Help! I'm using the following script, and I can not get past the error message:
"ScriptClip: function did not return a video clip with the same colorspace as the source clip"
SetWorkingDir("C:\My Movies\")
function BMPfile(int n)
{
ret_val = ""
ret_val = (n < 10000) ? ret_val+"0" : ret_val
ret_val = (n < 01000) ? ret_val+"0" : ret_val
ret_val = (n < 00100) ? ret_val+"0" : ret_val
ret_val = (n < 00010) ? ret_val+"0" : ret_val
ret_val = ret_val + String(n) + ".bmp"
return ret_val
}
mpeg2source("_video.d2v").Telecide().Decimate(5).LanczosResize(544,408).ConvertToYV12()
ScriptClip("return Exist(patchfile) ? patch : last")
FrameEvaluate("patch = ImageReader(patchfile, start=0, end=0, fps=24, use_devil=false).ConvertToYV12()")
FrameEvaluate("patchfile = BMPfile(current_frame)")
"ScriptClip: function did not return a video clip with the same colorspace as the source clip"
SetWorkingDir("C:\My Movies\")
function BMPfile(int n)
{
ret_val = ""
ret_val = (n < 10000) ? ret_val+"0" : ret_val
ret_val = (n < 01000) ? ret_val+"0" : ret_val
ret_val = (n < 00100) ? ret_val+"0" : ret_val
ret_val = (n < 00010) ? ret_val+"0" : ret_val
ret_val = ret_val + String(n) + ".bmp"
return ret_val
}
mpeg2source("_video.d2v").Telecide().Decimate(5).LanczosResize(544,408).ConvertToYV12()
ScriptClip("return Exist(patchfile) ? patch : last")
FrameEvaluate("patch = ImageReader(patchfile, start=0, end=0, fps=24, use_devil=false).ConvertToYV12()")
FrameEvaluate("patchfile = BMPfile(current_frame)")