Mac OS X - Audio sync off with refresh rate switching (nightly builds)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
FernetMenta Online
Team-Kodi Developer
Posts: 3,370
Joined: Jul 2010
Reputation: 66
Location: Munich
Post: #16
Are we looking for an a/v desync of 100ms or a couple of seconds?
find quote
Rassi Offline
Junior Member
Posts: 17
Joined: Feb 2008
Reputation: 0
Post: #17
(2014-03-16 14:25)FernetMenta Wrote:  Are we looking for an a/v desync of 100ms or a couple of seconds?

Multiple seconds on seek (especially seek back). Everything seems in sync on start, and if I leave it alone (no seeking).
find quote
FernetMenta Online
Team-Kodi Developer
Posts: 3,370
Joined: Jul 2010
Reputation: 66
Location: Munich
Post: #18
Please test with beta 2 or nightly, there were a couple of changes in this area.
find quote
SpaceMonkey Offline
Posting Freak
Posts: 1,162
Joined: Aug 2008
Reputation: 24
Location: Finland
Post: #19
My tests with beta 2:

- When audio is in sync, it's in sync
- Pausing video and SmallStepBack always causes the audio go out of sync. Hard to estimate but i'd say between 500ms-1s.
- Both (Big)StepForwards/Backwards seem to be ok 100% of the time
- (Big)StepForwards/Backwards get the audio back to sync
- Seeking at any rate to any direction is not always affected, seems random when it goes out of sync

Debug log from beta 2: http://pastebin.com/JLRRDPiy

- Start video
- 2x BigStepForward (ok)
- Pause video (out of sync)
- StepForward (ok)
- SmallStepBack (out of sync)
- Not sure what i did after that, either StepBackward or StepForward (ok)
find quote
Rassi Offline
Junior Member
Posts: 17
Joined: Feb 2008
Reputation: 0
Post: #20
(Don't know if you want updates both in forum and trac)

Nightly 0316 http://xbmclogs.com/show.php?id=150461

Steps:

StepForward
SmallStepBack
Rewind

CodecInfo shows stable error around 500% after SmallStepBack, and 20000% after Rewind.

I concur in SpaceMonkey's findings.
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,063
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #21
Well i really tried hard to reproduce that issue on my macmini + mavericks - but no dice - it was always in sync. But here is a testbuild which you could try please. It has some debug output added. (so after the issue happened please provide a new debug log):

http://mirrors.xbmc.org/test-builds/osx/...x86_64.dmg

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Rassi Offline
Junior Member
Posts: 17
Joined: Feb 2008
Reputation: 0
Post: #22
0317 resetondrain build: http://pastebin.com/v9ZPzSkL

Steps:
- StepForward (ok)
- SmallStepBack (out of sync 1 second)
- Rewind shortly (out of sync 5 seconds)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,063
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #23
Please test:

http://mirrors.xbmc.org/test-builds/osx/...x86_64.dmg

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,063
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #24
Please test

http://mirrors.xbmc.org/test-builds/osx/...x86_64.dmg

and report back.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,063
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #25
Please test

http://mirrors.xbmc.org/test-builds/osx/...x86_64.dmg

and report back.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
juramusger Offline
Member
Posts: 61
Joined: Mar 2014
Reputation: 1
Post: #26
Hello everyone, thanks for your effort Memphiz!

I have what seems to be the same problem. Pausing and sometimes seeking throws the audio sync off. This happens with AC3 passthrough and only on material with 24 hz when it sends out 24 hz. Auto refresh rate switching setting makes no difference (my setup is to send 24 hz as standard, so most of the time my equipment doesn't have to change the refresh rate)
The problem is persistent on beta 3 (debug at http://xbmclogs.com/show.php?id=165151) and the test build from 21st march (http://xbmclogs.com/show.php?id=165153)
both logs show me entering a show, then pausing, then verifying that the sync is off, exiting the video and uploading the log.
Seeking "StepBack" sometimes gets the sync back.

OSX.9.2, Macbook Air 2012, HDMI to splitter, from there to TV and amp via optical.

Tell me what to test further! Thank you!
find quote
JensGH Offline
Junior Member
Posts: 11
Joined: Jun 2010
Reputation: 0
Post: #27
Had sync problems since 10.9.0, but solved it setting video decoding method to software.
Don´t know if my prob is related to yours, but maybe you can give it a try ( if you currently use hardware acceleration^^ )
find quote
Rassi Offline
Junior Member
Posts: 17
Joined: Feb 2008
Reputation: 0
Post: #28
(2014-04-03 17:25)juramusger Wrote:  Auto refresh rate switching setting makes no difference (my setup is to send 24 hz as standard, so most of the time my equipment doesn't have to change the refresh rate)

I just tried setting my monitor to 24hz, and disable adjust refresh, and I can confirm this. So it seems to not be related to adjust refresh, but the fact that it is running 24hz.

(2014-04-04 19:16)JensGH Wrote:  Had sync problems since 10.9.0, but solved it setting video decoding method to software.
Don´t know if my prob is related to yours, but maybe you can give it a try ( if you currently use hardware acceleration^^ )

Yes, it is well known that switching to software decoding "fixes" this. But I think the majority of us would prefer hardware acceleration to save cpu/fan noise.

Which graphics card do you have, since you also have sync problems with hardware acceleration?
(This post was last modified: 2014-04-05 09:02 by Rassi.)
find quote
juramusger Offline
Member
Posts: 61
Joined: Mar 2014
Reputation: 1
Post: #29
Yes, software decoding "fixes" it, but I concur with Rassi that hardware acceleration is preferable.

I am not too tech savvy on this, but might it have something to do with the mac not outputting true 23.976 but 24 hz as it only concerns 24p material? Can someone point me to good test samples in all common frame rates and different audio codecs for further tests?

(I think the question was for JensGH, but my MBA has a Intel HD4000, will test later with my MBP with an NVidia 320m)
find quote
SpaceMonkey Offline
Posting Freak
Posts: 1,162
Joined: Aug 2008
Reputation: 24
Location: Finland
Post: #30
I was trying to remember what my original issues was, and how it is now

- Before betas passthrough a/v sync was always off around 100ms and pausing, smallsteppingback made it worse. Disabling refresh rate switching fixed it at this point
- 100ms issue was fixed quite quickly in one of the builds even with switching enabled
- In beta 2 disabling vda fixed the issue with pausing and smallstepback
- A/V desync caused by pausing etc. was fixed in beta 3, even with vda on

So, not exactly easier problem to report Big Grin

With beta 3 i've had movie where switching had to be disabled, otherwise the A/V sync would go off even without touching any playback controls, and letting the movie play. Other videos have been fine though.
find quote