View Full Version : Avisynth + Logoaway
Frankster
4th April 2002, 21:35
Hello!
I want to use Avisynth to cover up the logo from the broadcast instead of Virtul Dub!
But how work this ?
How is the commando line in avisynth ?
Many Thanks!!!
Frankster
Frankster
5th April 2002, 08:56
Hi!
global VirtualDub_plugin_directory = "D:\"
################################
# Logoaway by Krzysztof Wojdon #
################################
function VD_LogoAway(clip clip, string "mode", int "x", int "y", int "width",
\ int "height", int "keyframe", int "color")
{
LoadVirtualdubPlugin("D:\logoaway.vdf", "_VD_LogoAway")
mode = default(mode, "xblur")
mode = (mode=="xblur")?1:(mode=="yblur")?2:(mode=="xyblur")?3:(mode=="copy")?4:
\ (mode=="avgborder")?5:(mode=="solid")?6:0
Assert(mode>0, "VD_LogoAway: mode must be one of: xblur yblur xyblur copy avgborder solid")
return clip._VD_LogoAway(mode, default(x,300), default(y,8), default(width,14),
\ default(height,12), default(keyframe,0), default(color,0))
}
----------------------------------------------------------------------
Sorry for this question but what is clip clip, and what is the value of this ?
string "xblur"
int "10" ---> x
int "10" ----> y
int "50"-----> weight
int "50" -----> height
int "0" -------> keyframe
int "0" -------> color
And than I put this sentence into my original AVS script
Import("D:\vdub_filters.avs")
Mfg
Frankster
Frankster
5th April 2002, 14:59
Hi!
I have it!!!
I have some problems with "vdub_filters.avs", and so I use this
ConvertToRGB()
LoadVirtualdubPlugin("D:\logoaway.vdf", "L")
L( 2, 2949155, 7209000, 0, 0, 5, 0, 66051, 0, 1, "", "")
And it works :-)
Now my question ;)
Do I have to put into "ConvertToYUV2" at the end of the text ?
Because the film is recorded as YUV2!
My complete script!
LoadPlugin("E:\Programme\-DVD PROGS-\mpeg2dec_dll\MPEG2DEC.dll")
AviSource("E:\FILME\Greedy\GREEDY.avi")
ConvertToRGB()
LoadVirtualdubPlugin("D:\logoaway.vdf", "L")
L( 2, 2949155, 7209000, 0, 0, 5, 0, 66051, 0, 1, "", "")
ConvertToYUV2() ---------> ???????
BicubicResize(448,542,0,0.6,3,0,762,576)
AddBorders(16,17,16,17)
ResampleAudio(44100)
dividee
5th April 2002, 15:28
Nice, you make the questions and answers yourself :)
You don't have to put ConvertToYUY2 after the vdub filter (unless you use another filter that only supports YUY2 after it), but you can. I don't think it will make a noticeable speed difference in the end.
If you're still wondering what "clip" is, it's the first argument of all avisynth filters, but it's often implicit: if not present, it uses the output of the last unassigned filter.
Example:
Crop(...)
BilinearResize(...)
is the same as:
vid = Crop(...)
BilinearResize(vid,...)
"vid" is a variable of type clip.
For more information, read the avisynth language tutorial at http://www.math.berkeley.edu/%7Ebenrg/avisynth-tutorial.html
Frankster
5th April 2002, 18:51
Hello!!
*g*
I thought if anyone has the same problem und uses the search function, he or she will found the question and the answer ;)
Many Thanks
Frankster
Wilbert
9th April 2002, 09:40
@Frankster
" I have it!!! I have some problems with "vdub_filters.avs", and so I use this ..."
What kind of problems? Is it the specific VD_Logaway filter?
You are sure you got the latest version 1.1, because there were mistakes in the first one.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.