• 1
  • 23
  • 24
  • 25(current)
  • 26
  • 27
  • 41
AirPlay target support integrated into XBMC natively?
pkolkkal Wrote:I'm using hardy based Crystalbuntu. I installed ActivePerl-5.10 + other packages just like brddd a few posts up. Restart did the trick. Also, don't try playing a movie while shairfoil is streaming audio (I did this and lost all audio until a reboot fixed it again).

Allright... could i ask you to give me the commands you wrote excactly to install the perl 5.10 just to be sure i didn't do this step any different (this is my first experience with linux)
erhnam Wrote:This is my full install log:

Thank you. Have you actually tried streaming music to it though? I'm not sure about the ALSA error.
Running the latest XBMC Live on an Acer Revo 1600.
Code:
xbmc@XBMCLive:~/.shairport$ perl shairport.pl
listening...
Established under name '00AC00A548ED@ShairPort 2511 on XBMCLive'
new connection from fe80::92fb:a6ff:fe2a:37e2
REQ: OPTIONS
closed: IO::Socket::INET6=GLOB(0x91f5d48)
new connection from fe80::92fb:a6ff:fe2a:37e2
REQ: ANNOUNCE
REQ: SETUP
launched decoder: 2514 on port: 6000
REQ: RECORD
REQ: SET_PARAMETER
REQ: SET_PARAMETER
ao_alsa ERROR: Unable to open ALSA device 'default' for playback => Device or resource busy

missing frame.

underrun.

underrun.
REQ: FLUSH
REQ: TEARDOWN
bye!
***CHILD EXITED***
closed: IO::Socket::INET6=GLOB(0x92325e0)
da-bitsch Wrote:Allright... could i ask you to give me the commands you wrote excactly to install the perl 5.10 just to be sure i didn't do this step any different (this is my first experience with linux)

I don't remember the exact flow of commands (I think most of the default values were okay during installation). Just remember to start perl from your installation directory, e.g. /opt/ActivePerl-5.10/bin/perl

edit: I found this in my logs

sudo /opt/ActivePerl-5.10/bin/perl -MCPAN -e 'install Crypt::OpenSSL::RSA'
sudo /opt/ActivePerl-5.10/bin/perl -MCPAN -e 'install IO::Socket::INET6'

sudo apt-get install avahi-publish-service dns-sd avahi-daemon avahi-discover avahi-utils
brddd Wrote:I am getting closer.

The reason is that hardy uses Perl 5.8, while we need Perl 5.10. It is not trivial to upgrade the packages to use Perl 5.10 from a future Ubuntu release.

I installed ActiveState Perl in a seperate directory and the problem is now gone. http://downloads.activestate.com/ActiveP...10.1.1008/

root@atv:/home/dan/shairport# /opt/ActivePerl-5.10/bin/perl shairport.pl
could not run avahi-publish-service nor dns-sd at shairport.pl line 82.
listening...

I still need to resolve the avahi issues but that should be easier.

*update*: installed the package avahi-utils and now it starts:

root@atv:/home/dan/shairport# /opt/ActivePerl-5.10/bin/perl shairport.pl
listening...
Established under name '00ED5264F71F@ShairPort 20048 on atv'

As updated, shairport is running, and my iOS devices can detect it and play music to it, however I get no sound on my atv.

I see some dropped frames in the logs, but according to my phone or ipad all is playing ok.

It could be an alsa configuration issue. I'm using optical out on my atv with xbmc 10.1 and I get sound with media through xbmc, however no menu click sounds (I think this went away from 10.0 to 10.1)

I'm examining my sound configuration in xbmc and in linux to see if that's the problem.

Mine is a custom Ubuntu 8.0.4 installation having followed various guides.
da-bitsch Wrote:i installed all the dependencies and did excactly as you did!! When i however connect to the shairport and try to play something its getting messy.. no sound and the following output


Established under name '00BB88140DF3@ShairPort 4645 on appletv-ubuntu'
new connection from ::ffff:10.0.0.6
REQ: OPTIONS
REQ: ANNOUNCE
REQ: SETUP
launched decoder: 4648 on port: 6000
REQ: RECORD
REQ: SET_PARAMETER

