A very simple Refreshrate changer (1 Viewer)

dannyb0y

Portal Member
February 27, 2006
12
1
Hello, I just did a very simple refresh rate changer.
I modified the MPTrayMod "Input plugin" (MEDIAPORTAL - free MediaCenter HTPC Software - MpTrayMod.
It works very simple, it just cycles the refreshrates that i specifies in the config file.

To cycle refreshrate just press the red button on the MCE remote. I think it only works to change refreshrate when NOT playing any movie.

If you want you can try it and/or modify it. I include the source code.

sample of the config file:

<applicationSettings>
<MediaPortal.RefreshRateSettings>
<setting name="RefreshRates" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>24</string>
<string>50</string>
<string>60</string>
</ArrayOfString>
</value>
</setting>
<setting name="MonitorIndex" serializeAs="String">
<value>0</value>
</setting>
</MediaPortal.RefreshRateSettings>
</applicationSettings>

As I said it is very simple and can be much better. It has no log or errorhandling. Feel free to fix it.

It uses win32 api and does not require any third party product to be installed.
 

edterbak

Portal Pro
March 4, 2008
2,114
1,176
Home Country
Netherlands Netherlands
Interesting work dannyb0y!

I have not tried it yet, maybe tonight.
I have a question about this.

- If you cycle through the refreshrates, is it displayed what the actual refreshrate is at that moment after switching? Like for 10 seconds or something.
- Is it possible to make the plugin to detect the refreshrate of the movie/dvd/hddvd upon opening? Or just display the FPS of the media.


Great work Dannyboy!!! There is a need for this kind of software. Thanks!
 

dannyb0y

Portal Member
February 27, 2006
12
1
Hello.
As I said it is very simple, and it does not show any information about current refresh rate. But my TV shows current resolution and refresh rate when it changes.

I Hope someone can take the source code and implement it in some sort of plugin that can detect the refresh rate of current playing video.
 

seco

Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    There is already such plugin, RefreshRateControl.
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    Ummmm, yes it does? At least with TV if I remember correct.
     

    dannyb0y

    Portal Member
    February 27, 2006
    12
    1
    My plugin works without any thirdparty products installed. I dont think any other plugin does...
    This is only some sort of proof of concept. I hope someone take my source and develop a real plugin that get the framerate of the video played and change the refresh rate automatically
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    My plugin works without any thirdparty products installed. I dont think any other plugin does...
    This is only some sort of proof of concept. I hope someone take my source and develop a real plugin that get the framerate of the video played and change the refresh rate automatically

    Does it work with modes like "23.976Hz" ? :)
     

    dannyb0y

    Portal Member
    February 27, 2006
    12
    1
    Does it work with modes like "23.976Hz" ? :)

    If you can set this mode in windows you can also set it with my code. but does your tv support that refresh rate?
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    We'll soon find out, it just arrived from Germany :)
     

    Users who are viewing this thread

    Top Bottom