Skip to main content

VideoClip

info

VideoClip inherits from Object

A container for video data.

Members

Properties

NameDescription
VideoClip.audioTrackCountNumber of audio tracks in the clip.
VideoClip.frameCountThe length of the VideoClip in frames. (Read Only).
VideoClip.frameRateThe frame rate of the clip in frames/second. (Read Only).
VideoClip.heightThe height of the images in the video clip in pixels. (Read Only).
VideoClip.lengthThe length of the video clip in seconds. (Read Only).
VideoClip.originalPathThe video clip path in the project's assets. (Read Only).
VideoClip.pixelAspectRatioDenominatorDenominator of the pixel aspect ratio (num:den). (Read Only).
VideoClip.sRGBWhether the imported clip contains sRGB color data (Read Only).
VideoClip.widthThe width of the images in the video clip in pixels. (Read Only).

Methods

NameDescription
VideoClip.GetAudioChannelCount(audioTrackIdx)The number of channels in the audio track. E.g. 2 for a stereo track.
VideoClip.GetAudioLanguage(audioTrackIdx)Get the audio track language. Can be unknown.
VideoClip.GetAudioSampleRate(audioTrackIdx)Get the audio track sampling rate in Hertz.

Inherited Members

Inherited Properties

NameDescription
VideoClip.hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
VideoClip.nameThe name of the object.

Inherited Methods

NameDescription
VideoClip.GetInstanceID()Returns the instance id of the object.

Extra Detail

A VideoClip stores the video portion of a movie file using a codec that is appropriate for the target platform. VideoClips are referenced by VideoPlayers to play videos.