WPF-在“大致"结束之后,MediaElement帧丢失. 30分钟...? [英] WPF - MediaElement Frame Drop after "roughly" 30 minutes...?

查看:107
本文介绍了WPF-在“大致"结束之后,MediaElement帧丢失. 30分钟...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我在使用WPF MediaElement进行视频播放时遇到了一些麻烦.
在大约30分钟(大约)的视频播放后,它开始丢帧.

使用Haali Media Splitter和ffdShow播放的大多数内容是720p或1080p.我已经尝试了WPFMediaKit和VLC替代方法,如果可能的话,我希望坚持使用MediaElement.

问题?
什么会导致MediaElement在大约半小时后开始掉帧(颤抖)?

这让我难过!如果这一切从一开始就发生,那就更有意义了.任何建议将不胜感激.

亲切的问候,
Alex

Hello All,
I am having some trouble with the Video Playback using the WPF MediaElement.
After about 30 minutes (roughly) of video playback, it starts to drop frames.

Most of the content being played is either 720p or 1080p using Haali Media Splitter and ffdShow. I have tried both the WPFMediaKit and VLC alternatives and would prefer to stick with MediaElement if possible.

Question?
What could cause the MediaElement to start dropping frames (shuddering) after roughly half an hour?

This has got me stumped! It would make much more sense if this happened right from the start. Any suggestions would be greatly appreciated.

Kind Regards,
Alex

推荐答案

媒体元素是一场灾难,尤其是大文件.此外,WPF内存管理也不存在,即使调用GC也不会导致它清除内存并避免崩溃.我建议在导入WPF的winforms控件中使用Windows Media Player控件.
The media element is a disaster, esp for large files. Also, WPF memory management is non existent, even calling the GC will not cause it to clear memory and avoid crashing. I would suggest using the Windows Media Player control in a winforms control that you import in to WPF.


这篇关于WPF-在“大致"结束之后,MediaElement帧丢失. 30分钟...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