missing frame.
Segmentation fault
***CHILD EXITED***
REQ: FLUSH
broken pipe
REQ: FLUSH

I am also running hardy on the atv and get the exact same error.
Code:
Can't listen on port 5000: The adress is already busy at shairport.pl line 118, <DATA> line 23.

The message is translated from swedish and the original is:

Code:
Can't listen on port 5000: Adressen redan upptagen at shairport.pl line 118, <DATA> line 23.

I cant seem to find any services running at port 5000 (also did a portscan on localhost from ubuntu).

Does any other server program conflict with this, and how can I find it in that case? Or what can otherwise be the problem?

Thanks!

//Allwise
allwise Wrote:
Code:
Can't listen on port 5000: The adress is already busy at shairport.pl line 118, <DATA> line 23.

The message is translated from swedish and the original is:

Code:
Can't listen on port 5000: Adressen redan upptagen at shairport.pl line 118, <DATA> line 23.

I cant seem to find any services running at port 5000 (also did a portscan on localhost from ubuntu).

Does any other server program conflict with this, and how can I find it in that case? Or what can otherwise be the problem?

Thanks!

//Allwise

If you have lsof on the box you can do the following:

root@atv:~# lsof -i :22
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sshd 4722 root 3u IPv6 12868 TCP *Confusedsh (LISTEN)
sshd 4722 root 4u IPv4 12870 TCP *Confusedsh (LISTEN)

This example is port 22, which shows sshd is listening on port 22
I'm trying to get this installed, but I'm relatively new to Linux. I've followed all of the steps that I've found in this thread and did a bit of Googling, but I'm still having some issues. I'm not sure if I'm missing a step or just doing something wrong.

I'm running XBMCLive on a Zotac MAG

Once I have everything installed and in the right directories I should be typing "make" correct? I receive an error when I do that (I even tried "sudo make"):

Code:
xbmc@XBMCLive:~/plugins/shairport$ make
make: pkg-config: Command not found
cc -O2 -Wall hairtunes.c alac.c -o hairtunes  -lm -lpthread
/tmp/cc1guPQS.o: In function `init_output':
hairtunes.c:(.text+0x7c7): undefined reference to `ao_initialize'
hairtunes.c:(.text+0x7cc): undefined reference to `ao_default_driver_id'
hairtunes.c:(.text+0x801): undefined reference to `ao_open_live'
/tmp/cc1guPQS.o: In function `main':
hairtunes.c:(.text+0xb75): undefined reference to `AES_set_decrypt_key'
/tmp/cc1guPQS.o: In function `alac_decode':
hairtunes.c:(.text+0x109d): undefined reference to `AES_cbc_encrypt'
/tmp/cc1guPQS.o: In function `audio_thread_func':
hairtunes.c:(.text+0x1916): undefined reference to `ao_play'
collect2: ld returned 1 exit status
make: *** [hairtunes] Error 1

My next problem may be because of that one, but I am able to start shairport, however, I receive an error when I attempt to play a song on the newly created speaker in iTunes.

Code:
xbmc@XBMCLive:~/plugins/shairport$ perl shairport.pl
listening...
Established under name '0082F3C9FFE0@Living Room'
new connection from ::ffff:10.0.1.22
REQ: OPTIONS
closed: IO::Socket::INET6=GLOB(0x84d58f8)
new connection from ::ffff:10.0.1.22
REQ: ANNOUNCE
REQ: SETUP
sh: /home/xbmc/plugins/shairport/hairtunes: not found
***CHILD EXITED***
died
Expected port number from decoder; got  at shairport.pl line 351.

Again, I assume it's my issues with "make" as I see that the hairtunes directory has not been created yet.

Any help would be appreciated. Thanks in advance!
kirbypuckett Wrote:
Code:
xbmc@XBMCLive:~/plugins/shairport$ make
make: pkg-config: Command not found
cc -O2 -Wall hairtunes.c alac.c -o hairtunes  -lm -lpthread
/tmp/cc1guPQS.o: In function `init_output':
hairtunes.c:(.text+0x7c7): undefined reference to `ao_initialize'
hairtunes.c:(.text+0x7cc): undefined reference to `ao_default_driver_id'
hairtunes.c:(.text+0x801): undefined reference to `ao_open_live'
/tmp/cc1guPQS.o: In function `main':
hairtunes.c:(.text+0xb75): undefined reference to `AES_set_decrypt_key'
/tmp/cc1guPQS.o: In function `alac_decode':
hairtunes.c:(.text+0x109d): undefined reference to `AES_cbc_encrypt'
/tmp/cc1guPQS.o: In function `audio_thread_func':
hairtunes.c:(.text+0x1916): undefined reference to `ao_play'
collect2: ld returned 1 exit status
make: *** [hairtunes] Error 1

