Search Issue Tracker
Third Party Issue
Votes
0
Found in
2019.3.0a9
2020.1
Issue ID
1218728
Regression
Yes
Crash on DllGetActivationFactory when playing videos encoded with HEVC (H.265) [Awaiting 3rd party fix, workaround available]
Edited to add (23/09/2020) - Nothing to fix in Unity, waiting on a third party bug fix to be released to production. See workaround in Notes below.
How to reproduce:
1. Open the project link and download "Case_1218728.zip"
2. Open the downloaded project and load the scene "SampleScene"
3. Press Play
Reproducible on: 2019.3.0a9, 2019.3.3f1, 2020.1.0a25
Not reproducible on: 2018.4.18f1, 2019.3.0a8
Could not test with: 2017.4.37f1 (trying to play Video throws and error)
Full stack trace:
0x00007FFAAC8003A7 (hevcdecoder_store) DllGetActivationFactory
0x00007FFAAC7FFFFB (hevcdecoder_store) DllGetActivationFactory
0x00007FFAAC7F388C (hevcdecoder_store) DllGetActivationFactory
0x00007FFAAC7F34EB (hevcdecoder_store) DllGetActivationFactory
0x00007FFAAC7EF955 (hevcdecoder_store) DllGetActivationFactory
0x00007FFAAC7EE3EF (hevcdecoder_store) DllGetActivationFactory
0x00007FFAAC7D11FE (hevcdecoder_store) DllGetActivationFactory
0x00007FFA8301F140 (MFCORE) MFCreateAudioRenderer
0x00007FFA8301EAFA (MFCORE) MFCreateAudioRenderer
0x00007FFA8301F6BD (MFCORE) MFCreateAudioRenderer
0x00007FFACC0A614D (RTWorkQ) RtwqAddPeriodicCallback
0x00007FFAE90C528C (ntdll) RtlRunOnceComplete
0x00007FFAE90A0348 (ntdll) RtlReleaseSRWLockExclusive
0x00007FFAE6E57974 (KERNEL32) BaseThreadInitThunk
0x00007FFAE90BA261 (ntdll) RtlUserThreadStart
Notes:
1. The problem appears to be limited to files encoded with Adobe products.
2. These files also crash Windows' Film&TV application, as well as other applications also using Microsoft Media Foundation.
3. Some videos reproduce the crash instantly, others require entering Play Mode a couple of times.
4. Transcoding the video inside Unity's VideoClip importer (to any of the available codecs) fixes the issue.
To get finer control over the re-encoding workaround, ffmpeg can be used. For example:
C:\Program Files\ffmpeg\bin\ffmpeg.exe -i original_file.mp4 -c:v libx265 -acodec copy fixed_file.mp4
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
- Inconsistent logic on when 'open VFX graph Samples' button appears on Visual Effect Graph in Package Manager
- Unable to dock tabs on panels when non-standard pointers are used (touch-screen, tablet and pen)
- Editor hangs when rendering TMP Text Component with Left and Right Margins set in the Extra Settings
- Occlusion's fields can be set to negative numbers
- Issues with tutorial content in Universal 3D sample
Resolution Note:
As of HEVC Video Extensions version 1.0.41031.0, the issue is now fixed. Updating to the latest version of HEVC Video Extensions should resolved the issue.