Video import error

This errors I have since 2019.1. Video just not import. I trying different formats, I trying install some codecs, nothing help. Before that, on 2018 everything was fine (with same videofiles).

WindowsVideoMedia error 0xc00d36b9 while reading C:/2019/proj_/Assets/Video.avi

Context: Getting Native Video Media Type
Error details: <Empty>
Track types:
   Video Track [1920 x 1080], type: MP4V
   Video Track [1920 x 1080], type: XVID

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
1 Like

Could you please submit a bug report with a video asset attached that reproduces this behaviour?

Hi id0!

Sorry you’re having trouble with your videos. It’d be very useful for us if you could file a bug with your videos, as Leonhard is recommending, so we can see how best to address this. In your bug report, please tell us what was the working setup you had in Unity 2018 (exact Unity version, Windows version, 3rd party codec download links, etc).

By looking at the error message you posted, I have a few comments that could get you out of trouble for the time being:

  • The meaning of the error message is that when we asked Microsoft Media Foundation to give us information about the first video track in the file, it went through all tracks in the file and ended up not recognizing any of them as being a supported video track type.
  • The movie file has multiple video tracks. Unity only picks up the first one so depending on track order, it will be the one using MP4V codec or the one using the XVID codec. I would suggest not leaving this to chance and just leave the track you want to be used. Furthermore, the unused track will be dormant payload in your game.
  • We recommend using the H.264 codec instead of the ones you have here so if you can either re-generate the files or transcode them into a mp4 containing H.264 (using ffmpeg for example), you may have a better result as this is the most tested scenario with Unity.

But all this being said, thanks for bringing this to our attention. We don’t see these codecs being used much, but if we did something that somehow disables support for them, we should be able to repair this easily.

Dominique
A/V developer at Unity

Thanks for the answer. It’s not that I need video too much, but it’s just works fine in 2018.3.5f1, but not in the 2019.1/2019/2 (I rechecked that just now) Video format is:

General
Complete name               : C:\2019\proj_\New Unity Project\Assets\Video.avi
Format                      : AVI
Format/Info                 : Audio Video Interleave
File size                   : 62.3 MiB
Duration                    : 3 s 800 ms
Overall bit rate            : 138 Mb/s
Writing library             : VirtualDub build 35491/release

Video
ID                          : 0
Format                      : MPEG-4 Visual
Format profile              : Advanced Simple@L5
Format settings             : BVOP1
Format settings, BVOP       : 1
Format settings, QPel       : No
Format settings, GMC        : No warppoints
Format settings, Matrix     : Default (H.263)
Muxing mode                 : Packed bitstream
Codec ID                    : XVID
Codec ID/Hint               : XviD
Duration                    : 3 s 800 ms
Bit rate                    : 138 Mb/s
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate                  : 60.000 FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits

But as I said I trying other formats, and non of them working. I’m on Windows 7 and I have K-lite codec pack (if it’s important) I will try to create bug report later.

Create a bug report 1133061_r13ej3uiq5b6nbjt

OK, thanks id0, we are looking at this right now and will keep you posted.

Dominique

Hi again id0!

I’ve just fixed the issue you reported and started the reviewing/testing process for inclusion in 2019.2 and 2019.1. The issue is specific to Windows 7 and indeed as you have pointed out is independent of the video codec being used. It’s caused by an important behaviour difference in Microsoft Media Foundation between Windows 7 and >=8.

You can temporarily use webm videos on this platform as the implementation is completely separate, but we’ll do our best to get the fix backported to 2019.1 as soon as possible.

Sorry for the inconvenience and again, thanks a lot from pointing this out.

Dominique

2 Likes

I am adding mp4 video with AR application (vuforia) in Unity 2019.1.9 but the application closes as soon as the video starts.
I could not solve this problem, please offer an immediate solution

New
I am adding mp4 video with AR application (vuforia) in Unity 2019.1.10
and the application closes as soon as the video starts.

please solve this problem