Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Video Clip Importer reference

Understand the Video Clip Importer component.
Read time 5 minutesLast updated 23 days ago

Configure the settings of the Video Clip Importer to transcode video files into different formats, ensuring compatibility with your target platforms. For more information on transcoding video files, refer to Transcoding video files.
Note
The transcoding process can result in longer build times and lower video quality.

Video Clip Importer settings

The following settings are available in the Inspector window when you select a video file in your project.

Property

Description

sRGB (Color Texture)Choose whether the VideoPlayer converts sRGB to Linear color space when it loads the video data into textures. Unity enables this setting by default because most video clips store color data in sRGB color space. For non-color video clips, disable this setting to avoid unnecessary conversions.
TranscodeTranscode the source content into a format that’s compatible with the target platform.

Note: Verify that the source format is compatible with each target platform. For more information, refer to Video file compatibility.
The following settings are available after you enable the Transcode property.

Property

Description

DimensionsControl how Unity resizes the source content in pixels. Aspect ratio is controllable for all options. For information about the different resize options, refer to Dimensions options.
CodecChoose the codec to encode the video track. For option details, refer to Codec options. For information about codec support, refer to Video file compatibility.
Bitrate ModeHow much data a video uses per second. Choose a bitrate relative to the chosen codec's baseline profile. For more information about the bitrate types, refer to Bitrate Mode options.

Note: Higher bitrates provide a higher quality video, but impose a higher load on network connections or storage.
Spatial QualityHow sharp and detailed the image looks within each video frame. Choose whether to reduce the spatial quality of video images during transcoding. For information about the different options, refer to Spatial Quality options.

Note: Resizing images uses less storage but also results in blurriness during playback.
Keep AlphaPreserve the alpha channel and encode it during transcoding so you can use the video even if the target platform doesn't natively support videos with transparency.

Note: This property is only visible for sources that have an alpha channel.
DeinterlaceInterlaced videos have two time samples in each frame: one in odd-numbered lines, and one in even-numbered lines. Deinterlacing converts interlaced video into progressive frames for smoother display.

Control how much Unity deinterlaces interlaced sources during transcoding. For details about the options, refer to Deinterlace options.
Flip HorizontallyFlip the source content along a horizontal axis when transcoding.
Flip VerticallyFlip the source content along a vertical axis when transcoding.
Import AudioImport the audio tracks when transcoding.

Note: This property is available only for sources that have audio tracks.

Dimensions options

Set Dimensions to one of the following options:

Property

Description

Original SizeKeep the original size of the source.
Three Quarter ResResize the source to three quarters of its original width and height.
Half ResResize the source to half of its original width and height.
Quarter ResResize the source to a quarter of its original width and height.
Square 1024Resize the source to a 1024 x 1024 square image.
Square 512Resize the source to a 512 x 512 square image.
Square 256Resize the source to a 256 x 256 square image.
Custom SizeResize the source to a custom width and height.

Codec options

Set Codec to one of the following options:

Property

Description

AutoChoose the best video codec for the target platform automatically.
H264Choose the MPEG-4 Advanced Video Coding (AVC) video codec, supported by hardware on most platforms.
H265Choose the MPEG-H Part 2, or High Efficiency Video Coding (HEVC), video codec, supported by hardware on some platforms.
VP8Choose the VP8 video codec, supported by software on most platforms, and by hardware on Android and Web.

Bitrate Mode options

Set Bitrate Mode to one of the following options:

Property

Description

LowChoose a low bitrate.
MediumChoose a medium bitrate.
HighChoose a high bitrate.

Spatial Quality options

Set Spatial Quality to one of the following options:

Property

Description

Low Spatial QualityThe image is significantly reduced in size during transcoding (typically to a quarter of its original dimensions), and then expanded back to its original size upon playback. This is the highest amount of resizing, meaning it saves the most storage space but results in the largest amount of blurriness upon playback.
Medium Spatial QualityThe image is moderately reduced in size during transcoding (typically to half of its original dimensions), and then expanded back to its original size upon playback. Although there's some resizing, images are less blurry than those that use the Low Spatial Quality option, and there's some reduction in required storage space.
High Spatial QualityKeep the image's original size. The image isn't reduced in size during transcoding, and therefore maintains the video's original level of visual clarity.

Deinterlace options

Set Deinterlace to one of the following:

Property

Description

OffThe source isn't interlaced and there's no processing to perform. This is the default setting.
EvenTake the even lines of each frame and interpolate them to create missing content. Drops the odd lines.
OddTake the odd lines of each frame and interpolate them to create missing content. Drops the even lines.

Additional resources