如何以编程方式关闭视频加速 [英] How to turn off Video Acceleration programmatically

查看:27
本文介绍了如何以编程方式关闭视频加速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这个程序在大约 800 台计算机上运行,​​这些计算机会自动更新我的程序.所以我想在我的程序的启动中添加它关闭视频加速.

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?

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

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.

推荐答案

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

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:

全视频加速:

[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

所以,简而言之,设置

  • 性能设置
  • 使用VMR
  • 使用VMROverlay
  • 用户RGB
  • 使用YUV
  • DVDUseVMR
  • DVDUseVMROverlay
  • DVDUseVMRFSMS
  • DVDUseSWDecoder

设为0,并设置

  • 使用FullScrMS
  • DontUseFrameInterpolation

到 1.

这篇关于如何以编程方式关闭视频加速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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