Blankman
19th March 2003, 15:59
Looking for information on two topics on rendering logos.
Topic 1:
--------
Using the following "logo.avsi" definition in the AviSynth plugins folder:
global VD_plugins = "C:\Virtualdub\plugins"
function VD_Logo(clip clip, int "x", int "y",
\ int "alpha", bool "transparent",
\ int "xr", int "xg", int "xb",
\ int "tolerance", string "filename",
\ bool "animate", int "start", int "duration", int "loops",
\ int "fadeinlen", int "fadeoutend", int "fadeoutlen")
{
LoadVirtualdubPlugin(VD_plugins+"\logo.vdf", "_VD_Logo", 0)
return clip._VD_Logo(default(x,5), default(y,5),
\ default(alpha,128), default(transparent,true)?1:0,
\ default(xr,0), default(xg,0), default(xb,0),
\ default(tolerance,10),
\ default(filename,VD_plugins+"\logo.bmp"),
\ default(animate,false)?1:0,
\ default(start,0), default(duration,0), default(loops,0),
\ default(fadeinlen,20), default(fadeoutend,300),
\ default(fadeoutlen,20))
}
The simple way of using this in the AviSynth .AVS script would be to
add:
ConvertToYUY2(VD_logo(ConvertToRGB()))
to the end of the script. But wouldn't something like:
ConvertToYUY2(VD_logo(ConvertToRGB(TRIM(0,600)))) + TRIM(601,0)
be more efficient, since only the first 600 frames will be passed through the Virtualdub logo filter?
Also wouldn't converting (Maybe I'm volunteering, where's my copy of Visual C++?) the Virtualdub logo filter into an AviSynth filter improve performance because the colormap conversion may be avoided?
Topic 2:
--------
For a really simple logo, I have used:
Subtitle("Logo", 16, 8, 20, 320, "Embie", 24, $000000, $808080, 7)
Now if I can only figure how to use Animate() and/or Layer() to make the logo fade in and out without fading the rest of the clip.
Topic 1:
--------
Using the following "logo.avsi" definition in the AviSynth plugins folder:
global VD_plugins = "C:\Virtualdub\plugins"
function VD_Logo(clip clip, int "x", int "y",
\ int "alpha", bool "transparent",
\ int "xr", int "xg", int "xb",
\ int "tolerance", string "filename",
\ bool "animate", int "start", int "duration", int "loops",
\ int "fadeinlen", int "fadeoutend", int "fadeoutlen")
{
LoadVirtualdubPlugin(VD_plugins+"\logo.vdf", "_VD_Logo", 0)
return clip._VD_Logo(default(x,5), default(y,5),
\ default(alpha,128), default(transparent,true)?1:0,
\ default(xr,0), default(xg,0), default(xb,0),
\ default(tolerance,10),
\ default(filename,VD_plugins+"\logo.bmp"),
\ default(animate,false)?1:0,
\ default(start,0), default(duration,0), default(loops,0),
\ default(fadeinlen,20), default(fadeoutend,300),
\ default(fadeoutlen,20))
}
The simple way of using this in the AviSynth .AVS script would be to
add:
ConvertToYUY2(VD_logo(ConvertToRGB()))
to the end of the script. But wouldn't something like:
ConvertToYUY2(VD_logo(ConvertToRGB(TRIM(0,600)))) + TRIM(601,0)
be more efficient, since only the first 600 frames will be passed through the Virtualdub logo filter?
Also wouldn't converting (Maybe I'm volunteering, where's my copy of Visual C++?) the Virtualdub logo filter into an AviSynth filter improve performance because the colormap conversion may be avoided?
Topic 2:
--------
For a really simple logo, I have used:
Subtitle("Logo", 16, 8, 20, 320, "Embie", 24, $000000, $808080, 7)
Now if I can only figure how to use Animate() and/or Layer() to make the logo fade in and out without fading the rest of the clip.