» AviSynth is a powerful video FrameServer for Win32.

AviSynth Links:
»Learn to script
»Discussion fora
»Project page
»External filters

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

» AboutAviSynth




( Diese Seite in flag-germany.gif Deutsch )

Starting from AviSynth v2.5 a fourth color format is available besides RGB24, RGB32 and YUY2: YV12. Starting from this version many filters will also work in YV12. The available (internal) filters are listed here and divided into specific groups, including some information and in which color format these filters work.

You could also see an alphabetical listing of the commands in the AviSynthManual.

Source filters for producing a clip

AviSource Opens an AVI file. RGB24, RGB32, YUY2, YV12
OpenDMLSource Opens an AVI file. RGB24, RGB32, YUY2, YV12
AviFileSource Opens an AVI file. RGB24, RGB32, YUY2, YV12
WavSource Opens a WAV file or the audio of an AVI file RGB24, RGB32, YUY2, YV12
DirectShowSource Opens a filename using DirectShow. RGB24, RGB32, YUY2, YV12
SegmentedAviSource / SegmentedDirectShowSource This filter automatically loads up to 100 avi files per argument. RGB24, RGB32, YUY2, YV12
BlankClip / Blackness This filter produces a solid color, silent video clip of the specified length (in frames). RGB24, RGB32, YUY2, YV12
IPCSource Opens a communication channel with an AviSynth-compatible frame server running in another process. RGB24, RGB32, YUY2
ImageReader / ImageSource This filter produces a video clip by reading in still images. RGB24, RGB32, YUY2, YV12
Import Imports an AviSynth script into the current script RGB24, RGB32, YUY2, YV12

Filters for image processing

AddBorders Adds black borders around the image. RGB24, RGB32, YUY2, YV12
Blur / Sharpen This a simple 3x3-kernel blurring/sharpening filter. RGB24, RGB32, YUY2, YV12
ColorYUV Adjusts colors and luma independently. YUY2, YV12
ConvertBackToYUY2 Converts a RGB clip back to YUY2. RGB24, RGB32, YUY2
ConvertToRGB Converts to RGB32 unless clip is RGB24. RGB24, RGB32, YUY2, YV12
ConvertToRGB24 / ConvertToRGB32 / ConvertToYUY2 / ConvertToYV12 Converts to RGB24/RGB32/YUY2/YV12. RGB24, RGB32, YUY2, YV12
Crop Crops excess pixels off of each frame. RGB24, RGB32, YUY2, YV12
CropBottom Crops excess pixels off of the bottom of each frame. RGB24, RGB32, YUY2, YV12
GeneralConvolution General convolution. RGB32
GreyScale Converts a video to greyscale. RGB24, RGB32, YUY2, YV12
HSIAdjust (removed in v2.53) Adjusts hue, saturation, intensity and alpha level. YUY2, YV12 ?
Invert Inverts the color channels of a video. RGB24, RGB32, YUY2, YV12
Layer Layering two videos. RGB32, YUY2
Mask Applies an alpha-mask to a clip. RGB32
ResetMask Applies an "all-opaque" alpha-mask to clip. RGB32
ColorKeyMask Sets the alpha-channel (similar as Mask does) but generates it by comparing the color. RGB32
Letterbox Letterbox simply blackens out the top and the bottom and optionally left and right side of each frame. RGB24, RGB32, YUY2, YV12
Levels Adjusts brightness, contrast, and gamma level. RGB24, RGB32, YUY2, YV12
Limiter A filter for clipping levels to within CCIR-601 range. YUY2, YV12
MergeChroma / MergeLuma This filter makes it possible to merge chroma/luma from a videoclip into another. There is an optional weighing, so a percentage between the two clips can be specified. YUY2, YV12
Overlay Overlay puts two clips on top of eachother with an optional displacement of the overlaying image, and using different overlay methods. Furthermore opacity can be adjusted for the overlay clip. RGB24, RGB32, YUY2, YV12
ReduceBy2 Reduces the size of each frame by half. RGB24, RGB32, YUY2, YV12
HorizontalReduceBy2 / VerticalReduceBy2 Reduces the size of each frame by half horizontally/vertically. RGB24, RGB32, YUY2, YV12
RGBAdjust Adjusts each color channel seperately. RGB24, RGB32, YUY2
BicubicResize / BilinearResize / LanczosResize / Lanczos4Resize / PointResize The resize filters rescale the input video frames to an arbitrary new resolution, using different sampling algorithms. RGB24, RGB32, YUY2, YV12
SpatialSoften / TemporalSoften Removes noise from a video clip by selectively blending pixels spatially/temporally. YUY2, YV12 (only TemporalSoften)
ShowAlpha Shows the alpha channel of a clip. RGB32
SwapUV Swaps chroma channels. YUY2, YV12
UToY / VToY Copies chroma U/V plane to Y plane (image is now half as big) YUY2, YV12
YToUV Puts the luma channels of the two clips as U and V channels. Image is now twice as big, and luma is 50% grey. Use MergeLuma, if you want to add luma values. YUY2, YV12
Tweak Adjusts the hue, saturation, brightness, and contrast. YUY2, YV12

