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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.