DirectShow IVideoWindow 的宽度不能超过 4096px

DirectShow IVideoWindow can't be wider than 4096px

我有一个 C# 应用程序,它使用 DirectShow 显示播放视频剪辑。我们最近尝试播放一个 9600x1080 像素的视频,但它无法显示。 DirectShow 发出所有事件。

我们使用 K-Lite 编解码器包 (1295) 并利用 ffdshow libx264 作为编解码器和视频渲染器。使用相同渲染器的 Media Player Classic 可以很好地播放剪辑。我们应用程序的最新版本使用 DirectShow.NET 而旧版本直接调用 DirectShow 接口。我们的应用程序的新旧版本都有相同的问题。

经过一些实验,我们发现了以下内容:

在 Windows 10、64 位上测试。

我们可以做些什么来解决这个问题?

关键部分是您使用的视频渲染器。即使您没有提到,您也可能只是使用默认设置,这是窗口模式下的 VMR-7。这会让您获得一个陈旧的遗留组件,但您遇到了限制。

您有兴趣更新您的应用程序以使用 EVR。

Choosing the Right Video Renderer

[…]

In Windows Vista and later, applications should use the EVR if the hardware supports it.

[…] methods use the VMR-7 by default. […] The EVR and VMR-9 are never the default renderers.