new VideoInfo()
This functions as the base class for both AviSynth.Clip and
AviSynth.Filter. It provides access to the video information for a
clip. (Clips and filters are effectively the same thing.)
Most of the field names are based on the clip property getters that AviSynth provides.
- Source:
Members
-
<readonly> audioBits :number
-
The number of bits used in a single audio sample.
Type:
- number
- Source:
-
<readonly> audioChannels :number
-
The number of audio channels.
Type:
- number
- Source:
-
<readonly> audioLength :number
-
The total number of samples in the audio portion of the clip.
Type:
- number
- Source:
-
<readonly> audioLengthF :number
-
The total number of samples in the audio portion of the clip. This is literally identical to the
audioLengthmember and is included only for symmetry with the AviSynth scripting language.Type:
- number
- Source:
-
<readonly> audioRate :number
-
The audio rate of the clip in hertz.
Type:
- number
- Source:
-
<readonly> colorSpace :string
-
The exact colorspace the clip is in. (NOTE: A future version will likely replace the string return value with the corresponding
AviSynth.ColorSpaceobject.)Type:
- string
- Source:
-
<readonly> frameCount :number
-
The number of frames available in the video clip.
Type:
- number
- Source:
-
<readonly> frameRate :number
-
The frame rate of the clip as a floating point number. Note that it isn't stored that way internally - the actual frame rate is a ratio stored as integers. Those are available via the
frameRateNumeratorandframeRateDenominatormembers.Type:
- number
- Source:
-
<readonly> frameRateDenominator :number
-
The denominator of the frame rate ratio.
Type:
- number
- Source:
-
<readonly> frameRateNumerator :number
-
The numerator of the frame rate ratio.
Type:
- number
- Source:
-
<readonly> hasAudio :boolean
-
Whether or not the clip has audio.
Type:
- boolean
- Source:
-
<readonly> hasVideo :boolean
-
Whether or not the clip has video.
Type:
- boolean
- Source:
-
<readonly> height :number
-
The height of the video frame.
Type:
- number
- Source:
-
<readonly> isAudioFloat :boolean
-
If the audio samples are floating point.
Type:
- boolean
- Source:
-
<readonly> isAudioInt :boolean
-
If the audio samples are integers.
Type:
- boolean
- Source:
-
<readonly> isFieldBased :boolean
-
Assuming the clip is interlaced (there's no flag for that in AviSynth), this indicates that both the top and bottom lines are stored in a single frame.
Type:
- boolean
- Source:
-
<readonly> isFrameBased :boolean
-
Assuming the clip is interlaced (there's no flag for that in AviSynth), this indicates that the top and bottom lines are stored in separate frames.
Type:
- boolean
- Source:
-
<readonly> isInterleaved :boolean
-
If the video is stored in an interleaved format.
Type:
- boolean
- Source:
- See:
-
<readonly> isPlanar :boolean
-
If the video is stored in a planar format.
Type:
- boolean
- Source:
- See:
-
<readonly> isRGB :boolean
-
If the color format is RGB. (RGB24 or RGB32.)
Type:
- boolean
- Source:
-
<readonly> isRGB24 :boolean
-
If the color format is RGB24.
Type:
- boolean
- Source:
-
<readonly> isRGB32 :boolean
-
If the color format is RGB32.
Type:
- boolean
- Source:
-
<readonly> isYUV :boolean
-
If the color format is YUV. (YUY2 or YV12.)
Type:
- boolean
- Source:
-
<readonly> isYUY2 :boolean
-
If the color format is YUY2.
Type:
- boolean
- Source:
-
<readonly> isYV12 :boolean
-
If the color format is YV12.
Type:
- boolean
- Source:
-
<readonly> width :number
-
The width of the video frame.
Type:
- number
- Source: