Topic: mp4-h264 video encoding (Media Foundation) falls on windows 7
Greetings, Took with MSDN the code which produces conversion of video from AVI in MP4 using Media Foundation API. All perfectly works on Windows 10, but at start on Windows 7 application leaves in an infinite loop. After clarified that the problem begins after call IMFMediaSession:: SetTopology () which in turn causes callback Invoke (IMFAsyncResult *pResult) a method and transfers to it IMFMediaEvent which returns "-1072868846" from method GetStatus (). I.e. there is an error at topology setting. But that with it to do I can not understand yet further. Where to look that for errors this method return in can did not find and the reason of such behavior in Windows 7. I will be grateful, if who than helps and directs on the decision. The idea of the code is taken from here: https://msdn.microsoft.com/en-us/librar p/ff819476 (v=vs.85).aspx And it is mine cpp: https://gist.github.com/anonymous/8d780 b836276d21 Compiled in a Visual Studio 2017. Parameters at the program input.avi output.mp4 0 0. Thanks!