[PATCH] Auto switching refresh rate to match source framerate
#1
I've been using xbmc on my linux htpc for a while now and everything works great, but a feature I really miss is xbmc automatically switching to the best refresh rate depending on the source material as my TV accepts 24/50/60Hz.

Anyway, I put this patch together last night but I doubt it's the correct way to do this, only works on linux for one thing. Probably the wrong place to do it too? Some input would be appreciated.

See http://trac.xbmc.org/ticket/4902.
Reply
#2
Patches go here:

http://trac.xbmc.org/newticket

Login with your forum user
Reply
#3
should be in ChooseBestResolution, and enabled by some gui option. Otherwise it's something I really do want.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
Using HDMI the xbox can talk to the TV to find out which resolution and framerates are supported. An option to override this would be good.

Something like this which also applies to Component:

*Auto (default for HDMI I guess)
*50
*60
*50/60 (default for Component output I think)
*50/60/24
Reply
#5
Welcome to the XBMC community forum Big Grin

FYI; here you find our "HOW-TO submit a patch" (prefered patch format, etc.) article:
http://wiki.xbmc.org/?title=HOW-TO_submit_a_patch

Other good to know XBMC Development Notes and References:
http://wiki.xbmc.org/?title=Appendix_D:_...ment_Notes

Wink
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#6
Updated patch to use XBVideoConfig correctly and set resolution in CLinuxRendererGL::ChooseBestResolution. Ticket here:
http://trac.xbmc.org/ticket/4902
Reply
#7
Wow! This is great!
Is this gonna be implemented in the official release? After 1.0? How does it work?
Reply
#8
Sorry, I forgot I was in the developers section. Feel free to ignore my questions.

Sorry.

Edit: this might help for a similar windows application? http://www.12noon.com/displaychanger.htm
Reply
#9
Updated patch to work with latest svn.
Reply
#10
I've finally managed to get the Ubuntu build up and running.

If I wanted to test this patch, what exactly should I do?
Reply
#11
apply, compile. just like you do with any patch
Reply
#12
I'm gonna try to get a windows install up and running during the weekend and see if I can get this working in win too. Should be a matter of just copying some code.
Reply
#13
I built xbmc + patch on windows and it seems to work as far as selecting the correct resolution of the choices it gets. the problem is xbmc won't find more than one refresh per resolution and this is due to SDL as far as I can tell.

Found some info here:
Quote:The default fullscreen refresh rate has been increased to match the desktop refresh rate, when using equivalent resolutions. A full API for querying and selecting refresh rates is planned for SDL 1.3.

I've got zero experience regarding SDL, anyone has some info on how to proceed to get this working on windows? I may be way off Big Grin
Reply
#14
spiff Wrote:apply, compile. just like you do with any patch
Ok... saying I'm a newbie would be an understatement (so I'm on the wrong forum, I know. But I'd like to offer testing if that's valuable), is there a good guide somewhere?
Reply
#15
ultrabrutal Wrote:Using HDMI the xbox can talk to the TV to find out which resolution and framerates are supported. An option to override this would be good.

Something like this which also applies to Component:

*Auto (default for HDMI I guess)
*50
*60
*50/60 (default for Component output I think)
*50/60/24

I would be careful about using the EDID data from the display panel. I have now had TWO of them that gave incorrect information, both from VIZIO, and the XORG file had to be hand crafted. Some receivers also do not pass this information correctly. While a wonderful idea in theory you may find that the EDID data isn't really as reliable as it should be Angry
Openelec Gotham, MCE remote(s), Intel i3 NUC, DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoded with Handbrake to x.264. Yamaha receiver(s)
Reply

Logout Mark Read Team Forum Stats Members Help
[PATCH] Auto switching refresh rate to match source framerate0