24p and audio sync issues

  Thread Rating:
  • 7 Votes - 4.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bniswe Offline
Junior Member
Posts: 24
Joined: Nov 2009
Reputation: 0
Post: #471
I have disabled HPET on my system since it didn't seem to help this issue in any way.

But after re-reading this thread form the beginning I found that a11599 has a patch that helps with the missed: counter being incremented.

I now run the 12.2 build from here: http://subvoice.hu/xbmc/
The missed counter is now stable, for most videos anyway, and when it is stable, the audio delay seems to be gone. I now run without the advancedsettings.xml, and seem to have perfect lip-sync.

https://github.com/a11599/xbmc/commits/my_build
I think this is the patch that fixes it [win32][half-fixed] Missed vblanks in CVideoReferenceClock

I hope this patch is merged into xbmc soon!
find quote
mbliss Offline
Junior Member
Posts: 1
Joined: May 2013
Reputation: 0
Post: #472
(2012-12-12 02:44)werie Wrote:  I have fixed this issue for me...Big Grin

I knew my Samsung tv in the bedroom also has an option to turn on “gaming mode”
So I went to the bedroom and search for that option in my tv menu and turned it on, and changed the delay to zero.
And guess what that was my solution.
I think there are some HDMI handshake issues with my Samsung 3D tv or that the Asrock NVIDIA GPU can’t get the DMT\refresh rate settings right for it or the TV gives wrong info to the Nvidia GPU.
I have been watching for a couple of days in the bedroom and the sync settings are gone. When I turn gaming mode off they are back again. So I leave it turned on. (had to calibrate my Samsung tv again in this setup)

I hope this is a solution for some of u guys if not this is a lot of reading material.. Big Grin

Greetings

Werie (The Netherlands)

This issue 24p w/ audio sync issue has plagued me for months. This was the fix action for me as well, 100% correct audio sync on all files i throw at it.

If anyone that has a samsung tv is having this issue try turning on game mode (menu-> settings -> game mode: on) the rest of my settings i left default (calibrated color levels).

From Samsung's website "Game Mode is a setting used to bypass different operations in the TV. When Game mode is set to "On" one of the major changes is the DNIe chip in the TV is bypassed. Bypassing the DNIe chip disables the video processing of the TV. This allows for a faster video response time on the TV. This will help when using a fast paced video source such as a game system." So it seems like the tv is doing some sort of video processing when set to 24p... might not be a problem with XBMC but with how modern TV's process video set to 24p?

EDIT: I have a completely different setup than who I am quoting, only similarity is same tv manufacturer, I have a samsung LN55B650
(This post was last modified: 2013-05-14 06:25 by mbliss.)
find quote
bniswe Offline
Junior Member
Posts: 24
Joined: Nov 2009
Reputation: 0
Post: #473
If it is processing delay in the TV that causes this, how come it only show up in 24p mode? 50Hz and 60Hz should have the same amount of processing, an even greater delay it would seem.

Also that other media players, such as VLC and MPC does not exhibit the same problem on the same systtems, makes this an unlikely candidate for fixing this for most people.

I still stand by my experience that a11599's patches mostly fixes this problem. I have also tried his gotham alpha 3 build and compared it to xbmc.org build, and it is much better.
find quote
torch1 Offline
Junior Member
Posts: 29
Joined: Feb 2012
Reputation: 0
Post: #474
(2013-05-09 10:46)bniswe Wrote:  I have disabled HPET on my system since it didn't seem to help this issue in any way.

But after re-reading this thread form the beginning I found that a11599 has a patch that helps with the missed: counter being incremented.

I now run the 12.2 build from here: http://subvoice.hu/xbmc/
The missed counter is now stable, for most videos anyway, and when it is stable, the audio delay seems to be gone. I now run without the advancedsettings.xml, and seem to have perfect lip-sync.

https://github.com/a11599/xbmc/commits/my_build
I think this is the patch that fixes it [win32][half-fixed] Missed vblanks in CVideoReferenceClock

I hope this patch is merged into xbmc soon!

Sorry for a noob question, but how do I apply this patch? Is it an addition to a file or a replacement file?
find quote
torch1 Offline
Junior Member
Posts: 29
Joined: Feb 2012
Reputation: 0
Post: #475
This is driving me nuts. I'm trying to teach myself how to apply this patch. I've been searching the net for hours, learned how to navigate cygwin, but now I can't work out the xbmc file tree to get to where I need to be. That patch shows a path of xbmc/rendering/dx/RenderSystemDX.cpp but I cant find any of those folders? Except xbmc of course. Was much easier negotiating my way around the files on my old ATV2, I would have thought windows would be easier! Any help greatly appreciated!
find quote
steelman1991 Offline
Member+
Posts: 2,138
Joined: Jan 2009
Reputation: 6
Location: West Lothian, Scotland
Post: #476
Why not just try the 12.2 build linked to in the post - AFAIK it incorporates the patch. Sorry can't help with compiling a build.
find quote
torch1 Offline
Junior Member
Posts: 29
Joined: Feb 2012
Reputation: 0
Post: #477
(2013-05-15 08:06)steelman1991 Wrote:  Why not just try the 12.2 build linked to in the post - AFAIK it incorporates the patch. Sorry can't help with compiling a build.

/penny drops

Ohhh that 12.2 build is an unofficial build? As I am already on official 12.2 I skipped past that bit. Could have saved myself hours last night. Damn it.

Thanks for the response though!
find quote
torch1 Offline
Junior Member
Posts: 29
Joined: Feb 2012
Reputation: 0
Post: #478
Well I'm pleased to report that a11599's 2.2 build seems to have fixed it for me. Whatever I try and play seems to be perfect. I've skipped through 10 different films and various tv shows and all is good. Top work a11599 Cool
find quote
torcar Offline
Member
Posts: 99
Joined: Apr 2012
Reputation: 0
Location: Norway
Post: #479
I also tried this patch, but it made no difference for me regarding bad lipsync. Still about -175ms on the audio when running 24p material.

However the a/v counter got a little more stable. The FPS counter is still hitting 23,98fps when XBMC is just started, but after a few minutes it starts getting unstable...

Also I found I got a new counter called "ae". It reads a few milliseconds varying from 3ms to 10ms... Anyone know what this counter is?

System: XBMC Frodo Final, HTPC: AMD 6450 1GB, Intel i5 2400S, 8GB DDR3, ASUS P8H61-M PRO, OCZ SSD Agility 3, NYXboard Hybrid Remote
Surround: NAD M15HD2, NAD M25, B&W 803 Diamond, B&W DB1, B&W HTM4, Pioneer KRP-600A / Panasonic 65VT50
find quote
Post Reply