Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Odd Media Foundations bug

$
0
0
Hi Guys, I am presently trying to render a video frame to a quad in DirectX 11 using Microsoft Media Foundations. But I am having a problem with 'TransferVideoFrame'. m_spMediaEngine->TransferVideoFrame(texture, rect, rcTarget, &m_bkgColor); The call keeps returning 'invalid parameter'. Some googling revealed this - https://stackoverflow.com/questions/15711054/how-do-i-grab-frames-from-a-video-stream-on-windows-8-modern-apps Which explains that there is (was??) a bug with the NVidia drivers back in 2013. Other searches say this bug was fixed. The very odd thing is, if I run the application through Visual Studio Graphical debugger the video renders perfectly to the quad with no errors, so this would suggest that my code is sound. I can't do as the link suggests above and try to create the device as 9_x, as this is an extension that I am creating for GameMaker 2 and I don't have access to renderer creation (only the device handle - which is fine most of the time). I am presently downloading VS 2017 to see if it behaves better with more recent SDK's (as I am currently using VS 2015). Thanks in advance

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>