AviSynth Clip properties
You can access clip properties in AVS scripts. For example, if the variable clip
holds a video clip, then clip.height is its height in pixels, clip.framecount
is its length in frames, and so on. Clip properties can be manipulated just like
script variables
(see the AviSynth
Syntax for more), except that they cannot be l-values in C-terminology.
The full list of properties:
- Returns the width of the clip in pixels (type: int).
- Returns the height of the clip in pixels (type: int).
- Returns the number of frames of the clip (type: int).
- Returns the number of frames per seconds of the clip (type: float). The
framerate is internally stored as a ratio though and more about it can be
read here.
- FrameRateNumerator
(clip) (v2.55)
Returns the numerator of the number of frames per seconds of the clip
(type: float).
- FrameRateDenominator
(clip) (v2.55)
Returns the denominator of the number of frames per seconds of the clip
(type: float).
- Returns the sample rate of the audio of the clip (type: int).
- AudioLength
(clip) (v2.51)
- Returns the number of samples of the audio of the clip (type: int). Be
aware of possible overflow on very long clips (2^31 samples limit).
- AudioLengthF
(clip) (v2.55)
- Returns the number of samples of the audio of the clip (type: float).
- Returns the number of audio channels of the clip (type: int).
- Returns the audio bit depth of the clip (type: int).
- IsAudioFloat
(clip) (v2.55)
- Returns true if the bit depth of the audio of the clip is float (type:
bool).
- IsAudioInt
(clip) (v2.55)
- Returns true if the bit depth of the audio of the clip an integer (type:
bool).
- Returns true if the clip is planar,
false otherwise (type: bool).
- Returns true if the clip is RGB,
false otherwise (type: bool).
- Returns true if the clip is RGB24,
false otherwise (type: bool).
- Returns true if the clip is RGB32,
false otherwise (type: bool).
- Returns true if the clip is YUV,
false otherwise (type: bool).
- Returns true if the clip is YUY2,
false otherwise (type: bool).
- Returns true if the clip is YV12,
false otherwise (type: bool).
- Returns true if the clip color format is Planar,
false otherwise (type: bool).
Returns true if the clip is field-based (type: bool). What this means is
explained here.
Returns true if the clip is frame-based (type: bool). What this means is
explained here.
- IsInterleaved
(clip) (v2.52)
- Returns true if the clip color format is Interleaved, false otherwise
(type: bool).
- Returns true if frame n (default 0) is top field of field-based clip, or
it is full frame with top field first of frame-based clip (type: bool).
- Returns true if the clip has audio, false otherwise (type: bool).
- Returns true if the clip has video, false otherwise (type: bool).
Back to AviSynth Syntax.
$Date: 2008/10/26 14:18:53 $