Kodi Community Forum
24p and audio sync issues - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: 24p and audio sync issues (/showthread.php?tid=80247)



RE: 24p and audio sync issues - a11599 - 2012-12-29

I found the reason of the missed counter runaway. While I do not really think it has anything to do with the audio delay, I baked a patch for it.

Here is a Windows installer: http://subvoice.hu/xbmc/XBMCSetup-20121229-77d653b-dx.exe
Source code: https://github.com/a11599/xbmc/commits/my_build
If you want to build your own, here is the actual commit: https://github.com/a11599/xbmc/commit/77d653bd471b5fb8afcb4d28de379ed2243cfb20

If you are going to test it, please let me know your findings.


RE: 24p and audio sync issues - robl45 - 2012-12-30

(2012-12-29, 10:03)a11599 Wrote: I found the reason of the missed counter runaway. While I do not really think it has anything to do with the audio delay, I baked a patch for it.

Here is a Windows installer: http://subvoice.hu/xbmc/XBMCSetup-20121229-77d653b-dx.exe
Source code: https://github.com/a11599/xbmc/commits/my_build
If you want to build your own, here is the actual commit: https://github.com/a11599/xbmc/commit/77d653bd471b5fb8afcb4d28de379ed2243cfb20

If you are going to test it, please let me know your findings.

I tested it tonight, it definately is an improvement over past versions. i tried frodo beta and this version. frodo beta same movie was very hard if impossible to get the missed counter to stop, this version, usually it would stop on its own, but there were still a number of instances where i had to hit pause and then play to get it to stop. It seems this version shows the ms sync offset for the audio, something lacking on the other versions and seems to be working.

unfortunately, 2 things stop me from switching back to xbmc default player. 1 is that xvid/avi type movies still have lipsync issues even though sync to display resample audio appears to be working. x264/h264 works just fine as far as lipsync assuming sync to display is really working. I had times before where half way through the movie it just randomly went out and after pause/play a number of times to get the missed counter to stop moving, it was in sync again.

2. I cannot countrol the volume when using Ac3 audio as it says passthrough audio is in use. dts audio convertsto ac3 audio and lets me use the volume. where is the option to just have it encode ac3 instead of passing through? Realize this is offtopic for this thread, but I noticed it tonight while testing and reclock doesn't have this issue.


RE: 24p and audio sync issues - a11599 - 2012-12-30

Yep, still happens sometimes, especially with high framerate videos. Seems something else (not just the Present() call) is still blocking the D3D device sometimes. I will keep investigating.


RE: 24p and audio sync issues - robl45 - 2012-12-30

(2012-12-30, 10:00)a11599 Wrote: Yep, still happens sometimes, especially with high framerate videos. Seems something else (not just the Present() call) is still blocking the D3D device sometimes. I will keep investigating.

I tested it with 23.976fps movies, a number of them and with different audio types.

the 25fps movies never seem to have a problem so I didn't bother with those.

EDIT: Thank you very much for looking into this. this patch has got us at least 70% or more of the way there I feel Smile


RE: 24p and audio sync issues - edgeman - 2013-01-08

Hi,

I realise that there is a lot of discussion on the 24fps/23.97fps etc lip-synch issues.
From what I’ve read and gathered there seems to be 2 main workarounds that folks use:

- Don’t match display rate to source i.e display at 50 or 60HZ.
- Put in an audio delay

Both of these are workarounds obviously with certain side-effects, what I don’t get is the people that are using the audio delay and only using it for 24/23 fps content via the advancedsettings.xml config how are you putting up with the issue when no issues with lip-synch is occurring. i.e. it starts off fine and them goes out of synch after 10 mins or so, when that happens your delay correction will “mask it” but prior to that you will be out for a period of time or are folks manually going in and adjusting things over time – surely a pain?

My setup is Frodo RC3, Win8 x64, QNAP 569L NAS, Gigabit LAN connections, Intel NUC (HD4000 Graphics – latest drivers/firmware), Denon 2310 AVR, Pioneer PDP 5090 Plasma (ISF calibrated) all connected via HDMI 1.3 or above cables.
I don’t have lip synch issues with other sources (SKY HD, Pioneer BDP 320 BLu-ray), but on my content in XBMC all Bluray MKV’s – DTS-HD lossless audio’s I start getting lip-synch issues after about 10 mins or so of playback – NUC is fine averages 3 or 4 % CPU during playback (no drop outs), Network/storage is fine over gigabit LAN no buffering at all only lip synch issues.

I want to move my Blu-ray collection (over 500 titles) onto MKV’s and XBMC – but lip-synch issues and manually changes things constantly will be a pain in the backside and certainly not wife friendly!

Anyone got any ideas etc…I will play about with the DENON’s auto lip-synch HDMI settings but haven’t had any issues up until now with the other sources as mentioned.

Thanks


RE: 24p and audio sync issues - a11599 - 2013-01-08

When I had the issue, it was always there for all 24p content and it was constant throughout the movie. So the advancedsetting worked well.


Re: RE: 24p and audio sync issues - jack0w - 2013-01-11

(2012-12-29, 10:03)a11599 Wrote: I found the reason of the missed counter runaway. While I do not really think it has anything to do with the audio delay, I baked a patch for it.

Here is a Windows installer: http://subvoice.hu/xbmc/XBMCSetup-20121229-77d653b-dx.exe
Source code: https://github.com/a11599/xbmc/commits/my_build
If you want to build your own, here is the actual commit: https://github.com/a11599/xbmc/commit/77d653bd471b5fb8afcb4d28de379ed2243cfb20

If you are going to test it, please let me know your findings.

I noticed in RC3 this fix seems to be incorporated and works fine with 50/60hz content. However I still experience the run away counter on 24hz content as soon as I bring up the info screen (i on keyboard).

