When I try to import a video file to play in a VideoPlayer component, I get the following errors in the Console:
WindowsVideoMedia error 0xc00d5212 while reading C:/Users/Jonas/OneDrive/Projects/Project1/Assets/Videos/output.mp4
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: U
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
-----------------------------------------------------------
Error while reading movie: C:/Users/Jonas/OneDrive/Projects/Project1/Assets/Videos/output.mp4
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
-----------------------------------------------------------
VideoClip import error for Assets/Videos/output.mp4
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
-----------------------------------------------------------
WindowsVideoMedia error 0xc00d5212 while reading C:/Users/Jonas/OneDrive/Projects/Project1/Assets/Videos/output.mp4
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:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
The video file is just an ordinary H.264/AAC MPEG-4 video file transcoded using ffmpeg. But I also tried the same format and H.264/AAC QuickTime MOV (both rendered from Blender) and AVI (JPEG) from Blender as well.
System Details:
- Unity 2018.4.12f1 (LTS) Personal
- Build target: Android (Minimum API Level 25)
- Windows 7 Home Premium 64 Bit (SP1)
- Blender 2.80
- ffmpeg version N-85588-g6108805
I tried to post this to the Unity Forums before, but as of writing this, the thread has yet to be greenlighted by moderation, so I might as well try posting it here, as you usally get an answer much more quickly