如何以编程方式关闭视频加速

发布于 2024-09-03 09:00:49 字数 320 浏览 4 评论 0原文

我在数百台计算机(专用)上运行的程序中使用 Windows Media Player OCX。

我发现当视频加速打开到“全”时,在某些计算机上会导致视频无法正确播放,电影之间出现绿色方块等。将加速度设置为“无”,一切都很好。

该程序在大约 800 台计算机上运行,​​它们将自动更新我的程序。所以我想在我的程序中添加启动项以关闭视频加速。

问题是,如何以编程方式关闭视频加速?

所有计算机都运行 XP 和至少第二个服务包。 我需要很长时间才能手动登录所有这些计算机并更改该设置,这就是为什么我希望该程序能够自动为我完成此操作。

I'm using the Windows Media Player OCX in a program runned on hundreds of computers (dedicated).

I have found out that when video acceleration is turned on to "full", on some computers it will cause the video to fail to play correct, with green squares between movies and so on. Turn the acceleration to "None" and everything is fine.

This program is runned on ~800 computers that will autoupdate my program. So I want to add to the startup to my program that it turns off the video acceleration.

The question is, how do I turn off video Acceleration programmatically?

All computers are running XP and at least the second service pack.
It would take me ages to manually logg in to all those computers and change that setting so thats why I want the program to be able to do it automagically for me.

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

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

发布评论

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

评论(2

囚你心 2024-09-10 09:00:49

使用运行 procmon 的建议过程并过滤掉不必要的数据,我能够确定该值更改时注册表中的更改:

完全视频加速:

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences\VideoSettings]
"PerformanceSettings"=dword:00000002
"UseVMR"=dword:00000001
"UseVMROverlay"=dword:00000001
"UseRGB"=dword:00000001
"UseYUV"=dword:00000001
"UseFullScrMS"=dword:00000000
"DontUseFrameInterpolation"=dword:00000000
"DVDUseVMR"=dword:00000001
"DVDUseVMROverlay"=dword:00000001
"DVDUseVMRFSMS"=dword:00000001
"DVDUseSWDecoder"=dword:00000001

无视频加速:

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences\VideoSettings]
"PerformanceSettings"=dword:00000000
"UseVMR"=dword:00000000
"UseVMROverlay"=dword:00000000
"UseRGB"=dword:00000000
"UseYUV"=dword:00000000
"UseFullScrMS"=dword:00000001
"DontUseFrameInterpolation"=dword:00000001
"DVDUseVMR"=dword:00000000
"DVDUseVMROverlay"=dword:00000000
"DVDUseVMRFSMS"=dword:00000000
"DVDUseSWDecoder"=dword:00000000

因此,简而言之,设置

  • PerformanceSettings
  • UseVMR
  • UseVMROverlay
  • UserRGB
  • UseYUV
  • DVDUseVMR
  • DVDUseVMROverlay
  • DVDUseVMRFSMS
  • DVDUseSWDecoder

设置为 0,并将

  • UseFullScrMS
  • DontUseFrameInterpolation

设置为 1。

Using the suggested process of running procmon, and filtering out unnecessary data, I was able to determine the changes in the registry when this value changed:

Full Video Acceleration:

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences\VideoSettings]
"PerformanceSettings"=dword:00000002
"UseVMR"=dword:00000001
"UseVMROverlay"=dword:00000001
"UseRGB"=dword:00000001
"UseYUV"=dword:00000001
"UseFullScrMS"=dword:00000000
"DontUseFrameInterpolation"=dword:00000000
"DVDUseVMR"=dword:00000001
"DVDUseVMROverlay"=dword:00000001
"DVDUseVMRFSMS"=dword:00000001
"DVDUseSWDecoder"=dword:00000001

No Video Acceleration:

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences\VideoSettings]
"PerformanceSettings"=dword:00000000
"UseVMR"=dword:00000000
"UseVMROverlay"=dword:00000000
"UseRGB"=dword:00000000
"UseYUV"=dword:00000000
"UseFullScrMS"=dword:00000001
"DontUseFrameInterpolation"=dword:00000001
"DVDUseVMR"=dword:00000000
"DVDUseVMROverlay"=dword:00000000
"DVDUseVMRFSMS"=dword:00000000
"DVDUseSWDecoder"=dword:00000000

So, in short, set

  • PerformanceSettings
  • UseVMR
  • UseVMROverlay
  • UserRGB
  • UseYUV
  • DVDUseVMR
  • DVDUseVMROverlay
  • DVDUseVMRFSMS
  • DVDUseSWDecoder

to 0, and set

  • UseFullScrMS
  • DontUseFrameInterpolation

to 1.

七婞 2024-09-10 09:00:49

看来你不是唯一有这个问题的人。这是博客的链接 - 作者通过降低硬件加速级别解决了他的问题。在 Media Player 9、10 和 11 上使用 REG 脚本进行测试以设置适当的设置。

http:// /thebackroomtech.com/2009/04/15/global-fix-windows-media-player-audio-works-video-does-not/

除了应用此修复程序之外,您还可以检查受影响的计算机是否有最新的驱动程序和编解码器版本。最后,如果可能,您可以考虑将内容重新编码为不会产生显示问题的格式(如果错误与编解码器相关)。

使用硬件加速肯定更节能 - 根据 英特尔报告,在没有加速的情况下,消耗的能源几乎是原来的两倍,而且由于有 800 台机器,因此有理由寻求绿色解决方案。

It seems you're not the only one with this problem. Here's a link to a blog - the author solves his problem by lowering the hardware acceleration level. Tested on Media Player 9, 10 and 11 with REG script to set appropriate settings.

http://thebackroomtech.com/2009/04/15/global-fix-windows-media-player-audio-works-video-does-not/

As well as applying this fix, you might check the affected machines have the latest drivers and codec versions. Finally, if possible, you may consider re-coding the content to a format that doesn't produce the display problems (if the bug is codec related.)

Using hardware acceleration is certainly more energy-efficient - according to this Intel report, almost twice as much energy is used without acceleration, and as there are 800 machines, there's reason to seek out a green solution.

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