문제

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