hawk123
27th June 2006, 11:42
Hi, any one tried before/know how to import the Region Remove filter in VDub into Avisynth?
Here is the code I have tried w/o any success:
LoadPlugin("D:\AviSynth 2.5\plugins\DGDecode.dll")
mpeg2source("I:\RegionRemoveTry.d2v")
function VD_RRemover(clip clip, int "removeWidth", int "removeHeight",
\ int "removeX", int "removeY",
\ bool "border", int "frameWidth", int "frameHeight",
\ bool "ignoreTop", bool "ignoreBottom", bool "ignoreLeft", bool "ignoreRight",
\ bool "softEdges", int "softPixels",
\ bool "softONOFF", int "softFRAME",
\ int "rangeStart", int "rangeStop", int "totalRanges")
{
LoadVirtualdubPlugin("D:\VirtualDub\plugins\RegionRemove.vdf", "_VD_RRemover", 1)
return clip._VD_RRemover(default(removewidth,20), default(removeHeight,20),
\ default(removeX,128), default(removeY,128),
\ default(border,false)?1:0, default(framewidth,20), default(frameHeight,20),
\ default(ignoreTop,false)?1:0, default(ignoreBottom,false)?1:0, default(ignoreLeft,false)?1:0, default(ignoreRight,false)?1:0,
\ default(softEdges,false)?1:0, default(softPixels,0),
\ default(softONOFF,false)?1:0, default(softFRAME,0),
\ default(rangeStart,0), default(rangeStop,50), default(totalRanges,2))
}
ConvertToRGB()
VD_RRemover(20,20,100,102,false,20,20,false,false,false,false,false,0,false,0,200,2)
ConvertToYUY2(interlaced=true)
I think it should be due to last few lines in the script regarding the rangeStart, rangeStop and totalRanges as there is a counter in the original Region Remove's script.
Any one know please help.
Your comments and helps are welcome and much appreciated.
TQ
Here is the code I have tried w/o any success:
LoadPlugin("D:\AviSynth 2.5\plugins\DGDecode.dll")
mpeg2source("I:\RegionRemoveTry.d2v")
function VD_RRemover(clip clip, int "removeWidth", int "removeHeight",
\ int "removeX", int "removeY",
\ bool "border", int "frameWidth", int "frameHeight",
\ bool "ignoreTop", bool "ignoreBottom", bool "ignoreLeft", bool "ignoreRight",
\ bool "softEdges", int "softPixels",
\ bool "softONOFF", int "softFRAME",
\ int "rangeStart", int "rangeStop", int "totalRanges")
{
LoadVirtualdubPlugin("D:\VirtualDub\plugins\RegionRemove.vdf", "_VD_RRemover", 1)
return clip._VD_RRemover(default(removewidth,20), default(removeHeight,20),
\ default(removeX,128), default(removeY,128),
\ default(border,false)?1:0, default(framewidth,20), default(frameHeight,20),
\ default(ignoreTop,false)?1:0, default(ignoreBottom,false)?1:0, default(ignoreLeft,false)?1:0, default(ignoreRight,false)?1:0,
\ default(softEdges,false)?1:0, default(softPixels,0),
\ default(softONOFF,false)?1:0, default(softFRAME,0),
\ default(rangeStart,0), default(rangeStop,50), default(totalRanges,2))
}
ConvertToRGB()
VD_RRemover(20,20,100,102,false,20,20,false,false,false,false,false,0,false,0,200,2)
ConvertToYUY2(interlaced=true)
I think it should be due to last few lines in the script regarding the rangeStart, rangeStop and totalRanges as there is a counter in the original Region Remove's script.
Any one know please help.
Your comments and helps are welcome and much appreciated.
TQ