Home
RecentChanges

Search:

» AviSynth is a powerful video FrameServer for Win32.

AviSynth Links:
»Download
»Learn to script
»FAQ
»Manual
»Discussion fora
»Project page
»External filters
»FeedBack

» You can add pages to this website immediately. No login required.
Edit this document

» AboutAviSynth

 

Avisynth 
Logo

VScrollTitle Deutsch

Falls du einen scrollende Abspann (Credits) haben willst, musst du den Start Frame f�r jede Zeile manuell angeben. Beachte, dass sie alle standardm��ig zentriert sind.

    #----------------------------------------------------------------------#
    # VScrollTitle                                                         #
    #----------------------------------------------------------------------#
    # V0.0                                                                 #
    #                                                                      #
    # F�gt einen Untertitel ein, der von oben (etwas unterhalb) bis unten  #
    # (etwas �berhalb) scrollt. Die gesamte Zeit f�r das Scrollen wird in  #
    # Sekunde im Parameter "Time" angegeben.                               #
    #----------------------------------------------------------------------#

    function VScrollTitle( clip    Clop, \
                           int     StartFrame, \
                           string  Title, \
                           string  Font, \
                           int     FontSize, \
                           int     Colour, \
                           int     Time ) {

        ef = StartFrame + int( Time * Clop.FrameRate )
        return Animate( Clop, StartFrame, ef, "subtitle",\
        Title, Clop.width/2, int(Clop.Height*1.2), StartFrame, ef, Font, FontSize, Colour, 0, 5, 0,\
        Title, Clop.width/2,                    0, StartFrame, ef, Font, FontSize, Colour, 0, 5, 0)
    }

Beispiel:

Anhand eines 25fps AVI`s mit einer Scroll-Zeit von 5 Sekunden. F�r andere Frameraten muss der Startframe angepasst werden

clip = AVISource("Dateiname.avi")
sf = 50
clip = clip.VScrollTitle( sf, "Das Ende", "Uncial", 48, $ffffff, 5 )
clip = clip.VScrollTitle( sf+15, "Directed by", "Arial", 14, $ffffff, 5 )
clip = clip.VScrollTitle( sf+24, "nkotb", "Arial", 24, $ffffff, 5 )
clip = clip.VScrollTitle( sf+40, "Produziert von", "Arial", 14, $ffffff, 5 )
clip = clip.VScrollTitle( sf+49, "nkotb", "Arial", 24, $ffffff, 5 )
return clip

Falls die Schriftart (font) oder die Gr��e (size) �nderst, musst du den Startframe anpassen.

Zur�ck zu den Gesammelten Funktionen

SourceForge Logo

 


Edit this document | View document history
Document last modified Mon, 22 Sep 2003 12:53:40