I am trying to play 4k content using directshow graph and we use custom Texture Renderer . I used LAV Source/LAV Video Decoder and FIle Source ->Elecard Mp4->Core AVC Decoder combination as well .
Our application steps are as below (Multithreaded )
1 .Create a Graph 2. Create 4 textures for each video using Directx API in a renderer based on Frame Size from CheckMediaType Function when correct format is accepted 3.Wait for current playing content to end and graph resources will be cleared when its finished 4.Run The Graph 5. Again ready the next playing content 5 seconds before the content is about to finish
My application is working fine with single instance of 4k and multiple instances of FHD videos without any issue. But when I Play Multiple instances of 4k videos(For multiple screens ) First time it loads all the videos and plays fine .But most of the time next playing content throws error 0x8007000e - E_OUTOFMEMORY either in createtexture function or mediacontrol::Pause /Run . But I can see plenty of memory left . Graphstudionext works fine with 4 4k graph instances without any issues . I have 4Gb Raedon graphic card windows10 with 8GB RAM with i7. I am using directx 9 .I am stuck ,How to debug and find whats wrong with the application
User contributions licensed under CC BY-SA 3.0