Guys, I m having an issue with MPC HC running in combination with a .vbs script of ReClock for autochanging the refreshrate. Ill try to explain what the problem is:
ReClock has the option to call in a .vbs script. The purpose of this is to automatically change the refresh rate of my video card output. So, in order to do this there a several options. You can do this for example with Powerscript and refer the script to Powerscript. However, powerstrip is not compatible with the latest videocards like mine. So then there is a second scenario where you make profiles with the ATI CCC and let the script 'see' these custom made profiles. So, I ve made a RunEvent.vbs script that calls in my ATI profiles. It runs perfectly and my video card is switching automatically now when switching to a movie with a different refresh rate. But there is still one important bug for me:
I use Media Player Classic, the Home Cinema version. I use VMR9 renderless because I need this. Why? Because when using VMR9 renderless MPC HC made an option called 'Direct3D Fullscreen (Remove Tearing)'. I HAVE to use this feature of MPC HC in order to get perfect tearing free playback (let s not begin to argue about this because I really need this feature, believe me, I ve done my homework :agree:). BUT when I use this option the script (or MPC HC, that I don t know) get screwed up or something and I get a black screen. I do hear the audio however. When I do not use the remove tearing option everything runs fine (audio+video) except for the tearing ;).
Is there a way to solve this problem? Has it got something to do with the script? I think it is the combination of the script with MPC HC but don t know how to figure out what is wrong.
Maybe I can get some input in this topic.
Here is the script that I m using:
[QUOTE][SIZE="1"]'ATI Profile Version - Sets refresh rate using profile interface (CLI).
' Check for args/call
Set objArgs = WScript.Arguments
If objArgs.Count < 10 Then
MsgBox "Bad argument count !", MB_OK, "ReClock Event Notification"
WScript.Quit 1
End If
' If you need to debug, replace false with true in the following line
if false Then MsgBox _
eventName & " " & _
mediaType & " " & _
soundMode & " " & _
currentMonitor & " " & _
totalMonitorCount & " " & _
currentResolution & " " & _
currentRefreshRate & " " & _
originalPlaybackSpeed & " " & _
currentPlaybackSpeed, _
MB_OK, "ReClock Event Notification"
newTimings = ""
If eventName = "YELLOW" Then
If soundMode = "PCM" Then
' Call the profile that match best what we need in PCM mode
Select Case mediaType & ":" & currentResolution
Case "CINEMA:1920x1080"
If currentRefreshRate <> "25" Then newtimings = "25"
Case "CINEMA:1920x1080"
If currentRefreshRate <> "24" Then newtimings = "24"
Case "NTSC:1920x1080"
If currentRefreshRate <> "30" Then newTimings = "30"
End Select
ElseIf soundMode = "SPDIF" Then
' In SPDIF mode we need an exact multiple to minimize the drops/repeats
' Note: be careful in NTSC mode, because if "currentRefreshRate" is already "60"
' when we go here then we won't switch but it may be 60 "bad" hz instead of 59.94 "wanted" hz
' The same problem exists for NTSC film (23.976fps)
' A solution is to force settings in the GREEN icon notification, but that would mean a pause
' each time we play a file with SPDIF ...
' That's why we use 59.94 hz and 71.928 hz for PCM too so we will never user 60 and 72 hz
Select Case currentResolution & "x" & originalPlaybackSpeed
Case "1920x1080x23976"
If currentRefreshRate <> "24" Then newTimings = "24"
Case "1920x1080x25000"
If currentRefreshRate <> "25" Then newTimings = "25"
Case "1920x1080x29970"
If currentRefreshRate <> "30" Then newTimings = "30"
End Select