Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Android platform Webm Video

Discussion in 'Android' started by hisdsnajdas, Mar 18, 2019.

  1. hisdsnajdas

    hisdsnajdas

    Joined:
    Feb 22, 2019
    Posts:
    2
    If you use a webm video file made with vp8 codec on a Unity Android platform, the alpha channel is removed from the video.
    When you build into an Android app, you have a black background in the alpha portion.

    Unity Document found that Android platform does not support webm video of VP8 codec.
    So you can't use alpha-channel video on Android?

    I'd appreciate it if you could let me know if there's a way
     
  2. Vasak3dfx

    Vasak3dfx

    Joined:
    Aug 31, 2018
    Posts:
    2
    Unity 2019.1.9 also video mp4 file starts working on the mobile android device, the application closes. How to fix this problem
     
  3. JackReivaj

    JackReivaj

    Joined:
    Feb 7, 2021
    Posts:
    33
    Do you found a solution to this?
     
    Eater_Games likes this.
  4. RTuzul

    RTuzul

    Joined:
    Feb 9, 2024
    Posts:
    1
    I recently encountered and overcame this issue. Most of Unity’s supported platforms use a software implementation for decoding transparent webm files but Android is an exception. You must transcode VP8-encoded webM clips for transparency to function on Android.
    Sources: https://docs.unity3d.com/2019.1/Documentation/Manual/VideoSources-FileCompatibility.html
    https://docs.unity3d.com/Manual/VideoTransparency.html

    See this documentation for how you can transcode videos: https://docs.unity3d.com/Manual/class-VideoClip.html