Filters for Editing

AlignedSplice / UnalignedSplice Joins two or more video clips end to end. RGB24, RGB32, YUY2, YV12
AssumeFPS / ChangeFPS / ConvertFPS Changes framerates in different ways. RGB24, RGB32, YUY2, YV12
DeleteFrame Deletes a single frame, given as an argument. RGB24, RGB32, YUY2, YV12
Dissolve Like AlignedSplice, except that the clips are combined with some overlap. RGB24, RGB32, YUY2, YV12
DuplicateFrame Duplicates a single frame given as an argument. RGB24, RGB32, YUY2, YV12
FadeIn0 / FadeIn / FadeIn2 / FadeOut0 / FadeOut / FadeOut2 / FadeIO0 / FadeIO / FadeIO2 Causes the video stream to fade linearly to black at the start or end. RGB24, RGB32, YUY2, YV12
FreezeFrame Replaces all the frames between first-frame and last-frame. RGB24, RGB32, YUY2, YV12
Loop Loops the segment from start frame to end frame a given number of times. RGB24, RGB32, YUY2, YV12
SelectEven / SelectOdd Makes an output video stream using only the even/odd numbered frames. RGB24, RGB32, YUY2, YV12
SelectEvery Selects frames with a fixed period, it is a generalization of SelectEven and SelectOdd. RGB24, RGB32, YUY2, YV12
SelectRangeEvery Selects a range of frames with a fixed period. RGB24, RGB32, YUY2, YV12
Trim Trims a video clip so that it includes only the frames first-frame through last-frame. RGB24, RGB32, YUY2, YV12

Filters for treating interlaced video

Currently (v2.5x and older versions), AviSynth has no interlaced flag which can be used for interlaced video. There is a fieldbased flag, but contrary to what you might expect, this flag is not related to interlaced video. In fact, all video (progressive or interlaced) is framebased, unless you use AviSynth filters to change that. There are two filters who turn framebased video into fieldbased video: SeparateFields and AssumeFieldBased. More information about fieldbased video can be found here.

AssumeFrameBased / AssumeFieldBased AviSynth keeps track of whether a given clip is field-based or frame-based ... RGB24, RGB32, YUY2, YV12
AssumeBFF / AssumeTFF Force field order. RGB24, RGB32, YUY2, YV12
Bob Bob takes a clip and bob-deinterlaces it. RGB24, RGB32, YUY2, YV12
ComplementParity Changes top fields to bottom fields and vice-versa. RGB24, RGB32, YUY2, YV12
DoubleWeave If the input clip is field-based, this filter operates like Weave, except that it produces double the number of frames. RGB24, RGB32, YUY2, YV12
Interleave Interleaves frames from several clips on a frame-by-frame basis. RGB24, RGB32, YUY2, YV12
Pulldown This filter simply selects two out of every five frames of the source video. RGB24, RGB32, YUY2, YV12
SeparateFields Takes a frame-based clip and splits each frame into its component fields. RGB24, RGB32, YUY2, YV12
SwapFields Swaps the two fields in an interlaced frame. RGB24, RGB32, YUY2, YV12
Weave Takes pairs of fields from the input video clip and combines them together to produce interlaced frames. RGB24, RGB32, YUY2, YV12

Audio filters

Prior to v2.5 the audio samples are converted to 16 bits when using one of these audio filters. Starting from v2.5 the audio samples will be automatically converted if any filters requires a special type of sample. This means that most filters will accept several types of input, but if a filter doesn't support the type of sample it is given, it will automatically convert the samples to something it supports. The internal formats supported in each filter is listed in the colorspace column. A specific sample type can be forced by using the ConvertAudio functions.

