1

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!

2

Re: mp4-h264 video encoding (Media Foundation) falls on windows 7

Try on pure win7

3

Re: mp4-h264 video encoding (Media Foundation) falls on windows 7

Hello, reversecode, you wrote: R> try on pure win7 And what it should give? We admit it even . to understand in what the reason?

4

Re: mp4-h264 video encoding (Media Foundation) falls on windows 7

The topology of codecs can be already twisted it change also everyones  fire wood  there was what that the utility... I do not remember, it was possible to look at this topology, even to test

5

Re: mp4-h264 video encoding (Media Foundation) falls on windows 7

At me on Windows 7, mp4 and wmv files will normally be recoded, avi a suitable format did not find, all files which are  are encoded xvid and , by call MFCreateTranscodeTopology (...) returns MF_E_TOPO_CODEC_NOT_FOUND, can put in support avi a format

6

Re: mp4-h264 video encoding (Media Foundation) falls on windows 7

Hello, alexander_r, you wrote: _> At me on Windows 7, mp4 and wmv files will normally be recoded, avi a suitable format did not find, all files which are  are encoded xvid and  And can try at itself here this avi  https://drive.google.com/file/d/1A1tCHa … p=sharing?

7

Re: mp4-h264 video encoding (Media Foundation) falls on windows 7

Hello, alexander_r, you wrote: _> At me on Windows 7, mp4 and wmv files will normally be recoded, avi a suitable format did not find, all files which are  are encoded xvid and , by call MFCreateTranscodeTopology (...) Returns MF_E_TOPO_CODEC_NOT_FOUND, can put in support avi a format Yes really problem in avi. And it is interesting, why on Windows 7 problem with conversion AVI of the container.

8

Re: mp4-h264 video encoding (Media Foundation) falls on windows 7

Hello, C0x, you wrote: C0x> Hello, alexander_r, you wrote: _>> At me on Windows 7, mp4 and wmv files will normally be recoded, avi a suitable format did not find, all files which are  are encoded xvid and  C0x> And can try at itself here this avi  https://drive.google.com/file/d/1A1tCHa … p=sharing? Does not work pSession-> GetEncodingPosition (&pos) returns MF_E_CLOCK_NO_TIME_SOURCE

9

Re: mp4-h264 video encoding (Media Foundation) falls on windows 7

Apparently a problem in that that initial test.avi in format RGB, and for coding in h264 is necessary YUV, accordingly here and MF_E_TOPO_CODEC_NOT_FOUND, I tried avi from video mpeg4 (DivX), all works, . it is necessary to adjust in addition conversion YUV-> RGB https://social.msdn.microsoft.com/Forum … evelopment