Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Video Unable to play video encoded with HEVC

Discussion in 'Audio & Video' started by RedLagger, Nov 22, 2023.

  1. RedLagger


    Aug 28, 2013
    I've tried several example videos, such as The videos are all encoded with HEVC @ 1920x1080. When I play them in the Unity VideoPlayer component, I get the error:

    Context: Setting media type for first video stream
    Error details: No suitable transform was found to encode or decode the content.
    Track types:
    Audio Track, type: %10%16
    Video Track [1920 x 1088], type: HEVC
    Install HEVC Video Extensions to enable HEVC format support on compatible devices.

    I noticed the videos would not play in Windows Media Player either. So I installed the extension on the first link and the K-Lite Codec pack. Now the videos do play in Windows Media Player, but I still see the same error in Unity.

    I tested with other h.264 videos at the same framerate/resolution and those play fine in Unity, so I've ruled lots of things out, it really seems like it's just the encoding that Unity doens't like. According to the documentation, Unity should support HEVC if the codecs are installed, which they are.

    I am using Unity version 2022.1.24f1.