Kodi Community Forum

Full Version: No Audio or Music Airplay
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I've searched around a bit, but didn't get a fix on my problem. I've seen people with similar symptoms, but none of the solutions worked.
  • Airplay is turned on.
  • Photo Airplay from iPhone 4S is working.
  • Video Airplay from iPhone 4S is working.
  • Audio (Music) Airplay from iPhone 4S or iTunes is not working.
  • Tried multiple iDevices (iPhone 4, iPad 3), same symptoms.
  • Tried setting up a password for Airplay, no solution.
  • iTunes shows the Airplay logo as soon as XBMC is started, but doesn't show XBMC as an output option, just "Computer" which is the actual iMac I'm working off.

Here is the XBMC log with the Airplay related logs. In this log, I start XBMC, then immediately try to Airplay a photo from my iPhone 4S, then I try to Airplay music from my iPhone 4S. As you can see, the logs show the photo being Airplayed but there is no trace whatsoever of the music Airplay.

Code:
22:41:43 T:139635045025664  NOTICE: -----------------------------------------------------------------------
22:41:43 T:139635045025664  NOTICE: Starting XBMC (11.0-PRE Git:Unknown), Platform: Linux (Ubuntu 12.04 LTS, 3.2.0-24-generic x86_64). Built on Apr 29 2012
22:41:43 T:139635045025664  NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
22:41:43 T:139635045025664  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/xbmc
22:41:43 T:139635045025664  NOTICE: special://masterprofile/ is mapped to: /home/htpc/.xbmc/userdata
22:41:43 T:139635045025664  NOTICE: special://home/ is mapped to: /home/htpc/.xbmc
22:41:43 T:139635045025664  NOTICE: special://temp/ is mapped to: /home/htpc/.xbmc/temp
22:41:43 T:139635045025664  NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin
22:41:43 T:139635045025664  NOTICE: Local hostname: HTPC
22:41:43 T:139635045025664  NOTICE: Log File is located: /home/htpc/.xbmc/temp/xbmc.log
22:41:43 T:139635045025664  NOTICE: -----------------------------------------------------------------------
...
22:41:46 T:139635045025664    INFO: AIRPLAY Server: Successfully initialized
...
22:41:46 T:139633547540224  NOTICE: Thread AirPlayServer start, auto delete: false
...
22:41:46 T:139633765619456   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.airplay type: _airplay._tcp name:XBMC (HTPC) port:36667
22:41:46 T:139633765619456   DEBUG: CZeroconfAvahi::addService() named: XBMC (HTPC) type: _airplay._tcp port:36667
...
22:42:02 T:139633547540224   DEBUG: AIRPLAY Server: New connection detected
22:42:02 T:139633547540224    INFO: AIRPLAY Server: New connection added
22:42:02 T:139633547540224   DEBUG: AIRPLAY: got request /server-info
22:42:02 T:139633547540224    INFO: AIRPLAY Server: Disconnection detected
...
22:42:02 T:139633547540224   DEBUG: AIRPLAY Server: New connection detected
22:42:02 T:139633547540224    INFO: AIRPLAY Server: New connection added
22:42:02 T:139633547540224   DEBUG: AIRPLAY: got request /server-info
22:42:02 T:139633547540224   DEBUG: AIRPLAY Server: New connection detected
22:42:02 T:139633547540224    INFO: AIRPLAY Server: New connection added
22:42:02 T:139633547540224   DEBUG: AIRPLAY: got request /photo
...
22:42:02 T:139635045025664   DEBUG: Loading the current image special://temp/airplay_photo.jpg
22:42:02 T:139634117945088   DEBUG: Finished background loading special://temp/airplay_photo.jpg
...
22:42:05 T:139633547540224   DEBUG: AIRPLAY: got request /stop
...
22:42:05 T:139633547540224   DEBUG: AIRPLAY: sending event: stopped
...
22:42:05 T:139633547540224    INFO: AIRPLAY Server: Disconnection detected
...
22:42:20 T:139633547540224   DEBUG: AIRPLAY Server: New connection detected
22:42:20 T:139633547540224    INFO: AIRPLAY Server: New connection added
22:42:20 T:139633547540224   DEBUG: AIRPLAY: got request /server-info
22:42:20 T:139633547540224   DEBUG: AIRPLAY Server: New connection detected
22:42:20 T:139633547540224    INFO: AIRPLAY Server: New connection added
22:42:20 T:139633547540224   DEBUG: AIRPLAY: got request /stop
22:42:20 T:139633547540224    INFO: AIRPLAY Server: Disconnection detected
22:42:26 T:139635045025664    INFO: Previous line repeats 1 times.

----------------------------------------------------
------- I exit XBMC at this point -------
----------------------------------------------------

22:42:29 T:139635045025664   DEBUG: CZeroconfAvahi::doRemoveService named: servers.airplay
...
22:42:29 T:139633547540224   DEBUG: Thread AirPlayServer 139633547540224 terminating
since there are no airtunes printouts in that log snipped i think you don't have compiled airtunes support in. Where did yo get this xbmc build and which linux distribution are u using? Beside that post a full log with debugging turned on to pastebin.com and put the link here for beeing sure.
Thanks for the help Memphiz, I was thinking the same thing. I installed XBMC with simply:

