2011-03-15, 10:10
The patch was merged on 24 Feb 2012 into master.
Dear All,
I just submitted a patch which enables setting global AV delay. Some displays have complex video processing and can introduce a noticeable delay in video. This functionality can be used to compensate for this within XBMC. The patch enables specifying different delays based on display refresh rate. It can also be used for working around the infamous 24p 250 msec audio delay bug (or whatever it is ).
Global delay is set in advancedsettings.xml. A sample describing supported options is here:
When XBMC is running in windowed mode, only the default global AV delay is evaluated. Settings in <refresh> tags are ignored. (Fake fullscreen is treated like true fullscreen mode and everything should work.)
Dear All,
I just submitted a patch which enables setting global AV delay. Some displays have complex video processing and can introduce a noticeable delay in video. This functionality can be used to compensate for this within XBMC. The patch enables specifying different delays based on display refresh rate. It can also be used for working around the infamous 24p 250 msec audio delay bug (or whatever it is ).
Global delay is set in advancedsettings.xml. A sample describing supported options is here:
Code:
<advancedsettings>
<video>
<!-- Compensate display latency (video lag). Latency is given in msecs. -->
<latency>
<!-- Global default display latency -->
<delay>0</delay>
<!--
Override latency for given display (not video) refresh rates.
When XBMC is in windowed mode, override is ignored. Multiple
overrides are allowed.
Syntax of an override entry:
<refresh>
<min>, <max> refresh rate range, OR
<rate> exact refresh rate
<delay> display latency for the given refresh rate
</refresh>
-->
<!-- Example: display has 125 msec latency at 23-24 Hz -->
<refresh>
<min>23</min>
<max>24</max>
<delay>125</delay>
</refresh>
<!-- Example: display has 50 msec latency at 50 (+/-0.01) Hz -->
<refresh>
<rate>50</rate>
<delay>50</delay>
</refresh>
</latency>
</video>
</advancedsettings>