Automatic Refreshrate Changer (2 Viewers)

mhunter

Portal Member
November 20, 2006
35
0
Home Country
Can we use 12 Noon Display Changer?

Hi guys,

I haven't tried it out yet but noticed that people could not use PowerStrip on Vista x86/x64 for 8xxx series Nvidia cards and were looking for alternatives - so I found this tool called "Display Changer" and tried it out.

It's freeware and it worked fine for changing refresh rate on my 1080p TV and 8400GS from 50hz to 24hz. It's a simple command line tool (with a windows version which doesn't open any command line window) and you just add "-refresh" as a parameter and away you go.

12noon

If I've got the gist of things correct, we can configure this application if we need to right?

Anyway haven't got time to play with this now.... just thought i'd let y'all know in case it helps.

Matt.
 

zeebee

MP Donator
  • Premium Supporter
  • August 10, 2007
    433
    16
    I've reinstalled my computer to vista and took the latest SVN. Is this plugin still usable for this? Since it replaces the main exe-File...
     

    zeebee

    MP Donator
  • Premium Supporter
  • August 10, 2007
    433
    16
    Thanks, tried it and still works like charme. Once again: one of the best plugins that I've missed in every application so far :cool:
     

    AberDino

    MP Donator
  • Premium Supporter
  • February 17, 2005
    246
    34
    Kincardineshire
    Home Country
    Scotland Scotland
    Initially I used v0.1 of this plugin with SVN release 20078, and all was extremely well.

    Over the weekend I upgraded to v0.3 of this plugin with SVN release 20268, and I also upgraded my Catalyst drivers to v8.9. Unfortunately, this has broken my setup. It switches fine for the first video that I play, but then when I stop playback a directx error occurs when switching back to the default refresh rate and all further refresh rate changes fail.

    Some log entries when playing the first file:
    2008-09-24 22:02:16.128917 [Info.][MPMain]: g_Player.Play(M:\Videos\South Park\South Park - 613 - The Return of the Fellowship of the Ring to the Two Towers.avi)
    2008-09-24 22:02:17.661078 [Info.][MPMain]: g_Player framerate on file M:\Videos\South Park\South Park - 613 - The Return of the Fellowship of the Ring to the Two Towers.avi is 14.985
    .....
    2008-09-24 22:02:21.006818 [Info.][MPMain]: D3D: BuildPresentParamsFromSettings using 60Hz as RefreshRate
    ....
    2008-09-24 22:02:37.641714 [Info.][MPMain]: g_Player changing back refreshrate to 25hz
    2008-09-24 22:02:37.657348 [Info.][MPMain]: g_Player running external job in order to change refreshrate C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p25"
    2008-09-24 22:02:37.938765 [Info.][MPMain]: g_Player running external job completed
    2008-09-24 22:02:37.938765 [Debug][MPMain]: Windowmanager: Goto previous window
    2008-09-24 22:02:37.938765 [Debug][MPMain]: Window: MediaPortal.GUI.Video.GUIVideoFullscreen deinit
    2008-09-24 22:02:37.938765 [Debug][MPMain]: TextureManager: CleanupThumbs()
    2008-09-24 22:02:37.970034 [Debug][MPMain]: Window: MediaPortal.GUI.Video.GUIVideoFiles init
    2008-09-24 22:02:39.111338 [Warn.][MPMain]: Main: ***** OnDeviceLost *****
    2008-09-24 22:02:39.126972 [Info.][MPMain]: Main: Device lost - Error in the application.
    -2005530520 (D3DERR_DEVICELOST)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, IntPtr overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, Control overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.Present()
    at MediaPortalApp.Render(Single timePassed)
    2008-09-24 22:02:39.126972 [Debug][MPMain]: d3dapp: RecoverDevice called
    2008-09-24 22:02:39.126972 [Debug][MPMain]: d3dapp: DeviceNotResetException
    2008-09-24 22:02:39.126972 [Warn.][MPMain]: d3dapp: Resetting DX9 device

    Play the next file:
    2008-09-24 22:02:58.466601 [Info.][MPMain]: g_Player.Play(M:\Videos\Lost\Series4\Lost.S04E00.Past.Present.and.Future.REAL.REPACK.HDTV.XviD-XOR.avi)
    2008-09-24 22:02:58.466601 [Info.][MPMain]: g_Player.Play - waited 10s for refreshrate change, but it never took place (check your config). Proceeding with playback.

    I didn't change the refresh rate changer config when I upgraded, and the ATI profiles work fine when I manually load them:
    <entry name="autochangerefreshrate">yes</entry>
    <entry name="cinema_ext">C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p24"</entry>
    <entry name="pal_ext">C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p25"</entry>
    <entry name="ntsc_ext">C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p30"</entry>
    <entry name="tv_ext">C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p25"</entry>
    <entry name="cinema_fps">23.976;24</entry>
    <entry name="pal_fps">25</entry>
    <entry name="ntsc_fps">29.97;30</entry>
    <entry name="tv_fps">25</entry>
    <entry name="cinema_hz">24</entry>
    <entry name="pal_hz">25</entry>
    <entry name="ntsc_hz">30</entry>
    <entry name="tv_hz">25</entry>
    <entry name="default_hz">pal_hz</entry>
    <entry name="use_default_hz">yes</entry>
    <entry name="devicereset">yes</entry>

    Any suggestions as to why this might be happening, and how it could be fixed? I can post a full mediaportal.log if required.

    UPDATE: My initial diagnostics were incorrect. Any attempt to change the refresh rate (including the first one) fails with a directx error. Also, I've downgraded the Catalyst drivers back to v8.8, and I'm still experiencing the same problem, so the ATI software can be ruled out.
     

    Seeco

    Portal Pro
    October 15, 2007
    241
    7
    Linköping
    Home Country
    Sweden Sweden
    I just stumbled over this thread, what a great idea! I've been looking for a thing like this for a long time but the only solution I have found depended on a Reclock script and Powerstrip (I use an Nvidia card so no Powerstrip for me).

    I have just begun eperimenting with this refresh rate changer, and it's turning out pretty good. I took a chance and tried using the "Display Changer" that mhunter mentioned earlier in the thread and it's acutally working really nicely. Refresh rate changing works for both 24fps, 50fps and 60fps material.

    One thing doesn't work though. When I enter "My TV", nothing happens with the refresh rate at all. It seems that the script isn't triggered by the TV stream. Does nobody else have this problem? I really don't know what to do about it. Is the process of starting to watch TV in any way different from starting a video file?

    Also, are you supposed to install the latest svn after installing the files for this plugin? Should the svn go over the plugin?

    EDIT: I also tried using Nvidia "profiles" (although they're not really profiles are they?) to change the refresh rate. This also worked pretty good, actually I think this is slightly faster than using Display Changer. Unfortunately the effect for TV is the same as before - that is, no effect at all.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    try

    ...
    <entry name="devicereset">no</entry>
    ...

    /gibman

    Initially I used v0.1 of this plugin with SVN release 20078, and all was extremely well.

    Over the weekend I upgraded to v0.3 of this plugin with SVN release 20268, and I also upgraded my Catalyst drivers to v8.9. Unfortunately, this has broken my setup. It switches fine for the first video that I play, but then when I stop playback a directx error occurs when switching back to the default refresh rate and all further refresh rate changes fail.

    Some log entries when playing the first file:
    2008-09-24 22:02:16.128917 [Info.][MPMain]: g_Player.Play(M:\Videos\South Park\South Park - 613 - The Return of the Fellowship of the Ring to the Two Towers.avi)
    2008-09-24 22:02:17.661078 [Info.][MPMain]: g_Player framerate on file M:\Videos\South Park\South Park - 613 - The Return of the Fellowship of the Ring to the Two Towers.avi is 14.985
    .....
    2008-09-24 22:02:21.006818 [Info.][MPMain]: D3D: BuildPresentParamsFromSettings using 60Hz as RefreshRate
    ....
    2008-09-24 22:02:37.641714 [Info.][MPMain]: g_Player changing back refreshrate to 25hz
    2008-09-24 22:02:37.657348 [Info.][MPMain]: g_Player running external job in order to change refreshrate C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p25"
    2008-09-24 22:02:37.938765 [Info.][MPMain]: g_Player running external job completed
    2008-09-24 22:02:37.938765 [Debug][MPMain]: Windowmanager: Goto previous window
    2008-09-24 22:02:37.938765 [Debug][MPMain]: Window: MediaPortal.GUI.Video.GUIVideoFullscreen deinit
    2008-09-24 22:02:37.938765 [Debug][MPMain]: TextureManager: CleanupThumbs()
    2008-09-24 22:02:37.970034 [Debug][MPMain]: Window: MediaPortal.GUI.Video.GUIVideoFiles init
    2008-09-24 22:02:39.111338 [Warn.][MPMain]: Main: ***** OnDeviceLost *****
    2008-09-24 22:02:39.126972 [Info.][MPMain]: Main: Device lost - Error in the application.
    -2005530520 (D3DERR_DEVICELOST)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, IntPtr overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, Control overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.Present()
    at MediaPortalApp.Render(Single timePassed)
    2008-09-24 22:02:39.126972 [Debug][MPMain]: d3dapp: RecoverDevice called
    2008-09-24 22:02:39.126972 [Debug][MPMain]: d3dapp: DeviceNotResetException
    2008-09-24 22:02:39.126972 [Warn.][MPMain]: d3dapp: Resetting DX9 device

    Play the next file:
    2008-09-24 22:02:58.466601 [Info.][MPMain]: g_Player.Play(M:\Videos\Lost\Series4\Lost.S04E00.Past.Present.and.Future.REAL.REPACK.HDTV.XviD-XOR.avi)
    2008-09-24 22:02:58.466601 [Info.][MPMain]: g_Player.Play - waited 10s for refreshrate change, but it never took place (check your config). Proceeding with playback.

    I didn't change the refresh rate changer config when I upgraded, and the ATI profiles work fine when I manually load them:
    <entry name="autochangerefreshrate">yes</entry>
    <entry name="cinema_ext">C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p24"</entry>
    <entry name="pal_ext">C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p25"</entry>
    <entry name="ntsc_ext">C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p30"</entry>
    <entry name="tv_ext">C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static\\CLI.exe Start Load profilename="1080p25"</entry>
    <entry name="cinema_fps">23.976;24</entry>
    <entry name="pal_fps">25</entry>
    <entry name="ntsc_fps">29.97;30</entry>
    <entry name="tv_fps">25</entry>
    <entry name="cinema_hz">24</entry>
    <entry name="pal_hz">25</entry>
    <entry name="ntsc_hz">30</entry>
    <entry name="tv_hz">25</entry>
    <entry name="default_hz">pal_hz</entry>
    <entry name="use_default_hz">yes</entry>
    <entry name="devicereset">yes</entry>

    Any suggestions as to why this might be happening, and how it could be fixed? I can post a full mediaportal.log if required.

    UPDATE: My initial diagnostics were incorrect. Any attempt to change the refresh rate (including the first one) fails with a directx error. Also, I've downgraded the Catalyst drivers back to v8.8, and I'm still experiencing the same problem, so the ATI software can be ruled out.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    plz post ur refresh changer settings from mp.xml

    /gibman

    I just stumbled over this thread, what a great idea! I've been looking for a thing like this for a long time but the only solution I have found depended on a Reclock script and Powerstrip (I use an Nvidia card so no Powerstrip for me).

    I have just begun eperimenting with this refresh rate changer, and it's turning out pretty good. I took a chance and tried using the "Display Changer" that mhunter mentioned earlier in the thread and it's acutally working really nicely. Refresh rate changing works for both 24fps, 50fps and 60fps material.

    One thing doesn't work though. When I enter "My TV", nothing happens with the refresh rate at all. It seems that the script isn't triggered by the TV stream. Does nobody else have this problem? I really don't know what to do about it. Is the process of starting to watch TV in any way different from starting a video file?

    Also, are you supposed to install the latest svn after installing the files for this plugin? Should the svn go over the plugin?

    EDIT: I also tried using Nvidia "profiles" (although they're not really profiles are they?) to change the refresh rate. This also worked pretty good, actually I think this is slightly faster than using Display Changer. Unfortunately the effect for TV is the same as before - that is, no effect at all.
     

    Seeco

    Portal Pro
    October 15, 2007
    241
    7
    Linköping
    Home Country
    Sweden Sweden
    Absolutely, here they are:

    <entry name="autochangerefreshrate">yes</entry>
    <entry name="cinema_ext">c:\windows\system32\rundll32.exe NvCpl.dll,dtcfg setmode 1 1920 1080 32 24</entry>
    <entry name="pal_ext">c:\windows\system32\rundll32.exe NvCpl.dll,dtcfg setmode 1 1920 1080 32 50</entry>
    <entry name="ntsc_ext">c:\windows\system32\rundll32.exe NvCpl.dll,dtcfg setmode 1 1920 1080 32 60</entry>
    <entry name="tv_ext">c:\windows\system32\rundll32.exe NvCpl.dll,dtcfg setmode 1 1920 1080 32 50</entry>
    <entry name="cinema_fps">23.976;24</entry>
    <entry name="pal_fps">25</entry>
    <entry name="ntsc_fps">29.97;30</entry>
    <entry name="tv_fps">25</entry>
    <entry name="cinema_hz">24</entry>
    <entry name="pal_hz">50</entry>
    <entry name="ntsc_hz">60</entry>
    <entry name="tv_hz">50</entry>
    <entry name="default_hz">pal_hz</entry>
    <entry name="use_default_hz">no</entry>
    <entry name="devicereset">yes</entry>

    EDIT: I just read somewhere that using PowerDVD with HW acceleration for TV produces 50fps? Could this have something to do with it? Should I change "tv_fps" to 50?
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Since u r using "<entry name="default_hz">pal_hz</entry>" - this means that the RR is changed back to pal_hz=50 exactly at the time when u stop video playback ... so at the time when u start tv mode, which is PAL, then the current RR is equal to the desired TV RR, which again is 50.

    does it make sense ?

    /gibman

    Absolutely, here they are:

    <entry name="autochangerefreshrate">yes</entry>
    <entry name="cinema_ext">c:\windows\system32\rundll32.exe NvCpl.dll,dtcfg setmode 1 1920 1080 32 24</entry>
    <entry name="pal_ext">c:\windows\system32\rundll32.exe NvCpl.dll,dtcfg setmode 1 1920 1080 32 50</entry>
    <entry name="ntsc_ext">c:\windows\system32\rundll32.exe NvCpl.dll,dtcfg setmode 1 1920 1080 32 60</entry>
    <entry name="tv_ext">c:\windows\system32\rundll32.exe NvCpl.dll,dtcfg setmode 1 1920 1080 32 50</entry>
    <entry name="cinema_fps">23.976;24</entry>
    <entry name="pal_fps">25</entry>
    <entry name="ntsc_fps">29.97;30</entry>
    <entry name="tv_fps">25</entry>
    <entry name="cinema_hz">24</entry>
    <entry name="pal_hz">50</entry>
    <entry name="ntsc_hz">60</entry>
    <entry name="tv_hz">50</entry>
    <entry name="default_hz">pal_hz</entry>
    <entry name="use_default_hz">no</entry>
    <entry name="devicereset">yes</entry>

    EDIT: I just read somewhere that using PowerDVD with HW acceleration for TV produces 50fps? Could this have something to do with it? Should I change "tv_fps" to 50?
     

    Users who are viewing this thread

    Top Bottom