Domanda

I want to obtain the frames per second of a MP4 video file. Since MP4 is not supported by DirectShow, I am looking into other alternatives such as Media Foundation. The problem is that after hours of google, I wasn´t able to find an example where to learn how to use MediaFoundation. All I have found is in C++, I use VB or C#, and never understood how to do this simple task.

È stato utile?

Soluzione

Windows 7 (and possibly Windows Vista as well) provides you with shell API to access media file properties. This includes frame rate of video stream in MPEG-4 files (.MP4), so to get the frame rate you can access PKEY_Video_FrameRate property in the property store via IPropertyStore interface.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top