apt-get install pkg-config
HI,

Just want to say a massive thank you.

I have now:

atv1 + crystalubuntu (sams img) + airplay(airplayer) + airtunes (shairport)

All working together - def need a howto to get these all up and running.

Cheers,
Ilia
Current setup:
Amlogic M3/MX + Linux + BOXiK Skin + Pioneer vsx520 + Dali Lektor 6

Previous setup:
Revo 3700 + flirc + OpenElec nightlies + Quartz + Pioneer vsx520 + Dali Lektor 6
atv1 + Crystalbuntu + XBMC nightly + xperience1080
Ilia could i ask you how you made the shairport work? -
mute Wrote:apt-get install pkg-config

Thanks mute, I was able to execute the "make" command, but I'm still having issues when trying to play music to the speaker.

Code:
xbmc@XBMCLive:~/plugins/shairport$ sudo perl shairport.pl
listening...
Established under name '00B8EE250A2F@Living Room'
new connection from ::ffff:10.0.1.22
REQ: OPTIONS
closed: IO::Socket::INET6=GLOB(0x9e4b558)
new connection from ::ffff:10.0.1.22
REQ: ANNOUNCE
REQ: SETUP
launched decoder: 1702 on port: 6000
REQ: RECORD
REQ: SET_PARAMETER
ALSA snd_pcm_open error: Device or resource busy

missing frame.

underrun.

underrun.

underrun.

underrun.

underrun.
REQ: SET_PARAMETER

underrun.
^Ckilled
xbmc@XBMCLive:~/plugins/shairport$

"REQ: SET_PARAMETER" shows up multiple times when I adjust the volume.
kirbypuckett Wrote:Thanks mute, I was able to execute the "make" command, but I'm still having issues when trying to play music to the speaker.

Code:
xbmc@XBMCLive:~/plugins/shairport$ sudo perl shairport.pl
listening...
Established under name '00B8EE250A2F@Living Room'
new connection from ::ffff:10.0.1.22
REQ: OPTIONS
closed: IO::Socket::INET6=GLOB(0x9e4b558)
new connection from ::ffff:10.0.1.22
REQ: ANNOUNCE
REQ: SETUP
launched decoder: 1702 on port: 6000
REQ: RECORD
REQ: SET_PARAMETER
ALSA snd_pcm_open error: Device or resource busy

missing frame.

underrun.

underrun.

underrun.

underrun.

underrun.
REQ: SET_PARAMETER

underrun.
^Ckilled
xbmc@XBMCLive:~/plugins/shairport$

"REQ: SET_PARAMETER" shows up multiple times when I adjust the volume.

"REQ: SET_PARAMETER" is a red herring. That's just it telling you it's receiving stuff. The problem is the "ALSA snd_pcm_open error: Device or resource busy" is your issue. The perl script is unable to open your soundcard device because it's busy (possibly by xbmc, or something else).
mute Wrote:"REQ: SET_PARAMETER" is a red herring. That's just it telling you it's receiving stuff. The problem is the "ALSA snd_pcm_open error: Device or resource busy" is your issue. The perl script is unable to open your soundcard device because it's busy (possibly by xbmc, or something else).

I thought that might be the issue. I googled and found something to restart that service, but it did not work. I rebooted the HTPC to be safe to and still haven't had any luck. Blurgh, so close!
Star 
XBMC is using the device for navigation sound.

try setting up your ~/.asoundrc like this:
http://alsa.opensrc.org/Hardware_mixing,...are_mixing

that solved the "device busy" issue for me
  • 1
  • 23
  • 24
  • 25(current)
  • 26
  • 27
  • 41

Logout Mark Read Team Forum Stats Members Help
AirPlay target support integrated into XBMC natively?3