Welcome! Log In Create A New Profile

Advanced

Shairport - iTunes / iPhone streaming

Posted by Skorfulose 
Shairport - iTunes / iPhone streaming
April 11, 2011 05:07PM
Hello!

Has anyone gotten the new shairport perl script running on Squeeze on the plug?

You could stream music to a USB sound dongle / speakers attached to your plug directly from iTunes or your iPhone.

I tried to get shairport-0.03 running, but it seems to have issues with libao4 or the ARM. Other sound is playing fine through ALSA. I can also see and choose the shairport as a speaker in iTunes / iPhone.

What I did:
aptitude install openssl libao-common libao-dev \
 libao4 libssl-dev libcrypt-openssl-rsa-perl pkg-config \
 avahi avahi-utils libwww-perl libio-socket-inet6-perl
Delete -D__i386 from the Makefile, then compile and run...

Always gives me
new connection from fe80::210:xxxx:xxxx:xxxx
REQ: ANNOUNCE
REQ: SETUP
launched decoder: 25043 on port: 6000
REQ: RECORD
REQ: SET_PARAMETER

missing frame.
closed: IO::Socket::INET6=GLOB(0x178f640)
Segmentation fault
***CHILD EXITED***


:(
Any hints?
Dmitry
Re: Shairport - iTunes / iPhone streaming
April 12, 2011 01:48PM
Hi,

I've used port utility to install all the stuff and everything seems to be working fine. Check the log below:
iMac-2:shairport-0.03 qq$ perl shairport.pl
listening...
Образована под именем «0084E147826F@ShairPort 72859 on iMac-2.local»
new connection from ::ffff:192.168.214.2
REQ: OPTIONS
closed: IO::Socket::INET6=GLOB(0x10096f790)
new connection from ::ffff:192.168.214.2
REQ: ANNOUNCE
REQ: SETUP
launched decoder: 72878 on port: 6000
REQ: RECORD
REQ: SET_PARAMETER
REQ: SET_PARAMETER
2011-04-12 21:44:48.617 hairtunes[72878:60f] Error loading /Library/Audio/Plug-Ins/HAL/Digital Power Station.plugin/Contents/MacOS/iTea: dlopen(/Library/Audio/Plug-Ins/HAL/Digital Power Station.plugin/Contents/MacOS/iTea, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/Digital Power Station.plugin/Contents/MacOS/iTea: no matching architecture in universal wrapper
2011-04-12 21:44:48.632 hairtunes[72878:60f] Cannot find function pointer iTeaHAL for factory 666438A7-7C20-4274-91D4-A7B71A71A40F in CFBundle/CFPlugIn 0x100303990 </Library/Audio/Plug-Ins/HAL/Digital Power Station.plugin> (bundle, not loaded)

missing frame.

overrun.

iTunes play the song correctly. But unfortunately I don't have what I want - I could not get sound on the iPhone speakers...
Re: Shairport - iTunes / iPhone streaming
April 14, 2011 04:58PM
This is what I get when starting the script:

listening...
Established under name '0068225BDCA2@ShairPort 10535 on tk-ds-debian'
new connection from 192.168.178.34
REQ: OPTIONS
closed: IO::Socket::INET=GLOB(0x30e150)
new connection from 192.168.178.34
REQ: ANNOUNCE
REQ: SETUP
FATAL: Can't create socket!
***CHILD EXITED***
Expected port number from decoder; got  at ./shairport.pl line 298.

Any suggestions?
Re: Shairport - iTunes / iPhone streaming
April 15, 2011 04:18AM
La Tristesse, have you installed all the prerequisite packages, especially libio-socket-inet6-perl? And please try running shairport as root.
Your error is reported by hairtunes. It cannot create a network socket for input/output of data.
Re: Shairport - iTunes / iPhone streaming
April 15, 2011 07:55AM
Skorfulose Wrote:
-------------------------------------------------------
> La Tristesse, have you installed all the
> prerequisite packages, especially
> libio-socket-inet6-perl? And please try running
> shairport as root.
> Your error is reported by hairtunes. It cannot
> create a network socket for input/output of data.

All packages are installed.

libio-socket-inet6-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I was running the command as root, so this couldn't be the reason. Strange ...

I have to add that the script starts without any flaws but as soons as I connect over iTunes the error apply.



Edited 1 time(s). Last edit at 04/15/2011 07:57AM by La_Tristesse.
Skorfulose Wrote:
-------------------------------------------------------
> Hello!
>
> Has anyone gotten the new shairport perl script
> running on Squeeze on the plug?
>
> You could stream music to a USB sound dongle /
> speakers attached to your plug directly from
> iTunes or your iPhone.
>
> I tried to get shairport-0.03 running, but it
> seems to have issues with libao4 or the ARM. Other
> sound is playing fine through ALSA. I can also see
> and choose the shairport as a speaker in iTunes /
> iPhone.
>
> What I did:
>
> aptitude install openssl libao-common libao-dev \
> libao4 libssl-dev libcrypt-openssl-rsa-perl
> pkg-config \
> avahi avahi-utils libwww-perl
> libio-socket-inet6-perl
>
> Delete -D__i386 from the Makefile, then compile
> and run...
>
> Always gives me
> new connection from fe80::210:xxxx:xxxx:xxxx
> REQ: ANNOUNCE
> REQ: SETUP
> launched decoder: 25043 on port: 6000
> REQ: RECORD
> REQ: SET_PARAMETER
>
> missing frame.
> closed: IO::Socket::INET6=GLOB(0x178f640)
> Segmentation fault
> ***CHILD EXITED***
>
>
>
> :(
> Any hints?

I was having this exact problem until the recent update from:
https://github.com/albertz/shairport

Works mostly great now!
Re: Shairport - iTunes / iPhone streaming
April 15, 2011 09:13AM
I tought of something like that, but the changelog wasnt updated. Will try the new build as soon as I'm home again.

EDIT:

Still getting an error:

./shairport.pl 
listening...
Established under name '00EEC099DE06@ShairPort 11693 on tk-ds-debian'
new connection from 192.168.178.34
REQ: OPTIONS
closed: IO::Socket::INET=GLOB(0x3b35f0)
new connection from 192.168.178.34
REQ: ANNOUNCE
REQ: SETUP
FATAL: Can't create data socket!
***CHILD EXITED***
died
Expected port number from decoder; got  at ./shairport.pl line 335.

Now I'm sad :(



Edited 2 time(s). Last edit at 04/15/2011 12:16PM by La_Tristesse.
La_Tristesse Wrote:
-------------------------------------------------------
> I tought of something like that, but the changelog
> wasnt updated. Will try the new build as soon as
> I'm home again.
>
> EDIT:
>
> Still getting an error:
>
>
> ./shairport.pl
> listening...
> Established under name '00EEC099DE06@ShairPort
> 11693 on tk-ds-debian'
> new connection from 192.168.178.34
> REQ: OPTIONS
> closed: IO::Socket::INET=GLOB(0x3b35f0)
> new connection from 192.168.178.34
> REQ: ANNOUNCE
> REQ: SETUP
> FATAL: Can't create data socket!
> ***CHILD EXITED***
> died
> Expected port number from decoder; got at
> ./shairport.pl line 335.
>
>
> Now I'm sad :(

Did you compile hairtunes by running the "make" command in the shairtunes folder? Also be sure you have all the prerequisites. Considering the error you're getting I wonder if you have the ipv6 perl module installed:
perl -MCPAN -e 'install IO::Socket::INET6
Re: Shairport - iTunes / iPhone streaming
April 17, 2011 04:25PM
Thanks. The reason was caused by the lack of ipv6. Now there's a fallback option for ipv4 implemented. But I do have another issue. See for further information: https://github.com/albertz/shairport/issues/25#issuecomment-1018012
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: