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
- Sprite Masks affect Sprite Renderers outside their range when a Light2D is present with specific Target Sorting Layers selected
- URP Lens Flare is rendered in the wrong position when Render Graph Compatibility Mode is enabled and Render Scaling is not 0
- Editor crashes on DrvPresentBuffers when loading RenderDoc while using OpenGLES 3.0 or OpenGLES 2.0 Graphics API
- [Test Runner] Incorrect name under Window > Panel after project restart
- [iOS] Crash when using fallback fonts created at runtime
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.