Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Cannot transcode VP8 webm file

Discussion in 'Audio & Video' started by DevDunk, Nov 2, 2023.

  1. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,152
    I want to use a video with transparancy on android.
    I got the video (webm format, VP8 encoding with virbis audio encoding) exported via premere.
    In windows everything works great.

    On android the transparency does not work and the audio is garbage.
    According to the docs android does not support vp8 with transparency, so I need to encode it.

    The thing is, when I press apply after enabling transcoding for android, I get errors. Using Unity 2022.3.12


    Error:

    VideoClip import error for Assets/Video/Workout/01 Introduction.webm
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    WindowsVideoMedia error 0xc00d36b4 while reading D:/Game Dev/Unity/VR Body Fitness/Temp/importedVideoClip.m4v
    Context: IMFSinkWriter::SetInputMediaType
    Error details: The data specified for the media type is invalid, inconsistent, or not supported by this object.
    Track types:
    Video Track, type: H264



    Transcode settings: upload_2023-11-2_21-12-25.png

    Normal: upload_2023-11-2_21-12-40.png
     
    kdchabuk likes this.
  2. kdchabuk

    kdchabuk

    Joined:
    Feb 7, 2019
    Posts:
    52
    Could you please share any more details of the video that works for you?
    I have been unable to import any Webm+VP8 video that has transparency. Mine are encoded with libvpx. Perhaps Unity only accepts them from Premiere?
    Unity simply says "VideoClip import error". It cannot be played in the editor at all.
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,152
    I used the webm plugin for premiere.
    For android if I select VP8 as codec it works with low res and low fps.
    For compatibility sake I switched to h264 30 fps with a green screen shader
     
    kdchabuk likes this.