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

YourFirstScript

( Diese Seite in flag-germany.gif Deutsch )

Let's start with the most basic of AviSynth scripts:

  AviSource("c:\folder\myclip.avi")

Open up any text editor, type the above on the first line (using any AVI file on your machine as "myclip.avi"), and save it as "myclip.avs". You now have a script that can be opened by most AVI players in your machine: Windows Media Player 6.4 (aka "mplayer2") will play the script; so will VirtualDubMod or plain VirtualDub. So far as they care, your text document is an AVI file. Cool, huh???

There are several different source types, and each means something unique. For instance, you cannot open an MPEG file with AviSource because it's not an AVI file. For MPEG files you need to use DirectShowSource, so you would write:

  DirectShowSource("c:\folder\myclip.mpg", fps=25)

This process is explained in greater detail in these pages: AviSource, DirectShowSource, AviFileSource, OpenDmlSource

Once you get the hang of using a frameserver, it's time to do something more interesting than just spit out the same old video! To begin, introduce yourself to filters or head straight to the AviSynth manual itself.

SourceForge Logo

 


Edit this document | View document history
Document last modified Thu, 20 Jan 2005 16:28:46