Got Milk?
9th August 2002, 20:28
I've set up variables on a compare script to save me time when choosing the best options to use before encoding. This works fine except crop won't accept the values.
Here's the AVS:LoadPlugin("c:\DVD\GORDIA~1\mpeg2dec.dll")
LoadPlugin("c:\DVD\GORDIA~1\GreedyHMA.dll")
source="Y:\VOBS\THEWEDDINGSINGER_UK_SCN\VIDEO_TS\The Wedding Singer.d2v"
caption1="Bilinear"
caption2="Blank"
caption3="Neutral"
caption4="Sharp"
GreedyHMA0="0,0,1,0,0,0,0,0"
GreedyHMA1="1,0,1,0,0,0,0,0"
size="10,15,701,547"
clip1=mpeg2source(source).crop(size).BilinearResize(512,272).Subtitle(caption1) <- Line 13
clip2=Blankclip(clip1).Subtitle(caption2)
clip3=mpeg2source(source).crop(size).BicubicResize(512,272,0,0.5).Subtitle(caption3)
clip4=mpeg2source(source).crop(size).BicubicResize(512,272,0,0.75).Subtitle(caption4)
vertclip1=StackVertical(clip1,clip2)
vertclip2=StackVertical(clip3,clip4)
StackHorizontal(vertclip1,vertclip2)I get the following error in VirtualDub:Avisynth open failure:
Script error: Invalid arguments to function "crop"
(C:\DVD\AVS\compare.avs, line 13)
Here's the AVS:LoadPlugin("c:\DVD\GORDIA~1\mpeg2dec.dll")
LoadPlugin("c:\DVD\GORDIA~1\GreedyHMA.dll")
source="Y:\VOBS\THEWEDDINGSINGER_UK_SCN\VIDEO_TS\The Wedding Singer.d2v"
caption1="Bilinear"
caption2="Blank"
caption3="Neutral"
caption4="Sharp"
GreedyHMA0="0,0,1,0,0,0,0,0"
GreedyHMA1="1,0,1,0,0,0,0,0"
size="10,15,701,547"
clip1=mpeg2source(source).crop(size).BilinearResize(512,272).Subtitle(caption1) <- Line 13
clip2=Blankclip(clip1).Subtitle(caption2)
clip3=mpeg2source(source).crop(size).BicubicResize(512,272,0,0.5).Subtitle(caption3)
clip4=mpeg2source(source).crop(size).BicubicResize(512,272,0,0.75).Subtitle(caption4)
vertclip1=StackVertical(clip1,clip2)
vertclip2=StackVertical(clip3,clip4)
StackHorizontal(vertclip1,vertclip2)I get the following error in VirtualDub:Avisynth open failure:
Script error: Invalid arguments to function "crop"
(C:\DVD\AVS\compare.avs, line 13)