Version

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (one more touch-up)
m (one more touch-up)
Line 2: Line 2:
 
{{FuncDef|Version()}}
 
{{FuncDef|Version()}}
  
Generates a 24[[FPS]], 10-second, [[RGB24]]-format video clip with a version, build time, copyright statement, and homepage information in yellow 24-point Arial text on a 25% grey background. Width and height are chosen to fit the message, so clip size varies by version.  
+
Generates a 24[[wikipedia:Frame_rate|fps]], 10-second, [[RGB24]]-format video clip with a version, build time, copyright statement, and homepage information in 24-point, Arial, light yellow ([[Colors|$ECF2BF]]) text on a 25% grey ($404040) background. Width and height are chosen to fit the message, so clip size varies by version.  
  
  

Revision as of 13:04, 19 August 2016

Version()

Generates a 24fps, 10-second, RGB24-format video clip with a version, build time, copyright statement, and homepage information in 24-point, Arial, light yellow ($ECF2BF) text on a 25% grey ($404040) background. Width and height are chosen to fit the message, so clip size varies by version.


Avisynth-version-2.6.png


The following script implements a Version filter with a template clip argument – for frame rate, image size, and so on.

function Version(clip C)
{
    V=Version
    M=V.ConvertToRGB32.ColorKeyMask($404040, 0).ShowAlpha
    Overlay(C, V, mask=M.Blur(0.2),
    \       x=(C.Width/2-V.Width/2), 
    \       y=(C.Height/2-V.Height/2))
    return Last
}

## usage example with template clip
return Version(ColorBarsHD(width=600, height=336))
Avisynth-version-overlay-2.61.png
Personal tools