If the sample type is float, when AviSynth has to output the data, it will be converted to 16 bit, since float cannot be passed as valid AVI data.

Amplify / AmplifydB Amplify multiply audio samples by amount. 16Bit, Float
AssumeSampleRate Adjusts the playback speed of the audio. All
AudioDub Takes the video stream from the first argument and the audio stream from the second argument and combines them. All
ConvertAudioTo8bit / ConvertAudioTo16bit / ConvertAudioTo24bit / ConvertAudioTo32bit / ConvertAudioToFloat Converts audio samples to 8/16/24/32/Float bits. All
ConvertToMono Merges all audio channels. 16Bit, Float
DelayAudio Delays the audio track by second seconds. All
EnsureVBRMP3Sync Corrects out-of-sync mp3-AVI's, when seeking or trimming. All
GetChannel Returns an audio channel from a clip. All
GetLeftChannel / GetRightChannel Returns the left/right audio channel from a clip. All
KillAudio Removes the audio from a clip completely. All
LowPassAudio / HighPassAudio (removed in v2.52) Filters out frequencies below/above the given frequency. N/A
MergeChannels Merges channels of two audio clips. All
MixAudio Mixes audio from two clips. 16Bit, Float
MonoToStereo Converts two mono signals to one stereo signal. 16Bit, Float
Normalize Amplifies the entire waveform as much as possible, without clipping. 16Bit, Float
ResampleAudio Performs a high-quality change of audio sample rate. 16Bit
SuperEQ High quality 16 band sound equalizer. Float
SSRC Very high quality samplerate conversion. Float
TimeStretch This filter can change speed of the sound without changing the pitch, and change the pitch of a sound without changing the length of a sound Float
Tone This will generate sound. Float

Special and exotic filters

Animate / ApplyRange Animate (ApplyRange) is a meta-filter which evaluates its parameter filter with continuously varying (the same) arguments. RGB24, RGB32, YUY2, YV12
ConditionalFilter / FrameEvaluate / ScriptClip / ConditionalReader ConditionalFilter returns source1 if some condition is met, otherwise it returns source2. ScriptClip returns the clip which is returned by the function evaluated on every frame. YV12
FixBrokenChromaUpsampling The MS DV codec upsamples the chroma channels incorrectly, this filter compensates for it. YUY2
FixLuminance Correct shifting vertical luma offset. YUY2
FlipHorizontal / FlipVertical Flips the video from left to right/upside-down. RGB24, RGB32, YUY2, YV12
ImageWriter Writes frames as images to your hard disk. RGB24, RGB32, YUY2, YV12
PeculiarBlend This filter blends each frame with the following frame in a peculiar way. YUY2
Reverse This filter makes a clip play in reverse. RGB24, RGB32, YUY2, YV12
Subtitle Adds a single line of anti-aliased text to a range of frames. RGB24, RGB32, YUY2, YV12
TCPServer This filter will enable you to send clips over your network. You can connect several clients to the same machine. All available
TCPSource This filter will enable you to send clips over your network. You can connect several clients to the same machine. All available
TurnLeft / TurnRight Rotates the clip 90 degrees counterclock wise / 90 degrees clock wise. RGB24, RGB32, YUY2, YV12
WriteFile / WriteFileIf / WriteFileStart / WriteFileEnd Output to a textfile RGB24, RGB32, YUY2, YV12

Debug filters

ColorBars This filter produces a video clip containing SMPTE color bars scaled to any image size. RGB32, YUY2, YV12
Compare Compares two clips and prints out information about the differences. RGB24, RGB32, YUY2
Histogram Adds a histogram. YUY2, YV12
Info Prints out image and sound information. RGB24, RGB32, YUY2, YV12
MessageClip Produces a clip containing a text message. RGB32
ShowFiveVersions Takes five video streams and combines them in a staggered arrangement from left to right. RGB24, RGB32, YUY2, YV12
ShowFrameNumber / ShowSMPTE Draws text on every frame indicating what number AviSynth thinks it is. RGB24, RGB32, YUY2, YV12
StackHorizontal / StackVertical Takes two or more video clips and displays them together in left-to-right/up-to-down order. RGB24, RGB32, YUY2, YV12
Subtract Produces an output clip in which every pixel is set according to the difference between the corresponding pixels. RGB24, RGB32, YUY2, YV12
Version Generates a video clip with a short version and copyright statement. RGB24

SourceForge Logo


Edit this document | View document history
Document last modified Sun, 30 Jan 2005 11:02:28