问题
I am using HEVC Video Extensions in order to decode video on my UWP video app. The problem is that the HEVC app takes so much memory during playback that I am unable to play large 4k files without crashing.
If I use the HEVC hardware only I am able to have better use of memory but limited in 4k on it.
I have tried HEVC Extension and tried to see if there is garbage cleanup I can do but have not been successful in lowering the memory
Just setting my video like this:
MediaSource ams_02 = MediaSource.CreateFromStorageFile(fileHere_02);
elementToSet.Source = ams_02;
Memory Should be handled better in order to create possible playback on a 4k,2+ hour movie without running out of memory.
Thank you
来源:https://stackoverflow.com/questions/58600214/hevc-video-extensions-keep-taking-memory-until-uwp-app-crashes