質問

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.

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top