Supported codecs for transparent videos (per-pixel alpha)
Choose compatible video codecs to ensure per-pixel alpha transparency in your Unity applications.
Read time 2 minutesLast updated 13 days ago
Choose compatible video codecs to ensure per-pixel alpha transparency in your Unity applications.
Certain video codecs support the use of transparency on individual pixels of a video (per-pixel alpha).
This information covers the transparent video codecs that Unity supports. For information about transparency types and how to set up per-pixel alpha videos, refer to Introduction to video transparency support in Unity and Set up transparent videos in Unity.
Supported per-pixel alpha codecs
Unity supports two codecs that have per-pixel alpha:
Apple ProRes 4444
The Apple ProRes 4444 codec is a high-quality version of Apple ProRes for 4:4:4:4 image sources, including alpha channels.
Some key information about this codec:
- Provides the same level of visual fidelity as the source video.
- Most Apple platforms have support for it.
- Typically produces large files, which increases storage and bandwidth requirements.
When you import a video that uses this codec, enable both the Transcode and Keep Alpha options in the Video Clip Importer.
If your video has the Apple ProRes codec but you don't transcode the file, your target platform might not support the video. For more information about the process, refer to How Unity transcodes videos with alpha values.
WebM with VP8
A WebM file that uses the VP8 video codec stores alpha information natively. Most Unity-supported platforms can read transparent videos in this format.
Unity usually only supports the VP8 video codec and Vorbis audio codec for WebM videos.
If your VP8 video has another audio codec, the audio might not be audible, and Unity doesn't support the import of VP9 videos. However, if your WebM file uses the VP9 video or Opus audio codecs, there are some exceptions for certain platforms. For more information, refer to WebM videos - Supported video and audio codecs.