I would like to count to total number frames in a video after the mediaelement opens. The MediaElement.RenderedFramesPerSecondProperty does not work, when I do this I get an error saying; "System.Windows.Controls.MediaElement does not contain definition for RenderedFramesPerSecondProperty". I am using MediaElement in WPF to play the video.
Thanks!
As per my knowledge there is no way I suppose.
Try with this link to dig in more.
I checked out more and found this solution -
Microsoft provides a free diagnostic tool that will tell you the frame rate at which WPF is updating the screen? I guess if you're not convinced you're getting the framerate you're asking for, then perhaps you might not trust it, but I've found it to be a reliable tool. It's called Perforator, and it's part of the WPF Performance Suite, which you can get by following the instructions here: http://msdn.microsoft.com/library/aa969767
Hope this helps you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.