Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.2.0b5
Issue ID
1159253
Regression
No
[Video] "VideoClip import error" is thrown on importing an mp4 of different byte stream
"VideoClip import error" is thrown on importing an mp4 of different byte stream. The attached video file is an mp4 which works perfectly with web browsers and VLC media player.
Steps to reproduce:
1) Create a new project
2) Import attached video
Actual result: "VideoClip import error" is thrown.
Expected result: Video should be imported without throwing any errors.
Reproducible in: 2019.3.0a5, 2019.2.0b5, 2018.3.7f1, 2017.4.f1
Environment: Both Windows and Mac.
Note:The video is captured from a screen gabbing tool called S-recorder.
Stack trace:
On Windows:
WindowsVideoMedia error 0xc00d36c4 while reading F:/Delete/2019.2.0b5/Assets/2019.3.0a5.mp4
Context: CreateObjectFromByteStream
Error details: The byte stream type of the given URL is unsupported.
Track types:
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
-----------------------------------------------------------------------
WindowsVideoMedia error 0xc00d36c4 while reading F:/Delete/2019.2.0b5/Assets/2019.3.0a5.mp4
Context: CreateObjectFromByteStream
Error details: The byte stream type of the given URL is unsupported.
Track types:
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
---------------------------------------------------------------------
Error while reading movie: F:/Delete/2019.2.0b5/Assets/2019.3.0a5.mp4
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
-----------------------------------------------------------------------
VideoClip import error for Assets/2019.3.0a5.mp4
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
-----------------------------------------------------------------------
WindowsVideoMedia error 0xc00d36c4 while reading F:/Delete/2019.2.0b5/Assets/2019.3.0a5.mp4
Context: CreateObjectFromByteStream
Error details: The byte stream type of the given URL is unsupported.
Track types:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
-----------------------------------------------------------------------------
On MAC:
Error 'Cannot Open' while reading video frame from /Users/macmini6/Downloads/Unity Android Plugin Example/Assets/Sidebar.mp4
Error details:
Error Domain=AVFoundationErrorDomain Code=-11829 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media may be damaged., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x7fbfbe7534e0 {Error Domain=NSOSStatusErrorDomain Code=-12137 "(null)"}}
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Specular lighting visible in a camera with Path Tracing when Preserve specular lighting is disabled in observed material
- Cinemachine package throws CS1061 errors in the Console when installed in a project that has HDRP and URP installed
- Editor.log file size grows rapidly when a scene exceeds the "Maximum Shadow on Screen" limit setting in the HDRP Asset
- Player build freezes after calling Application.Quit() when the scripting backend is set to IL2CPP
- Texture is not applied on a Custom Render Texture when a Cubemap is selected as the texture
Resolution Note:
Microsoft Media Foundation cannot decode this movie file (e.g.: cannot be played in Windows Media Player), so Unity is also limited by this.