Has something been missed in the patch for 24hz content, or is what I am experiencing completely unrelated?


RE: 24p and audio sync issues - DanMan - 2013-01-20

(2012-12-15, 11:22)steelman1991 Wrote:
(2012-12-15, 09:24)pleccy Wrote: I too have tried all the aforementioned suggestions and have same the problem with audio sync with 24hz material that everyone else is getting. (for me i need a -200ms delay to sync correctly)

There is a simple fix that would work for everyone:

Currently you can set the delay in the menu to say -200ms.... Then you can check the option that says: "Use this as default for all videos"

All that's needed is for there to be multiple options. For example

"Use this as default for all 24hz videos"

So the theory would be that if it detects source material with 24fps, then it applies the user set delay. If the source material is anything else (eg non 24p) then it will not apply a delay (thus not affecting 50hz or 60Hz video)

I'm sure this would work? I'm not a programmer just applying logic in order to find a solution to this very frustrating problem.

Already available.

Have a look in the Wiki for advancedsettings, video latency (delays) can be applied for individual frame rates.

The above is what I want to achieve, I have made a advancedsettings.xml file with the following data

<advancedsettings>
<video>
<latency>
<delay>0</delay>
<refresh>
<min>23</min>
<max>24</max>
<delay>-200</delay>
</refresh>
</latency>
</video>
</advancedsettings>

Placed in the Userdata folder, but XBMC is not picking up my changes. When I press "A" (on 23.976 content) the offset is still showing 0.00

Please, where am I going wrong?





RE: 24p and audio sync issues - steelman1991 - 2013-01-20

Two things -

make sure its placed correctly - C:\Users\xxxxx\AppData\Roaming\XBMC\userdata\

where xxxxx is your username.

secondly remove <delay>0</delay> and '-' from the delay figure, they're not needed.


RE: 24p and audio sync issues - DanMan - 2013-01-21

(2013-01-20, 21:58)steelman1991 Wrote: Two things -

make sure its placed correctly - C:\Users\xxxxx\AppData\Roaming\XBMC\userdata\

where xxxxx is your username.

secondly remove <delay>0</delay> and '-' from the delay figure, they're not needed.

Thanks for trying to help.......still not working Sad

advancedsettings.xml in correct folder.

Now looks like this

<advancedsettings>
<video>
<latency>
<refresh>
<min>23</min>
<max>24</max>
<delay>200</delay>
</refresh>
</latency>
</video>
</advancedsettings>

Offset still reads 0.000 on 24p content



RE: 24p and audio sync issues - furii - 2013-01-21

(2013-01-21, 03:18)DanMan Wrote:
(2013-01-20, 21:58)steelman1991 Wrote: Two things -

make sure its placed correctly - C:\Users\xxxxx\AppData\Roaming\XBMC\userdata\

where xxxxx is your username.

secondly remove <delay>0</delay> and '-' from the delay figure, they're not needed.

Thanks for trying to help.......still not working Sad

advancedsettings.xml in correct folder.

Now looks like this

<advancedsettings>
<video>
<latency>
<refresh>
<min>23</min>
<max>24</max>
<delay>200</delay>
</refresh>
</latency>
</video>
</advancedsettings>

Offset still reads 0.000 on 24p content

it doesn't show in the ui, you need to check your debug log.


RE: 24p and audio sync issues - steelman1991 - 2013-01-21

The audio delay is shown on the playback stats screen - pressing 'O' during playback. See third line first entry.

Image

If it still isn't registering, you will have to provide a debug log.


RE: 24p and audio sync issues - DanMan - 2013-01-21

(2013-01-21, 04:01)furii Wrote:
(2013-01-21, 03:18)DanMan Wrote:
(2013-01-20, 21:58)steelman1991 Wrote: Two things -

make sure its placed correctly - C:\Users\xxxxx\AppData\Roaming\XBMC\userdata\

where xxxxx is your username.

secondly remove <delay>0</delay> and '-' from the delay figure, they're not needed.

Thanks for trying to help.......still not working Sad

advancedsettings.xml in correct folder.

Now looks like this

<advancedsettings>
<video>
<latency>
<refresh>
<min>23</min>
<max>24</max>
<delay>200</delay>
</refresh>
</latency>
</video>
</advancedsettings>

Offset still reads 0.000 on 24p content

it doesn't show in the ui, you need to check your debug log.

Sorry.....I didn't realize the change didn't show in the ui, I was just quickly checking the offset setting and exiting the video. I should have checked the video properly.

Working well now.

Thanks to all that helped.




RE: 24p and audio sync issues - Jeff Flowerday - 2013-01-21

I'm not having any issues on my XBMC machine.

Windows 8
7750 with 13.1 catalyst drivers.
WASAPI bitstreaming for both audio devices. Pioneer VSX94TXH receiver.
DXVA decoding
Display synced to to Video fps.
VSYNC only on when playing video

<advancedsettings>
<adjustrefreshrate>
<override>
<fpsmin>23.975</fpsmin>
<fpsmax>23.977</fpsmax>
<refresh>23</refresh>
</override>
<override>
<fpsmin>24.999</fpsmin>
<fpsmax>25.001</fpsmax>
<refresh>60</refresh>
</override>
</adjustrefreshrate>
</advancedsettings>

23 with ati cards means 23.976 or that's what I've been told.


RE: 24p and audio sync issues - ShocWave - 2013-01-24

Setting an video delay in AdvancedSettings.XML seems to also delay the subtitle track.
So now my audio is in sync, and the subtitles are off by 200ms >.<
Is there a way to delay subtitles in the XML file only when the framerate of the video is 23.973fps?