Code:
sudo add-apt-repository ppa:wsnipex/xbmc-xvba-eden
sudo apt-get update
sudo apt-get install xbmc xbmc-bin

Here is my full log.

Now that you mentioned AirTunes, you were right, I overlooked that. At some point it says:

Code:
22:41:46 T:139635045025664   ERROR: Unable to load libshairport.so.1, reason: libshairport.so.1: cannot open shared object file: No such file or directory
22:41:46 T:139635045025664   DEBUG: Dll libshairport.so.1 was not found in path
22:41:46 T:139635045025664   ERROR: Failed to start AirTunes Server

So I see that libshairport is missing, but why did it not get installed? How do I isntall it?

Sorry for the obvious error I missed out!
I don't know who wsnipex is - but he seems to maintain that xbmc ppa repo (which is not an official xbmc repo imho - so we don't have control over it). You could try a manually apt-get install libshairport which should get you going...
Oh really? So is there actually an official repo?

The apt-get results in:

Code:
E: Unable to locate package libshairport

While I have the xbmc ppa added for sure! I suppose it's not for my version of Ubuntu (12.04 LTS) yet.

Is there a different way to install it? I could perhaps consider reinstalling XBMC... But I'd rather avoid that since everything is nicely running already.
either your ppa maintainer builds libshairport for 12.04 or you have to do it yourself (not recommended).
I suppose this is also the reason why it wasn't properly installed... I've tried compiling it myself and, even though I've compiled stuff before, I didn't manage. Looks like I'll have to wait!

Thank you for the help Memphiz, it was very much appreciated.
in a nutshell:

Code:
git clone git://github.com/xbmc/xbmc.git
cd xbmc
make -C lib/libshairport/
sudo make -C lib/libshairport/ install

With a little luck libshairport gets picked up from XBMC after that (in the hope its looking in the right directory).
I know I'm kicking a 2 month old topic, but I just wanted to post the solution I went for since I hate finding someone with the same problem without posting the solution.

I tried the solution opposed by Memphiz but ran into some compiling problems. I then simply removed XBMC, keeping my personal data. Then installed XBMC the official way. Yes, it's rather rigorous, but it worked like a charm. Finally the Airplay working with music too!
Just add some extra info for any Gentoo users that stumble upon this post as it set me on the right track...

The official Gentoo ebuild for XBMC has a use flag for "airplay" and "avahi"; both of these need to be set.
This will build enough for XBMC to appear as an airplay target in iOS devices, but won't play audio.

To get that working you need to install libshairport and then re emerge xbmc

I used the ebuild and patches from this Gentoo bug report https://bugs.gentoo.org/show_bug.cgi?id=..._id=cookie

Place the ebuild into your local portage overlay. The add a sub dir called "files" to the libshairport dir and download all the listed patches into it. Build the manifest then emerge libshairport.
Worked first go...
i had the same problem with the XBMCbuntu 12.0 Frodo Beta 1 (xbmcbuntu-12.00-beta1-repack.iso)

Code:
ERROR: Unable to load libshairport.so.0, reason: libshairport.so.0: cannot open shared object file: No such file or directory
DEBUG: Dll libshairport.so.0 was not found in path

Airplay didn't work at all, this fixed it:

  1. sudo apt-get install libshairport0
  2. deactivate + activate airplay in xbmc settings
this has been fixed in the nightlies.
:-( I have the same problem with Airtunes.
Ubuntu 12.04 LTS + XBMC 11.0 - PRE Git (complied 18 Sept 2012)

(installed as in
http://forum.xbmc.org/showthread.php?tid=116996
sudo add-apt-repository ppa:wsnipex/xbmc-xvba sudo apt-get update sudo apt-get install xbmc xbmc-bin)


RESULT:
airPlay (video with sound + photo) is working. But there is no music from iDevises via Airtunes... And i have the same log as show up :-)

i try to install libshairport1 1.2.1~git20120110.aeb4987-1, but can't solve the problem:

22:16:09 T:139639779075968 NOTICE: starting zeroconf publishing
22:16:09 T:139639779075968 ERROR: Unable to load libshairport.so.0, reason: libshairport.so.0: cannot open shared object file: No such file or directory
22:16:09 T:139639779075968 ERROR: Failed to start AirTunes Server
22:16:09 T:139639084001024 NOTICE: Thread AirPlayServer start, auto delete: false
-------------------------------------

yeeaaaaa!
SOVLED!
a make a symbol link after installing libshairport1:
sudo ln -s //usr/lib/x86_64-linux-gnu/libshairport.so.1.0.0 //usr/lib/x86_64-linux-gnu/libshairport.so.0
and sound appear!
Airtunes work very slow in xbmc now, bot this is another topic ;-)




Litus, you could have just upgraded to beta2 from the ppa.
(2012-12-04, 23:03)wsnipex Wrote: [ -> ]Litus, you could have just upgraded to beta2 from the ppa.

Thanks! I will try. But I need a special vxba version beta2 (for hardware accelerate on AMD GPU) . Can you help me to find the command to install it? (Sorry, I am a new-linux-xbmc lammer)
Pages: 1 2