xbmc/xbmc — pull request #657 by Albinoman887 (2012-01-25 19:54:40+00:00)
Title: Global A/V Delay based on refresh rate (fixes 24htz ~250ms OOS issue)

OK first time ive done this dont know if i'm breaking ruse or anything just figured i would do it as everyone in the thread keeps saying someone to set up a PR

see thread: http://forum.xbmc.org/showthread.php?t=96916

basically a11599 made a nice patch that basically checks the refresh rate of currrently playing vdeo (not fps) and sets a global a/v delay based on some settings in the advancedsettings.xml. this is especially helpful to two distinct groups. A: people who expierience the 24htz playback oos bug. basically all .mkv videos i play exhibit the same delay about 250 ms. anything at 60 htz is fine. B: people who have AVRs with no a/v sync setting and get an all around delay. also with the way its setup via as.xml it wont impact users who dont see the bug dont use 24htz or for whatever other reason. Now i know a lot of people were holding off on tackling this bug do to AE being merged soon and the asumption that would fix it. well i'm here to say myself and others are testing the AE branch gnif is currently working on (huge progress by the way) and the bug is still present, also gnif doesnt seem to want to be bothered with having to worry about this issue. so sadly AE will probably still have teh same bug, but hey guess what. the patch works just the same in AE as it does in current master.

So tell me what you guys think and thank a11599 for writing this i just did the grunt work.

here is the layout for your as.xml

20

23
24
-250

60
80

and when playing a video if you press O to bring up the output information on the 3rd line above the current fps there is a marker a/vd i beleive and it will show what your delay is set to (i.e. -0.250 or 0.0 if using that xml depending on refresh rate)