Special flags set for this clip. This attribute should normally be ignored.
A VideoFormat object describing the frame data. If the format can change between frames (variable clip), this value is null.
The framerate represented as a Fraction. It is 0/1 when the clip has a variable framerate.
numerator
: The numerator of the framerate. If the clip has variable framerate, the value will be 0.
denominator
: The denominator of the framerate. If the clip has variable framerate, the value will be 1.
The height of the video. This value will be 0 if the width and height can change between frames.
The number of frames in the clip.
The width of the video. This value will be 0 if the width and height can change between frames.
Returns a promise of which the result will be a VideoFrame.
Returns a VideoFrame from position n.
Returns a VideoFrame from position n.
Write the whole clip to the specified file handle. It is possible to pipe to stdout by specifying process.stdout as the file.
YUV4MPEG2 headers will be added when true
will be reported the current progress to this callback function.
is only for debugging purposes and should never need to be changed.
is only for debugging purposes and should never need to be changed.
Set the clip to be accessible for output. This is the standard way to specify which clip(s) to output.
All VapourSynth tools (vsvfw, vsfs, vspipe) use the clip in index 0.
It’s possible to specify an additional containing the alpha to output at the same time.
Currently only vspipe takes alpha into consideration when outputting.
The altOutput argument is for optional alternate output modes. Currently it controls the FOURCCs used for VFW-style output with certain formats.
Generated using TypeDoc
Represents a video clip. The class itself supports indexing and slicing to perform trim, Reverse and SelectEvery operations.
Several operators are also defined for the VideoNode class: addition appends clips and multiplication repeats them.
Note that slicing and indexing always return a new VideoNode object and not a VideoFrame.
For TypeScript users: You will get a number from normal operators and will have to do
as VideoNode
to get typehinting back.This is a limitation of the language as it doesn't support operator overloading and they can only be done on primitives.