osx-coreaudio : Sync / Delay Problem
#1
Nature of Fault

I'm playing a movie with AC3 audio (using AC3 Passthrough) on a build taken from the osx-coreaudio branch. The movie starts fine, and the sound initially plays just as it should. If I try to skip-forward through the movie however, the sound goes silent, and the video runs slowly. From reading other posts, I suspect that the video is slowing whilst it waits on the audio to catch up. I encountered this fault on all of the AC3 movies I've tried; it's easy to recreate by simply pressing the right-arrow (small-skip-forward) during playback on my set-up.

I appreciate that this isn't a mainstream branch, but thought I'd flag the issue in any case before it's merged back into the linuxport branch. The above issue aside, I can confirm that my old Sony STR-DB930 amp happilly plays AC3 passthrough from the osx-coreaudio branch that played 'silent' under the main linuxport branch.


System Details
OS : Mac OS X 10.5.6 (9G55)
Platform : Mac Mini
System Profile : http://fergus.pastebin.com/f5b1dfb43
Install Method : Local Build
SVN Revision : 20076
Debug Log : http://fergus.pastebin.com/m5e85cc5c
Media Info : http://fergus.pastebin.com/f2555809e

SVN Note
SVN is listed above as 20076, although the lastest change to the osx-coreaudio branch itself was 20075. Both the XBMC Log File and 'Info' screen within XBMC list SVN as "Unknown". I'm unsure as to whether this is;

  1. A fault with the core-osxaudio branch
  2. A known/accepted position outside of the 'mainstream' branches
  3. A missing step I should be taking in my build process

Here's the output from 'svn info' to help clarify;

Code:
LoungeMini:XBMC dev$ svn info
Path: .
URL: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/osx-coreaudio/XBMC
Repository Root: https://xbmc.svn.sourceforge.net/svnroot/xbmc
Repository UUID: 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Revision: 20076
Node Kind: directory
Schedule: normal
Last Changed Author: davilla
Last Changed Rev: 20075
Last Changed Date: 2009-05-08 22:22:17 +0100 (Fri, 08 May 2009)
Reply
#2
Thanks for the detailed post. I am glad to hear that the Sony receiver is responding well to the new code. I will have a look at the debug log and will re-post when I have some info.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


                                            Image
Reply
#3
The latest changes 'should' resolve your problems. Please confirm or refute and post a new debug log if there are still problems.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


                                            Image
Reply
#4
Thanks for the update, but afraid it's still exhibiting the same behaviour as before.

Log file >>> http://fergus.pastebin.com/m31f47754 <<<

Code:
LoungeMini:XBMC dev$ svn info
Path: .
URL: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/osx-coreaudio/XBMC
Repository Root: https://xbmc.svn.sourceforge.net/svnroot/xbmc
Repository UUID: 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Revision: 20233
Node Kind: directory
Schedule: normal
Last Changed Author: phi2039
Last Changed Rev: 20181
Last Changed Date: 2009-05-12 15:48:56 +0100 (Tue, 12 May 2009)

There's a fair amount of extraneous entries early in the log file, as the 'random picture' slideshow kicked-in before I started to play the movie. If there's anything you'd expect to see missing from the end of the log, it's because it hung on the 'shutdown' button, so I had to "kill -9" it. If anything crucial is missing, do let me know and I'll try again. Also, give me a shout if there's anything else I can do to help track down the cause (e.g. supply a copy of the affected media, test a sample file that is known to work at your end, etc.).

Many thanks again,

Fergus.

PS: For what it's worth, the same behaviour is also observed when pausing and unpausing.
Reply
#5
OK...should be good to go now. It was an oversight on my part that didn't properly handle the under-run that occurs when seeking. Let me know how it goes.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


                                            Image
Reply
#6
Thank you yet again. I'll give it another go tomorrow evening (UK time) and let you know how it goes!
Reply
#7
Thumbs Up 
Managed to build and test over breakfast this morning. It worksNod! Thank you so much for putting the effort into this and bringing my Sony Amp' back to life; it's really appreciated.Big Grin
Reply
#8
As an owner of a Sony receiver and an Apple TV I have been curiously following this thread.

I am totally new to XBMC, but already deeply in love with it -- except for some choppy video playback I am experiencing (have only tested Babylon release) and being unable to play AC3 audio on my Sony. As the last issue seems to be solved now, I am obvious excited to try it out.

So, is there a place on the web, where I can download an already compiled version of the coreaudio branch for my ATV. If that is not the case, do you have an idea of when the core audio stuff will be merged into the main branch? Thus, I then believe that I can get a compiled version of the nightly builds from here: http://www.sshcs.com/xbmc

/ Best regards, Poul
Reply
#9
@Poul.

I couldn't find a compiled version of the osx-coreaudio branch, so built my own on my Mac Mini. If you've access to Mac (over and above your AppleTV) and have the inclination, you could build your own by following the instructions in http://trac.xbmc.org/browser/branches/os...README.osx (remember to swap the reference of "linuxport" for "osx-coreaudio" on the 'svn' command).

If not, and if phi2039 or davilla suggest that it'll be a while yet before it's merged back into the main linuxport branch, then I'll try to build one for you myself. To date, I've only built a version for 10.5 rather than a cross-compiled version that can run under 10.5/10.4/AppleTV. I could give this a whirl over the weekend if need be (seems only fair to try and help in light of the fantastic work/help I've received from the XBMC team).
Reply
#10
I have tried to build myself with limited success. I am using 10.5, so if you could upload your build etc I would appreciate it very much. Wink
Reply
#11
We are hoping for a merge over the weekend or possibly sooner. I will post when it is complete. I am glad to hear that the changes worked.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


                                            Image
Reply
#12
This has been merged into mainline SVN. Have at it.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


                                            Image
Reply
#13
phi2039 Wrote:This has been merged into mainline SVN. Have at it.

Good work sir! Thank you.
Reply

Logout Mark Read Team Forum Stats Members Help
osx-coreaudio : Sync / Delay Problem0