How to disable video acceleration programmatically

I use Windows Media Player OCX in a program running on hundreds of computers (dedicated).

I found that when video acceleration is turned on to “full”, on some computers the video will not play correctly, with green squares between the films and so on. Turn the acceleration to "None" and everything is fine.

This program runs on ~ 800 computers that automatically update my program. Therefore, I want to add to the launch of my program that it disables video acceleration.

The question is how to programmatically disable video acceleration?

All computers are running XP and at least a second service pack. It would take me years to manually log in to all these computers and change these settings, so I want the program to be able to do this automatically for me.

+3
source share
2 answers

Using the proposed process of starting procmon and filtering out unnecessary data, I was able to detect 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, install

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

to 0 and set

  • UseFullScrMS
  • DontUseFrameInterpolation

to 1.

+1
source

, . - , . Media Player 9, 10 11 REG script, .

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

, , . , , , ( .)

, , - Intel, , 800 , .

0

Source: https://habr.com/ru/post/1747189/


All Articles