为什么 WPF 的 MediaElement 不显示我的 DivX 视频?

发布于 2024-08-07 05:06:29 字数 336 浏览 3 评论 0原文

我有一些带有 MediaElement 的简单 WPF,通常可以正常工作。 我有一些可以运行的简单 AVI 和 WMV。

我有一个 DivX AVI,它在 Media Player 中工作正常,但在 WPF MediaElement 控件中根本无法渲染。它可以很好地播放音频,但图形大小为零并且不渲染任何视频!

我尝试使用 wpfmediakit.codeplex.com 上的 WPF 媒体工具包并设法从中提取错误:无法从源 Uri 渲染任何流

RenderCapability.Tier 报告 0x00020000(第 2 层) - 显卡应该有能力!

I have some simple WPF with a MediaElement which is, generally, working.
I have some simple AVIs and WMVs which are working.

I have a DivX AVI that works fine in Media Player but doesn't render at all in the WPF MediaElement control. It plays the audio fine, but graphically has zero size and doesn't render any video!

I have tried using the WPF Media Kit at wpfmediakit.codeplex.com and manage to extract an error from that: Could not render any streams from the source Uri.

The RenderCapability.Tier reports 0x00020000 (Tier 2) - the graphics card should be capable!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

乄_柒ぐ汐 2024-08-14 05:06:29

您使用的是 x64 操作系统吗?如果是这样,请将您的应用程序编译为 x86 而不是任何 CPU。这将确保您的应用程序能够加载最有可能的 32 位 DirectShow 过滤器。

Are you on an x64 operating system? If so compile your application as x86 instead of any CPU. This will ensure your application will be able to load what are most likely 32bit DirectShow filters.

深爱成瘾 2024-08-14 05:06:29

您需要使用 WPF 支持的编解码器。 DivX 则不然。

You need to use a codec that is supported under WPF. DivX isn't.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文