Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Video Unable to play video encoded with HEVC

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

  1. RedLagger

    RedLagger

    Joined:
    Aug 28, 2013
    Posts:
    1
    I've tried several example videos, such as https://filesamples.com/formats/hevc. 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.
    https://www.microsoft.com/en-ca/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq
    https://www.microsoft.com/en-us/p/hevc-video-extensions/9nmzlz57r3t7


    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.